conda update spyder (or pip, if not using Anaconda)jupyter qtconsole (if console-related)spyder --resetVariable Explorer is extremely slow in a dataframe containing 30k+ rows.
It's nearly nstantaneous in Spyder 3.3.3.
Scrolling is extremely laggy, window freezes frequently.
Run the code following:
import pandas as pd
import numpy as np
from datetime import datetime
bdates = pd.bdate_range(start = datetime(1900, 1, 1), end = datetime.today())
vect_random = np.random.normal(size=len(bdates))
df = pd.DataFrame(vect_random, index = bdates)
And open the df variable in the Variable Explorer, and scroll.
Should be as fast to open and scroll as in 3.3.3
Hi @Skullnick, thanks for the report.
I can confirm that this is indeed an issue with the provided example. The scrolling is really slow.
Hi @dalthviz it seems we have some performance degradation. Please take a look at this one to see what might be caiusing the slowdowns.
Note: Seems like the problem is the handling of the datetime index. With a numeric index no performance degradation is experienced (even testing with more than 30k rows):
No degradation case:
import pandas as pd
import numpy as np
bdates = range(50000)
vect_random = np.random.normal(size=len(bdates))
df = pd.DataFrame(vect_random, index = bdates)
Indeed @dalthviz it is the conversion we are doing to the datetime index.
Note: Seems like the problem is the handling of the datetime index
How is this conversion performed?