pandas uses the read_csv function to read csv data, and the index.get_level_values attribute to view the index content of the specified level in the row index of the dataset (using the index position or name)

pandas uses the read_csv function to read csv data, the index_col parameter specifies the data column index list as the row index to form a composite (multi-layer) row index, and the index.get_level_values ​​attribute views the index content of the specified level in the row index of the dataset (use the index position or name)

Table of contents

Guess you like

Origin blog.csdn.net/zhongkeyuanchongqing/article/details/127595952