小编Eli*_*ina的帖子

从 pandas.core.series.Series 中删除前导零

我有一个带有数据的 pandas.core.series.Series

0    [00115840, 00110005, 001000033, 00116000...
1    [00267285, 00263627, 00267010, 0026513...
2                             [00335595, 00350750]
Run Code Online (Sandbox Code Playgroud)

我想从系列中删除前导零。我试过了

x.astype('int64')
Run Code Online (Sandbox Code Playgroud)

但收到错误信息

ValueError: setting an array element with a sequence.
Run Code Online (Sandbox Code Playgroud)

你能建议我如何在 python 3.x 中做到这一点吗?

python time-series pandas

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

标签 统计

pandas ×1

python ×1

time-series ×1