In csv files numeric values are converted to string format. When I try to upload such files via postgres, system doesn't recognize these numeric columns.
I have tried to modify the data type of such columns within the csv file using python using
df=pd.read_csv(r"C:\My Files\data1.csv")
df.dtypes
df[14]=pd.to_numeric("PRICE",errors='coerce')
df.dtypes
However I get the error noted below:
DtypeWarning: Columns (1,2,7) have mixed types. Specify dtype option on import or set low_memory=False.
interactivity=interactivity, compiler=compiler, result=result
Data type of this column continues to remain as OBJECT in Python.
Pls help.