I'm trying to get data from csv and output it to the console (ie, command line).
I have 30 columns, but I can only output 5 to 6 columns.
df = pd.read_csv(csv_raw)
print(df.head())
date level mark source
0 2022-01-01 A 1 facebook
1 2022-01-01 B 2 facebook
2 2022-01-01 C 12 facebook
3 2022-01-01 D 53 facebook
4 2022-01-01 T 22 facebook
If I display all 30 columns it turns out like this:
print(df.head(30))
date ... source
0 2022-01-01 ... facebook
1 2022-01-01 ... facebook
2 2022-01-01 ... facebook
3 2022-01-01 ... facebook
4 2022-01-01 ... facebook
5 2022-01-01 ... facebook
when i try pd.options.display.max_columns = 50
it returns me like that:
date level clicks \
0 2022-01-01 A 1
1 2022-01-01 B 2
2 2022-01-01 C 12
3 2022-01-01 D 53
4 2022-01-01 T 22
5 2022-01-01 Free trial, upgrade to basic at https://www.wi... 1
source
0 facebook
1 facebook
2 facebook
3 facebook
4 facebook
5 facebook
Is it possible somehow to display more than 5 columns as in the first case?