Python [7]-data analysis preparation and python Data Analysis

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.