pd.info() output has no spacing between columns

My Jupyter notebook output for renamedBostonData.info() is:

screenshot showing info table without spacing between columns

I am facing this issue with value_counts() as well.
Dataframes are also printed properly.

instead of Jupyter Lab output:

screenshot showing table with proper spacing

Is there a setting that has been changed? If so how to correct?

  • 1

    Please don’t post pictures of text. Instead, copy the text itself, edit it into your post, and use the formatting tools like code formatting. But if it looks different, by all means keep the screenshots.

    – 

  • Your examples show two different dataframes. The first one has relatively long and non-uniform column names which make the output look worse.

    – 




Leave a Comment