I have a dataframe with numerous columns (≈30) from an external source (csv file) but several of them have no value or always the same. Thus, I would to see qui
dataframe
You can replace:
fillna(0).astype(int)
to
fillna(0, downcast='infer')