[Data analysis] Pandas- display all data in rows and columns in pycharm

 

Import PANDAS PD AS
 # all the columns 
pd.set_option ( ' display.max_columns ' , None)
 # Display all rows 
pd.set_option ( ' display.max_rows ' , None)
# set the display length of the value is 100, the default is 50 PD. Set_Option ( ' max_colwidth ' , 100 ) dataFile = Open ( " ratings.csv " , encoding = " UTF8 " ) moviesData = pd.read_csv (dataFile) Print (moviesData.head (100))

 

Guess you like

Origin www.cnblogs.com/ITCSJ/p/11459122.html