可以使用python -m cProfile -s cumulative timing_functions.py查看每个函数的耗时,进而提升效率;在一个大的df中index取数也很耗时,可以sort后用偏移取数

posted on 2017-11-13 11:25  oraser  阅读(105)  评论(0编辑  收藏  举报