Skip to content

Instantly share code, notes, and snippets.

@wesm
Created May 21, 2017 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesm/e0924a060928b70e377c002010090621 to your computer and use it in GitHub Desktop.
Save wesm/e0924a060928b70e377c002010090621 to your computer and use it in GitHub Desktop.
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.098 0.098 {built-in method builtins.exec}
1 0.000 0.000 0.098 0.098 <string>:1(<module>)
1 0.000 0.000 0.056 0.056 generic.py:4214(groupby)
1 0.000 0.000 0.056 0.056 groupby.py:1617(groupby)
1 0.000 0.000 0.055 0.055 groupby.py:363(__init__)
1 0.000 0.000 0.055 0.055 groupby.py:2483(_get_grouper)
1 0.007 0.007 0.055 0.055 groupby.py:2581(is_in_axis)
1 0.000 0.000 0.048 0.048 base.py:2385(get_loc)
3 0.000 0.000 0.048 0.016 categorical.py:1037(__array__)
3 0.000 0.000 0.048 0.016 {pandas._libs.lib.values_from_object}
2 0.000 0.000 0.048 0.024 series.py:389(get_values)
2 0.000 0.000 0.048 0.024 internals.py:4224(get_values)
5 0.000 0.000 0.048 0.010 numeric.py:463(asarray)
9 0.000 0.000 0.048 0.005 {built-in method numpy.core.multiarray.array}
1 0.000 0.000 0.048 0.048 internals.py:2103(to_dense)
1 0.000 0.000 0.048 0.048 categorical.py:1480(to_dense)
3 0.000 0.000 0.048 0.016 algorithms.py:1370(take_nd)
1 0.000 0.000 0.043 0.043 groupby.py:1122(size)
1 0.023 0.023 0.043 0.043 groupby.py:1759(size)
3 0.030 0.010 0.030 0.010 {pandas._libs.algos.take_1d_object_object}
4 0.017 0.004 0.017 0.004 {built-in method pandas._libs.algos.ensure_int64}
1 0.012 0.012 0.012 0.012 {built-in method numpy.core.multiarray.bincount}
1 0.000 0.000 0.007 0.007 groupby.py:1798(group_info)
3 0.007 0.002 0.007 0.002 {built-in method numpy.core.multiarray.empty}
1 0.000 0.000 0.000 0.000 groupby.py:1827(result_index)
1 0.000 0.000 0.000 0.000 base.py:1125(rename)
1 0.000 0.000 0.000 0.000 base.py:1066(set_names)
1 0.000 0.000 0.000 0.000 category.py:160(_shallow_copy)
1 0.000 0.000 0.000 0.000 base.py:404(_shallow_copy)
2 0.000 0.000 0.000 0.000 category.py:146(_simple_new)
3 0.000 0.000 0.000 0.000 category.py:118(_create_categorical)
1 0.000 0.000 0.000 0.000 categorical.py:680(set_categories)
1 0.000 0.000 0.000 0.000 {method 'get_loc' of 'pandas._libs.index.IndexEngine' objects}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment