[Python] Pandas entry (Series, DataFrame)

Content Sources

China University of MOOC "Python data analysis and display (Song day)" Unit 7: Pandas entry library

I recommend to go directly to the video!

Series generation

Series type can be created by the following types:

(1) Python list, index coincides with the number of list elements
(2) scalar value, index type expression Series Size
(3) Python dictionaries, the key of the "key" is an index, index to select from the dictionary operation
(4) ndarray, indexing and data types can be created by ndarray
(5) other functions, range () function, etc.

import pandas as pd
#列表类型创建
a = pd.Series([9,8,7

Guess you like

Origin blog.csdn.net/qq_41856733/article/details/105047680