Data analysis-reading and storage of external data

Insert picture description here

4. Reading and storage of external data

1. Reading and storage of text data

-(1) Read CSV file: read_csv()

	  import pandas as pd
	  df = pd.read_csv(open(r'H:\我的视频录制\从零开始学Python数据分析\data\ch4ex1.csv'))
	  df
	  注意:读取CSV文件时,如果文件路径中有中文,需要加

Guess you like

Origin blog.csdn.net/MasterCayman/article/details/109458954