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
  • 13
  • 3

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 stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
Drakax
  • 657
  • 8