I need to import a csv file that has 300+ columns, among these columns, only the first column needs to specified as a category, while the rest of the columns should be float
I think the following will serve the purpose:
df = pd.read_csv(path, low_memory=False, dtype={'Col_A':'category'})
or if you know it will be the first column:
df = pd.read_csv(path, low_memory=False, dtype={0:'category'})