You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the above code on my machine, there is major difference in the performance between different versions. I ran the code using new conda environments created with Python 3.7 and the specific version of Pandas. The table below shows the execution times.
Pandas Version
Execution time
0.23.4
0:00:00.013999
0.25.1
0:00:15.623905
The example code is only an example. In the most cases I need this function to get more specific type of the column than the type returned by the .dtype parameter (usually when working with mixed data).
The text was updated successfully, but these errors were encountered:
The call to isnaobj to mask out the nan values turns out to be expensive.
EDIT: isnaobj also converts every value in the column into object before calling checknull.
Code Sample
Problem description
When I run the above code on my machine, there is major difference in the performance between different versions. I ran the code using new conda environments created with Python 3.7 and the specific version of Pandas. The table below shows the execution times.
The example code is only an example. In the most cases I need this function to get more specific type of the column than the type returned by the .dtype parameter (usually when working with mixed data).
The text was updated successfully, but these errors were encountered: