'The Jupyter do not show border lines and grey blocks

everybody. I learn NumPy and pandas with the Jupyter. When printing, it does not show borderlines and grey blocks. Example:

actual_result

Should be:

expected

How to solve it? Thank you very much, everybody.



Solution 1:[1]

The 'borderlines and grey blocks' view is a rendered HTML version of your dataframe.

You can either just use b as @Carlos Bergillos mentioned, or use

from IPython.display import display

display(b)

Please see other very similar questions:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ed_Ab