Jupyter notebook freezes when try to use "display.max_rows" to show all of the data

Viewed 120

I'm new to python and jupyter notebook.

I loaded a csv file with 7000 rows of data into pandas DataFrame in jupyter notebook. But every time I try to use "pd.set_option('display.max_rows', None)", and then "df" to display all of the data in a cell. Jupyter notebook freezes and never shows the results. When I try to do this in command line in Ipython, it will show the results. How do I get it to work in jupyter notebook as well?

python code:

import numpy as np
import pandas as pd
df = pd.read_csv(r'D:\DA\movies.csv\movies.csv')
pd.set_option('display.max_rows', None)
df

Dataset: https://www.kaggle.com/danielgrijalvas/movies

Computer specs: Intel Core i5-10500 (6 cores), 16 GB memory

1 Answers

I solved it! I just switched to Chrome browser and it worked. But it won't work in Firefox for some reason.

Related