相关疑难解决方法(0)

从字符串创建Pandas DataFrame

为了测试一些功能,我想DataFrame从一个字符串创建一个.假设我的测试数据如下:

TESTDATA="""col1;col2;col3
1;4.4;99
2;4.5;200
3;4.7;65
4;3.2;140
"""
Run Code Online (Sandbox Code Playgroud)

将数据读入熊猫的最简单方法是什么DataFrame

python csv string csv-import pandas

230
推荐指数
5
解决办法
14万
查看次数

标签 统计

csv ×1

csv-import ×1

pandas ×1

python ×1

string ×1