12

I am have imported a csv file onto my Jupyter notebook and trying to obtain all the columns names and datatypes using the info() function. However, I get the following image. Any idea how to resolve it? I can't view all the columns and datatypes, only this vague information

enter image description here

Thanks!

dm2
  • 4,053
  • 3
  • 17
  • 28

1 Answers1

36

use verbose as argument to info, it gives option to print the full summary. see full documentation here

You can also use show_counts (or null_counts for older pandas version since it was deprecated since pandas 1.2.0) argument to see null count information

For pandas >= 1.2.0: df.info(verbose=True, show_counts=True)

For pandas <1.2.0: df.info(verbose=True, null_counts=True)

arash
  • 141
  • 1
  • 14
A.B
  • 20,110
  • 3
  • 37
  • 71