【发布时间】:2020-07-11 08:14:10
【问题描述】:
我有一个数据框 -
year month type amount
0 2019 9 Not Applicable 8000.00
1 2019 10 Not Applicable 7500.00
2 2019 11 Goods & Services 14000.35
3 2019 11 Not Applicable 7500.00
4 2019 12 Goods & Services 10499.00
5 2019 12 Not Applicable 9801.00
我有完整的列金额,但我想将另一列月份转换为这种格式 -
year month type amount
0 2019 9.00 Not Applicable 8000.00
1 2019 10.00 Not Applicable 7500.00
2 2019 11.00 Goods & Services 14000.35
3 2019 11.00 Not Applicable 7500.00
4 2019 12.00 Goods & Services 10499.00
5 2019 12.00 Not Applicable 9801.00
我怎样才能做到这一点。
【问题讨论】:
-
这里的用例是什么?
标签: python django pandas django-rest-framework django-views