CSV

In [ ]:
# csv.data
ID,NAME,SALARY
1,Peter,5000
2,Michael,10000
3,Ram,15000
4,Shyam,20000
In [1]:
import pandas as pd
df = pd.read_csv('data.csv', dtype={'ID': str,'NAME': str})
print(df)
  ID     NAME  SALARY
0  1    Peter    5000
1  2  Michael   10000
2  3      Ram   15000
3  4    Shyam   20000
www.000webhost.com