pandas value_counts vs numpy in1d

df[‘report_month’].value_counts() np.in1d(normal_reports[‘report_month’],3).sum(

df[‘report_month’].value_counts()
np.in1d(normal_reports[‘report_month’],3).sum()


Edited by Eshter
Email:fang_yuu1992@126.com
版权归Eshter所有,撰于 2019/8/19