Is reading Excel data by column labels supported in pandas?

后端 未结 1 1074
长发绾君心
长发绾君心 2021-01-15 01:48
  1. Shows the Excel file I\'m trying to read from.
  2. Shows what I want to do in non-legal code.
  3. Shows what I have been trying so far.

1) Exc

1条回答
  •  星月不相逢
    2021-01-15 02:53

    Per the documentation, there is no support for what you are trying to do. You can select columns by column number or column name, but not by column label:

    parse_cols : int or list, default None

    • If None then parse all columns,

    • If int then indicates last column to be parsed

    • If list of ints then indicates list of column numbers to be parsed

    • If string then indicates comma separated list of column names and column ranges (e.g. “A:E” or “A,C,E:F”)

    0 讨论(0)
提交回复
热议问题