I have a partial code to import excel into Python as strings. How I can exclude first row when importing data from excel into Python?
import pandas as pd
data = pd.read_excel(".xlsx", parse_cols="A,C,E,G, I, K, M, O, Q, S, U, W, Y, AA, AC, AE, AG, AI, AK, AM, AO, AQ, AS, AU, AW, AY, BA, BC, BE, BG, BI, BK, BM, BO, BQ, BS, BU, BW, BY, CA, CC, CE, CG, CI, CK, CM, CO, CQ, CS, CU, CW, CY, DA, DC, DE, DG, DI, DK, DM, DO, DQ, DS, DU, DW, DY, EA, EC, DE, EG, EI, EK, EM, EO, EQ, ES, EU, EW, EY")
data = data.to_string()
data
? Or do you have unnecessary rows in the excel. Usingskiprows()
to avoid reading in the header is probably not the right approach. You can do:data.to_string(header=False)
to avoid the headers. – Letterheadskiprows()
will do for me, thank you. – Bolo