import numpy as np
import pandas
x = pandas.read_csv('weird.csv')
x.dtypes
datatypes = [('int_field', 'i4'), ('floatlike', 'S10'), ('strfield', 'S10')]
y_np = np.loadtxt('weird.csv', dtype=datatypes, delimiter=',', skiprows=1)
y_np
y_pandas = pandas.DataFrame.from_records(y_np)
y_pandas.dtypes
Prevent pandas from automatically infering type in read_csv