我想使风上升。这是我的代码:
data = pd.read_csv('C:/Users/dedy/Documents/windrose/TAOYUAN2006.csv')
data['Dir(Rounded)'] = (data['Dir(DegT)']/(360/16)).round().mod(16)*360/16
frequencies = pd.crosstab(data['Dir(Rounded)'], pd.cut(data['Speed(m/s)'], bins)) / data['Dir(Rounded)'].size
frequencies.to_csv('frequencies.csv', sep='\t')
这是我得到的错误:
NameError:名称“ bins”未定义