Function or method | Description |
---|---|
Series | Construct sequence type object |
DataFrame | Construct a data frame type object |
read_table | Function to read text files, support txt, csv and other formats |
read_csv | Function to read text files, support txt, csv and other formats |
read_excel | Read spreadsheet |
read_sql | Function to read database data |
head/tail | Display the first/last rows of data in the data frame |
shape | Returns the number of rows and columns of the data frame |
dtypes | Return the data type of each variable in the data frame |
to_datetime | Convert variable to date time type |
astype | Convert variables to other types |
describe | Statistical description |
colums | Return data frame variable name |
index | Return data frame index |
apply | Mapping a sequence or data frame |
value_counts | Statistical sequence value frequency |
reset_index | Convert row index to variable |
duplicated | Test whether observations are repeated |
drop_duplicates | Delete duplicates |
drop | Delete variable name or observation |
drop | Remove missing values |
fillna | Fill in missing values |
quantile | Statistical series quantile |
plot | Plot sequence and data block diagrams |
iloc / loc / ix | Data frame subset acquisition |
pivot_table | Build a pivot table |
concat | Realize vertical merging of multiple tables |
merge | Achieve two-meter level expansion |
groupby | When grouping aggregation, specify grouping variables |
aggregate | Specify aggregate statistics |
rename | Modify the data frame variable name |
Pandas commonly used functions and methods
Guess you like
Origin blog.csdn.net/qq_43580193/article/details/108630123
Recommended
Ranking