【发布时间】:2020-04-09 05:28:33
【问题描述】:
df1:
product product_Id Price
0 Mobile G67129 4500
1 Earphone H56438 8900
2 Heater K12346 fgdht
3 Kitchen 566578 4500
4 4359 Gh1907 5674
5 plastic G67129 Dfz67
df2:
Column_Name Expected_Dtype
0 product String
1 product_Id String
2 Price int
我需要从 df1 中找出数据类型错误值,并在 df2 中有列数据类型信息。
输出:
column_Name Value Exp_dtype index
0 product 4359 String 4
1 product_Id 566578 String 3
2 Price fgdht int 2
3 Price Dfz67 int 5
【问题讨论】:
-
当然。你试过什么?
-
记住我们不是为你做事;当您遇到困难时,我们会帮助您。
-
看这篇文章对你有帮助stackoverflow.com/questions/28654047/…
-
这能回答你的问题吗? pandas convert some columns into rows
-
#AKX ,很抱歉,但我不知道从哪里开始。
标签: python python-3.x pandas python-2.7