Python:pandas Learning Notes (1) __python

Source: Internet
Author: User

Recently started using Python data analysis, pandas as Python in the data analysis of a big weapon, naturally can not miss. Today, let's introduce some of the basic operations of Pandas:

1. First, you need to import the appropriate Python module and name:
Import Pandas as PD
Import NumPy as NP
Import Matplotlib.pyplot as Plt
2. Second, build a simple dataframe:
(1) Create a one-dimensional array s:
s = PD. Series ([1,3,5,3,8,9])

(2) Create a date item:

(3) Create a simple dataframe, named DF:

(4) The internal structure of DF is as follows:


3. Draw the graphics of DF:

4. Read a CSV file containing data on smoking and age of death, named PDF,

5. The internal data structure is shown below:

At present, this article only shows some basic functions of pandas, which will be supplemented and perfected with the further study.

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.