0
How can I print pandas dataframe without column index/name?
3 ответов
+ 2
Just do like this.
import pandas as pd
presidents_df = pd.read_csv('https://sololearn.com/uploads/files/president_heights_party.csv')
print(presidents_df)
+ 1
This prints the dataframe
But columns have their name on the top. I don't want to print the column names, can I do that, if yes, how ?
+ 1
For example if I have,
Name Age
0 xyz 10
1 abc 20
I want to print
0 xyz 10
1 abc 20