import tushare as ts import pandas as pd df = ts.day_cinema() #取上一日全国影院票房排行数据 #df = ts.day_cinema('2015-12-24') #取指定日期的数据 pd.set_option('display.unicode.ambiguous_as_wide', True)#设置列名对齐 pd.set_option('display.unicode.east_asian_width', True)#设置列名对齐 pd.set_option('display.max_rows',None) #显示所有行 pd.set_option('display.max_columns',None)#显示所有列 pd.set_option('expand_frame_repr', False)#设置不换行 print() print(df.head(10))