Author: Cola
Source: Coke’s path to data analysis
Please contact authorization for reprinting (wechat ID: data_COLA)
There are a few things you need to do before you start learning Python, including downloading and installing Python, using a common IDE, and finally choosing an IDE to practice with.
1. The Pandas and Python
Python is the glue language, and there are trade-offs to learn. Pandas is used to analyze data in Python. It is written for pandas. It is written for pandas.
Pandas is a tool based on the NumPy software that is created to solve data analysis tasks. Its pandas are pandas. Pandas is a tool for data analysis in Python.
Pandas is used for data analysis. Python is used for data analysis. The answer is YES, Python is a programming language, it is not specifically designed to analyze data, the tools specifically designed to analyze data/statistics are tools such as SPSS. So pandas is to Python what the data analysis function in Excel is to Excel. No, Excel is clearly office software, can be used by all walks of life, not exclusive data analysis, right?
The second keyword is pandas. The second keyword is pandas. This is too easy to understand. When we learn to use Excel for data analysis, we can carry out most of the application after learning the data analysis function, but this does not affect us to continue to learn diagrams, functions and so on. It is necessary to study and learn more to be thorough.
2. Download and install Python
Anaconda is an open source packaged python distribution for beginners. It contains python libraries that are commonly used, so you don’t need to install them yourself.
3. Common ides
IDE is an integrated development environment (IDE) used to write, compile, debug code, and display graphics.
IDLE
It is the simplest and most basic IDE that comes with python after you download it from the official website and install it. It is not recommended.
PyCharm
Professional level development with a full suite of professional tools.
Jupyter Notebook
PyCharm is essentially a web client that supports real-time code execution and modification. It’s great for beginners, but it’s not as good as PyCharm in some advanced features, such as code complement, but this series will be written using Jupyter Notebook.
Then there are Spyder, Xcode and so on.
4. Select
Finally, we chose the Jupyter Notebook environment in Anaconda to learn Python data analysis.
Anaconda download and installation
Step1: Anaconda website: www.anaconda.com/, click Downl…
Step2: Select the corresponding computer type, such as Windows, select python version, such as 3.7, and click Download to download.
Step3: Next is according to the hint, step by step installation can be completed.
Jupyter Notebook to use
After installing Anaconda, you’ll see the Jupyter Notebook program on your computer’s start screen. Click to open it.
Jupyter can also be accessed from Anaconda Navigator as follows:
Basic operations of Jupyter Notebook
- The new file
On the main screen that opens, click new — ptthon3 on the right to create a Python file.
- Delete the file
Delete this TXT file, select the box in front of the file to delete, select delete.
- Changing the file name
Select Rename in File to rename the file.
- Save the file
Ctrl+ S to save the file to the default path, or click Save as in File.
- Run the code
Jupyter is a code block form, input the following code, click the run button, you can execute the code block.
If you have multiple blocks of code that you want to execute consecutively, select the blocks (Shift + left mouse button) and click to execute.
- Add code block
Click + to get a new code block
- Delete code block
Select the code block you want to remove and hit cut next to +.
- Write the Markdown
Jupyter is code mode by default, but can also be changed to Markdown mode, which becomes a text box for typing the text # : level 1 title; ## : secondary title; ### #
- shortcuts
The Y key turns the currently selected cell into a code cell
The F key brings up the Find and replace menu
The A key inserts A new cell above the selected cell
The B key inserts a cell below the selected cell
Ctrl + Enter runs the selected cell
Alt + Enter runs the selected cell and adds a new cell below
Official account: The road of data analysis of Cola
Reply: “Documentation”, access to the original 130,000 word data analysis bible and 57 pages OF SQL quick reference manual