I'm using SciKit-Learn's OneHotEncoder
to encode some categorical features. However, the time complexity of the function seems to have an exponential dependence on the number of rows passed to it.
I would like to profile my code to figure out what's going on, particularly, I would like to use cumulative time to rank the profiler's output. I'm using Jupyter notebooks to write the code, how can this be achieved?