import pandas as pd
import numpy as np
print (np.__version__)
print (pd.__version__)
tem = np.random.randint(1,100,20)
df1 = pd.DataFrame(tem)
tem = np.random.normal(0, 1, 20)
df3 = pd.DataFrame(tem)
tem = np.arange(0,100,5)
df2 = pd.DataFrame(tem)
df = pd.concat([df1,df2,df3],axis=1,ignore_index=True)
df.columns = ['col1','col2','col3']
print (df)
s = np.argwhere(df['col1'] % 5 == 0)
#print (df['col1'] % 5==0)
换低版本numpy 不会报错
看情况是版本问题,暂未找到解决方案