Python [7]-data analysis preparation and python Data Analysis
1. Frequently Used python libraries:
Numpy: Basic Package of Python scientific computing;
Pandas: provides a large number of data structures and functions that allow us to quickly process structured data;
Matplotlib: python library used to draw data charts;
IPython: An enhanced python shell for interactive processing and visualization of data using matplotlib.
II. Environment installation 1. Install EPDFree in Windows:
Uninstall the previously installed python;
Download the EDPFree address: https://store.enthought.com/downloads/#default;
Install canopy-1.7.2-win-64.msi after download is complete
Enter python in the command line. The interface is as follows:
Iv. IPython basics 1. IPython Basics
How to start IPython?
Cmd.exe open the command line and enter ipython
D = {"chen": 60, "zhang": 80} print (d) d ['chen'] = 65 print (d) print (d. get ("liu", 0) d ['Liu '] = 85 print (d) d. pop ('Liu ') print (d. keys () print (d. values () d1 = {'A': 100, 'B': 99} d. update (d1) print (d)
Run the following command: % run E: \ Demo \ python \ demo_dict.py:
After the command is executed, we can also execute the variables in the access file in ipython.
5. Execute the code in the clipboard
You can use the % paste command to paste the text in the clipboard and execute it as a shell command.