I have a dataframe without columns names and when I print it I get a row with numbers, how can I print without this row? I have the same problem with the index, how can I print without index and columns?
See here for some more info on using the to_string() function in pandas.
print(df.to_string(index=False))
To hide column headers:
print(df.to_string(index=False, headers = False))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.