1.csv格式数据导入
import pandas as pd w=pd.read.csv("数据地址") w.describe() w.sort_values(by="列名")
2.excel格式数据导入
import pandas as pd pd.read_excel("数据地址")
3.MySQL数据导入
import pandas as pd
import pymysql dbconn=pymsql.connect(host="127.0.0.1",user="root",passwd="root",db="hexun") sql="select * from myhexun"
w=pd.read_sql(sql,conn)
w.describe()