The problem “Pandas display.max_rows and display.max_colwidth not working in Jupyter notebook”, problem is invoked when you are trying to use Pandas in Jupyter and the output is not what you had expected.
Given below is the image of the error you might get:

The rows should also be shortened by 1, but that isn’t working.
Given below is the detailed explanation why the problem ‘Pandas display.max_rows and display.max_colwidth not working in Jupyter notebook’ is seen and how to fix the error.
The problem, “Pandas display.max_rows and display.max_colwidth not working in jupyter notebook” is usually seen because of an older version of pandas in your Jupyter notebook.
To fix the error, update your panda’s version in your system and then run the code again in your Jupyter notebook.
There are some temporary workarounds to fix the problem, “Pandas display.max_rows and display.max_colwidth not working in jupyter notebook” which are discussed below.
To fix the problem, “Pandas display.max_rows and display.max_colwidth not working in jupyter notebook”, update your pandas version to the latest version which is version 1.4.4. The absence of the latest version of Pandas in your Jupyter notebook is the cause of the error.
Steps to fix the problem “Pandas display.max_rows and display.max_colwidth not working in jupyter notebook” is mentioned below:
First you will have to know that the cause of the error is that you are using an outdated version of Pandas in your system, which is the reason why you are not getting the appropriate output in your project file.
It is likely that you are working with python version 1.3.0 as this is known to be a broken version.
As a first-aid, you should always use the latest versions to avoid errors. The latest version of pandas is version 1.4.4 as of sept 2022. When you are using the version 1.4.4 in your project, error would be fixed.
This should help you fix the problem, “Pandas display.max_rows and display.max_colwidth not working in jupyter notebook”.
Conclusion
To fix the problem, “Pandas display.max_rows and display.max_colwidth not working in Jupyter notebook”, in your system you will have to update your pandas version to the latest version which is being used which is version 1.4.4.
The absence of the latest version of pandas in your Jupyter notebook is the cause of the error.