In the near future, whether you do data analysis or emergency reply to do ppt, you may need to draw some of the data display diagram; Before we all use Excel to draw, but Excel drawing has certain limitations, such as you want to draw a cumulative histogram, Excel is very troublesome, So let's introduce a Python-based interactive data analysis tool, Ipython notebook.
This article will introduce you to the beginning of the installation and use of notebook from scratch tutorial, write the details of the place can be more communication.
This article assumes that everyone is python "small white ", this tutorial is for the Windows platform,python God can see some chapters according to their own needs.
Installationpython2.7
First download the corresponding Python installation file from the Python website , then follow the installation process
Note Select Install all
python test
Open the cmd command line interface, enter python, return to a simple interactive interface
Enter print "Hello World" to see the output of Hello World
Press CTRL + Z and enter to exit.
PIP Test
enter PIP in cmd and see output like this to prove that Pip is properly installed
InstallationVC for Python
Without this, a lot of data analysis packages are not installed, because these packages are written in C + +, you can download VC for Python from here
Installation of common data analysis to usePython library
pip install numpypip install pandaspip install matplotlibpip install statsmodels
InstallationIpython Notebook
Pip Install Jupyter
Test Ipython Notebook
Command line Input Ipython notebook, will automatically jump to the browser, the browser default is the command line in the directory
At this point, everything is ready to start doing what you want to do.
Simple to use
We create a example folder and then go to this folder in the browser (hereinafter called Jupyter) and select the New button on the right, and drop down to select Python 2
And then you can start writing python's code.
Now we're trying to do data analysis.
Import data Analysis common libraries and configurations
Jupyter (Ipython notebook) installation and Getting Started tutorials