python - Not getting column headers on loading csv file in python
问题描述
I am using the following code to load the data in python from a csv file:
import pandas as pd
df_csv = pd.read_csv("IMDB_data.csv", sep = ',',encoding = "ISO-8859-1", skiprows = 2)
the output that I get is this:
If you notice the header of each column it says 0.1, 0.2,0.3... and so on instead of "Plot", "Title", etc. It would be a great help to me if you could help me understand why is this happening? How can it be corrected? What could be possibly causing it?
解决方案
推荐阅读
- javascript - 无法从我的 index.html 中引用由 webpack 在 dist 文件夹中生成的 javascript 和 css 文件
- json - 颠簸转换为数组
- mysql - MYSQL 表导入时显示为空
- amazon-ec2 - cloud-init.yaml 中的私有 docker 注册表
- javascript - 错误未捕获的ReferenceError:分配中的左侧无效
- python - 使用带有时间序列的 Pandas DataFrame 时散点图中的着色标记
- c# - 如何在数据网格的特定行上启用特定按钮
- sql-server - 节点承诺和捕获问题
- html - 如何正确嵌套多个 ng-if?
- ansible - 动态 ansible host_vars