小编yun*_*fei的帖子

statsmodels.tsa._stl.STL“无法确定 endog 的周期”

我想通过statsmodels STL方法进行分解

我的时间序列数据如下所示:

         success.rate
Date
2020-09-11  24.735701
2020-09-14  24.616301
2020-09-15  24.695900
2020-09-16  24.467051
2020-09-17  24.118799
Run Code Online (Sandbox Code Playgroud)

当我把它放入STL中时

STL(sdf, seasonal=20, robust=True)
Run Code Online (Sandbox Code Playgroud)

我总是收到这样的错误:

--------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/mnt/d/mywork/test
 STL(sdf,seasonal=20, robust=True)
----> 1 STL(sdf, seasonal=20, robust=True)

statsmodels/tsa/_stl.pyx in statsmodels.tsa._stl.STL.__init__()

ValueError: Unable to determine period from endog
Run Code Online (Sandbox Code Playgroud)

python statistics statsmodels

8
推荐指数
1
解决办法
1万
查看次数

为什么使用 pandas.concat 时会收到“FutureWarning”?

有人遇到过类似的吗FutureWarning?我在使用Tiingo+pandas_datareader时得到这个?

警告就像:

python3.8/site-packages/pandas_datareader/tiingo.py:234: FutureWarning: In a future version of pandas all arguments of concat except for the argument 'objs' will be keyword-only
    return pd.concat(dfs, self._concat_axis)
Run Code Online (Sandbox Code Playgroud)

我认为这个警告不会影响我对 pandas 数据的访问(在我的例子中,我从 tiingo api 获取),我可以毫无问题地获取我想要的所有数据。我只是想了解我当前的环境是否存在任何风险:

my python3                -  3.8.5, 
Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
pandas_datareader version -  0.10.0
pandas version            -  1.3.2
Run Code Online (Sandbox Code Playgroud)

然后我用 python 的“futureVersion”测试了我的代码:3.9.6(与 python 3.8.5 相比)。令我惊讶的是,我不再收到任何警告或错误,一切正常:

以下是更新的详细信息

platform win32 
- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
Run Code Online (Sandbox Code Playgroud)

任何建议表示赞赏。

python concatenation keyword-argument pandas future-warning

6
推荐指数
1
解决办法
2万
查看次数

gerrit setup git repo - 许可被拒绝

我是gerrit的新手,我现在正试图将gerrit设置为一个git项目.我现在正在寻找帮助解决一个允许拒绝的问题,任何帮助都表示赞赏,在此先感谢.

我正在使用gerrit + http + mysql,我现在有以下问题:

  1. 当我检查我的数据库时,我找不到我的数据库中"system_config"的'login_type'和'login_http_head',这是http://gerrit.googlecode.com/svn-history/r243/documentation/2.0/config- sso.html

  2. 当我点击admin-> projects时,提示说"缺少项目所有项目"

  3. 当我从数据库中检查我的帐户时,有两个空用户(我认为这是因为我没有在UIweb页面中设置它们)

  4. 我无法从UIweb页面注册新帐户,我也无法使用命令行创建新用户.

以下是我的ssh-key和注册步骤:

  1. 我用过ssh-keygen -t rsa -b 2048 (从互联网上搜索,我不知道2048是什么意思)

  2. git config用来配置昵称和电子邮件,我是ssh-key通过UIweb页面注册的.

  3. 使用ssh -p 29418 admin@localhost gerrit create-project --name example.git 我得到一个提示:"权限被拒绝(publickkey)."

  4. 从网上搜索后,我用了 ssh -vv -p 29418 admin@localhost gerrit

我得到以下输出:

gerrit2@bst-esa3-bs:~$ ssh -vv -p 29418 admin@localhost gerrit --help

OpenSSH_5.5p1 Debian-4ubuntu6, OpenSSL 0.9.8o 01 Jun 2010

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Applying options for *

debug2: ssh_connect: needpriv 0

debug1: Connecting to localhost [::1] port …
Run Code Online (Sandbox Code Playgroud)

git permissions denied gerrit public-key

5
推荐指数
1
解决办法
1万
查看次数