Skip to content

Instantly share code, notes, and snippets.

@nithyadurai87
Created June 11, 2021 09:58
Show Gist options
  • Select an option

  • Save nithyadurai87/f2b10f76f64f3cd2c4037f94351b1ff8 to your computer and use it in GitHub Desktop.

Select an option

Save nithyadurai87/f2b10f76f64f3cd2c4037f94351b1ff8 to your computer and use it in GitHub Desktop.
import pandas as pd
import numpy as np
df = pd.read_csv("./girls.csv")
print (df)
df = pd.read_csv("./girls.csv",index_col=['id'])
print (df)
df = pd.read_csv("./girls.csv",names=['a', 'b', 'c','d','e','f','g'])
print (df)
df=pd.read_csv("./girls.csv",header=4)
print (df)
df=pd.read_csv("./girls.csv",skiprows=5,dtype={'40': np.float64})
print (df)
df.to_csv('aaa.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment