我正在尝试在 python 3.x 中进行预测。所以我写了下面的代码
from statsmodels.tsa.seasonal import seasonal_decompose
decomposition = seasonal_decompose(ts_log)
trend = decomposition.trend
seasonal = decomposition.seasonal
residual = decomposition.resid
Run Code Online (Sandbox Code Playgroud)
但我收到错误消息
AttributeError: 'RangeIndex' object has no attribute 'inferred_freq'
Run Code Online (Sandbox Code Playgroud)
你能帮我解决这个问题吗
我正在尝试在 Windows10 上的 python 3.7 中实现 auto arima 所以我尝试使用以下命令安装 Pyramid-armia
pip install pyramid-arima
Run Code Online (Sandbox Code Playgroud)
但我收到错误消息
Could not find a version that satisfies the requirement pyramid-arima (from versions: )]
No matching distribution found for pyramid-arima
Run Code Online (Sandbox Code Playgroud)
我也尝试过这里提到的步骤
但收到了同样的错误消息,您能指导我安装吗?
我正在尝试将 pyspark 数据帧转换为 databricks 中的 pandas 数据帧。我的databricks运行时版本是7.3 LTS(Scala 2.12,Spark 3.0.1)\n所以我编写了以下代码
\ndf_temp=spark_temp.toPandas()\nRun Code Online (Sandbox Code Playgroud)\n但我收到错误消息
\nUserWarning: toPandas attempted Arrow optimization because 'spark.sql.execution.arrow.enabled' is set to true,\nRun Code Online (Sandbox Code Playgroud)\n所以我尝试按照以下方法禁用 pyarrow
\nspark.conf.set(\xe2\x80\x9cspark.sql.execution.arrow.enabled\xe2\x80\x9d, \xe2\x80\x9cfalse\xe2\x80\x9d)\nRun Code Online (Sandbox Code Playgroud)\n但我收到错误消息
\nSyntaxError: invalid character in identifier\nRun Code Online (Sandbox Code Playgroud)\n它指向spark.sql\n你能帮我解决这个问题吗
\n