Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csv file doesnt have proper column name #13

Open
FrankenDeba opened this issue Feb 10, 2018 · 2 comments
Open

csv file doesnt have proper column name #13

FrankenDeba opened this issue Feb 10, 2018 · 2 comments

Comments

@FrankenDeba
Copy link

No description provided.

@FrankenDeba
Copy link
Author

FrankenDeba commented Feb 10, 2018

from pandas import *
df=read_csv("data.csv")
df.rename(columns={"32.502345269453031":"amount of hour studied"},inplace=True)
df.rename(columns={"31.70700584656992":"test scores"},inplace=True)

@uddeshyatyagi
Copy link

Hi @FrankenDeba, u can not directly change name like that,you are converting the 1st row values to name and that may affects the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants