Two data structure series and dataframe.
Series
The series is the same as a list in Python, with data and index values.
Here we create a series object. Data values and indexes for series objects:
The index of the list starts at 0, and the series is indexed by default, similar to the list starting with 0. However, you can also customize the index:
Indexes can be redefined:
Operation elements according to index:
Series is also used in the form of dictionaries:
Series Auto Alignment: The corresponding values can be found based on the original index, and no Nan
Determine if the value is empty:
Series Operations:
Size
Subtraction
DataFrame
Dataframe is like a collection of multiple series. This means that it has more than one column of data. Similar to the table.
Create a Dataframe object
The "key" in Dataframe is similar to a dictionary, but one difference is that the order of the keys in the dictionary is fixed and the order of the ' keys ' in the Dataframe can be customized. Similar to the operation of index in a series object. Like this
Access to columns elements, series and dataframe operations
To be continued .....
Python Pandas Library Learning