I am parsing a payload and want to import only those columns that I am including in my model. I can easily do this in pandas using:
df = pd.read_csv(StringIO(values), delimiter=',', usecols=LIST_COLS)
However, my fear is that sometimes the column names (often camel case) will not match the column names in the model. Thus, prior to training my model, I converted all column names to lower case. Now, when I import my data I want to import the column names as lower to ensure everything will match up when all portions of the payload are concatenated and a prediction needs to be generated.
I am assuming this is possible but I do not know how to do this.
Thank you in advance.