Python quickly and intuitively reads local csv files

Using the pandas.read_csv() module

Example: read the filename for data.csv

import pandas as pd
pd_reader = pd.read_csv("./data.csv")
# 返回的是一个DataFrame数据
print(pd_reader)

After obtaining the DataFrame object, the data can be further processed. 

Guess you like

Origin blog.csdn.net/weixin_46159962/article/details/128214875