Say I have two lists:
header = ['a', 'b', 'c', 'd']
data_type = ['str', 'str', 'float64', 'float64']
How do I get a combined list like this:
data_type = {'a':str, 'b':str, 'c':float64, 'd':float64}
This is used to define dtype in pd.read_csv method.
str, without quotes?? (valid, but suspicious)float64without quotes? valid?? maybe in pandas?