【发布时间】:2019-12-01 16:50:03
【问题描述】:
我正在尝试探索 pydatatable 中帧的数据类型。
这里有一个数据框:
ventas_duda_dt = dt.Frame(
{"cust_id":[893232.34],"sales":['$123,4532.93'],"profit_perc":['10%']})
及其类型:
ventas_duda_dt.stypes
每个字段的数据类型如下:
(stype.float64, stype.str32, stype.str32)
现在我想将其中三个列从float, str, str 转换为int, float, float,在这里。去掉字段值中的这些特殊符号($,,,%)如何实现?
我正在浏览文档,但我找不到关于该主题的参考。
【问题讨论】:
标签: python dataframe py-datatable