Many developers say that since the introduction of Python/Pandas, Excel has not been used much. It is very fast to use it to process and visualize tables. However, this still has a major flaw. The operation is not a visual form, so it requires higher skills. Recently, developers built an open source project called Grid studio, which is a web-based spreadsheet application that completely combines the advantages of Python and Excel.
Yes, displaying visual tables and codes on one interface at the same time, and modifying data through tables and codes at the same time, isn't this the combination of Python and Excel?
Project address: https://github.com/ricklamers/gridstudio
Let’s first take a look at the effect of Grid studio. In general, we can both load and process data through Python and manipulate data through Excel.
Processing data on Python is easier to understand. Processing data on a table is actually very similar to Excel. As shown below, write a summation formula.
Maybe we changed some data on the table, then we can also import it into a NumPy array and do further operations.
Related recommendations: "Python Video Tutorial"
Why create this tool?
The author said that he created Grid studio mainly to solve the problem of scattered workflow in data science projects. In this kind of project, he has to work between multiple tools such as R studio and Excel. Swap around.
When exporting a CSV file for gazillionth-time, the application window freezes if the number of rows is too high. Even doing something as simple as reading a JSON file can drive someone crazy. Existing tools do not provide the environment and associated workflows required to work efficiently, which is why the author decided to build this tool. He wanted to create an easy-to-use application that could integrate data science workflows.
What are the highlights of this tool?
Grid studio is a web-based application that looks similar to Google Sheets and Microsoft Excel. However, its killer feature is the integration of the Python language.
Using tables to view and edit data comes naturally to almost everyone who has used a computer. Combining this simple UI with a mature programming language like Python is simply not easy to use.
Writing scripts in Python is very easy: just write a few lines of code and run it directly.
Core integration: reading and writing
The core of this Python integration is the read and write interface for spreadsheets, which can Establish a high-performance connection between data in a spreadsheet and data in a Python process.
You can use the following method to write data in the table:
sheet("A1:A3", [1, 2, 3])
Use the following method Read data from the table:
my_matrix = sheet("A1:A3")
You can read or write data directly in the table in this simple and efficient way, To automate data entry, extraction, visualization and other processes.
Writing customized table functions
Although it is very flexible to complete reading and writing through a simple interface, sometimes it is also important to write customized functions that can be called directly.
In addition to the default functions such as AVERAGE, SUM, and IF, you may also need other functions, so just write them down!
def UPPERCASE(a):
return str(a).uppercase()
After writing this line of code, call the function in the table, like Just like calling a regular function.
Using the Python ecosystem
By leveraging various powerful software packages in the Python ecosystem, we can immediately access the best data science tools at the moment, so we can quickly Access powerful models such as linear regression, support vector machines, and more.
Because Grid studio itself mainly processes tabular data, using them as features can quickly call models such as SVM to explore the features hidden behind these data.
data visualization
In data science, a very common task is to visualize data, so as to obtain "prior knowledge" about the data. By integrating the interactive plotting library Plotly.js and the Python standard visualization library Matplotlib, Grid studio now has built-in advanced plotting functions. We can use advanced drawing features on vector table formats as shown below:
To further explain how to use the features of Grid studio to build visual icons, the project author also shows two There are two cases, that is, crawling web pages and visualizing data distribution, but here we mainly show the first case.
Case: Estimating the Normal Distribution
The following case demonstrates the power of Grid studio. It will visualize the normal distribution through Plotly.js with higher fidelity. We can take a look. How exactly is interactive mapping done.
Use and install
So many features have been introduced before, so how do we use them? Grid studio is very simple to install and use, and can be done with a simple command line.
git clone https://github.com/ricklamers/gridstudio
cd gridstudio && ./run.sh
As above, download the project and run the installation script in two steps. We can open the local port in the browser and use it happily.
The above is the detailed content of Do you still need Excel if you have Python?. For more information, please follow other related articles on the PHP Chinese website!

Python and C each have their own advantages, and the choice should be based on project requirements. 1) Python is suitable for rapid development and data processing due to its concise syntax and dynamic typing. 2)C is suitable for high performance and system programming due to its static typing and manual memory management.

Choosing Python or C depends on project requirements: 1) If you need rapid development, data processing and prototype design, choose Python; 2) If you need high performance, low latency and close hardware control, choose C.

By investing 2 hours of Python learning every day, you can effectively improve your programming skills. 1. Learn new knowledge: read documents or watch tutorials. 2. Practice: Write code and complete exercises. 3. Review: Consolidate the content you have learned. 4. Project practice: Apply what you have learned in actual projects. Such a structured learning plan can help you systematically master Python and achieve career goals.

Methods to learn Python efficiently within two hours include: 1. Review the basic knowledge and ensure that you are familiar with Python installation and basic syntax; 2. Understand the core concepts of Python, such as variables, lists, functions, etc.; 3. Master basic and advanced usage by using examples; 4. Learn common errors and debugging techniques; 5. Apply performance optimization and best practices, such as using list comprehensions and following the PEP8 style guide.

Python is suitable for beginners and data science, and C is suitable for system programming and game development. 1. Python is simple and easy to use, suitable for data science and web development. 2.C provides high performance and control, suitable for game development and system programming. The choice should be based on project needs and personal interests.

Python is more suitable for data science and rapid development, while C is more suitable for high performance and system programming. 1. Python syntax is concise and easy to learn, suitable for data processing and scientific computing. 2.C has complex syntax but excellent performance and is often used in game development and system programming.

It is feasible to invest two hours a day to learn Python. 1. Learn new knowledge: Learn new concepts in one hour, such as lists and dictionaries. 2. Practice and exercises: Use one hour to perform programming exercises, such as writing small programs. Through reasonable planning and perseverance, you can master the core concepts of Python in a short time.

Python is easier to learn and use, while C is more powerful but complex. 1. Python syntax is concise and suitable for beginners. Dynamic typing and automatic memory management make it easy to use, but may cause runtime errors. 2.C provides low-level control and advanced features, suitable for high-performance applications, but has a high learning threshold and requires manual memory and type safety management.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1
Easy-to-use and free code editor