Firstly I am pretty new to Python and I'm trying to output the view from a crosstab:
import pandas as pd
Data_18['age_50_flag'] = (Data_18['age'] > 50).astype(int)
pd.crosstab(Data_18.age_50_flag, Data_18.age)
The output however, is being buried:
age 16 17 18 19 20 21 22 23 24 25 ... 93 94 95 96 97 98 99 101 998 999
age_50_flag
0 190 212 224 236 241 256 285 315 354 422 ... 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 ... 29 36 26 11 10 7 1 1 96 13
Is there a way that I can show all of the output? Any suggestions, please?
Thanks!