小编Lug*_*öör的帖子

熊猫已弃用警告 to_dict()

我收到了这个已弃用的警告:

Using short name for 'orient' is deprecated. Only the options: ('dict', list, 'series', 'split', 'records', 'index') will be used in a future version. Use one of the above to silence this warning.
Run Code Online (Sandbox Code Playgroud)

使用任何此行时:

df.to_dict('records')
df.to_dict(orient='records')
df.to_dict(orientation='records')
Run Code Online (Sandbox Code Playgroud)

熊猫 v1.1.3 蟒蛇 v3.7.1

python deprecated pandas

9
推荐指数
2
解决办法
2814
查看次数

CELERY_IMPORTS、CELERY_RESULT_BACKEND 已弃用。如何使用替代方案?

在 celery 5.0.2 中设置 celery 的配置时

CELERY_BROKER_URL='amqp://localhost',
CELERY_IMPORTS=('my_tasks', 'callbacks'),
CELERY_RESULT_BACKEND='rpc://')
Run Code Online (Sandbox Code Playgroud)

CELERY_IMPORTS已弃用的有关和CELERY_RESULT_BACKEND使用的警告

alternative=f'Use the {_TO_NEW_KEY[setting]} instead')在6.0.0版本中出现。

谁能解释一下这是什么意思吗?

python deprecated celery

5
推荐指数
2
解决办法
8273
查看次数

标签 统计

deprecated ×2

python ×2

celery ×1

pandas ×1