Summary of common attributes and methods in Pandas

12. Transpose: Return the transpose of the DataFrame, that is, exchange the rows and columns

                        

13.axes: returns a list of row labels and column labels

14.dtypes: returns the data type of each column of the Series

15.empty: returns a Boolean value to determine whether the output data object is empty, if it is True, the object is empty

16.columns: Return all column labels of DataFrame

17. Modify the label name rename():

DataFrame.rename(index=None,columns=None,inplace=False)

index: row label after modification

columns: modified column labels

inplace: The default is False, the source data is not changed, and the modified data is returned. True to change data

18.info function: Used to print a brief summary of the DataFrame, displaying information about the DataFrame. Including the data type dtype of the index and the data type dtype of the column, the number of non-null values ​​and memory usage

 

Guess you like

Origin blog.csdn.net/m0_62064241/article/details/126674538