import pandas as pd
import numpy as np
df = pd.read_csv('test.csv')
df['column_name'] = df['column_name'].astype(np.str)
print(df.dtypes)
import pandas as pd
df[['c3','c5']] = df[['c3','c5']].apply(pd.to_numeric)
print(df.dtypes)
import pandas as pd
# method1
df = pd.DataFrame(data, dtype='float')
print(df.dtypes)
# method2
df = pd.DataFrame(data, dtype=np.float64)
print(df.dtypes)
import pandas as pd
df = pd.read_csv("somefile.csv", dtype = {'column_name' : str})
df = pd.DataFrame(data, dtype='float')
df = pd.DataFrame(data, dtype=np.float64)
print(df.dtypes)
import pandas as pd
df = df.infer_objects()
print(df.dtypes)