0

What kind of pandas display setting (or whatever) is required if I want to see the entire output of the following :

enter image description here

As you can see there are only few lines but I would like to see everything (669 in total) where I would be able to see each line individually to see how many nan values there are in total per line (such that I find the 27 along the dataframe).

NoTisan
  • 27
  • 5

1 Answers1

0

You can try:

DataFrame.to_string()

Or:

DataFrame.to_markdown()

Or:

pandas.set_option('display.max_rows', None)

Now you could decide to just display NaN values like this:

-by column:

df[df['column name'].isna()]

-or for entire dataframe:

df[df.isna().any(axis=1)]
Zoe
  • 27,060
  • 21
  • 118
  • 148
Drakax
  • 1,305
  • 3
  • 9