acorr_ljungbox(data, lags = 1)报错:ufunc 'isnan' not supported for the input types, and the inputs cou
报错信息:ufunc'isnan'notsupportedfortheinputtypes,andtheinputscouldnotbesafelycoercedtoanysupportedtypesaccordingtothecastingrule''safe''dataframe数据类型object是和实际数据类型int匹配,转换一下就OK了df['A']=df['A‘].astype(int