简体   繁体   English

使用 pandas 导入带有干净列的 csv 文件?

[英]importing a csv file with clean columns using pandas?

so i'm trying to import this csv file and each value is seperated by a comma but how do i make new rows and columns from the imported data?所以我试图导入这个 csv 文件,每个值都用逗号分隔,但是我如何从导入的数据中创建新的行和列?

I tried importing it as normal and printing the data frame in different ways.我尝试正常导入它并以不同方式打印数据框。

1个

try the same with尝试与

df = pd.read_csv('file_name.csv', sep = ',')

this might work这可能有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM