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.
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.