• Skip to primary navigation
  • Skip to content
  • Skip to footer
Michael's Blog
  • About
  • Posts
  • Categories
  • Tags
  • Collections
  • Sitemap
    1. Home
    2. /
    3. Useful pandas recipes
    4. /
    5. Headers
    • Useful pandas Recipes
      • Creating DataFrames
      • DataFrame Components
    • Select Data
      • Choose Columns
      • Choose Rows
      • Missing Data
    • Sorting
      • Sorting
    • Combining Data
      • Concatenation
      • Merge
    • Summarize Data
      • Summarize Data
    • Transform
      • Group By
      • Data Types
      • Headers
      • Reverse Rows
      • Transpose
      • Rename
      • Replace
      • Replace Missing
      • Melt (Unpivot)
      • Pivot
      • Tidy Data

    Headers

    On this page

    • CSV Header Row
    • First Row as Headers
    • Headers as First Row
    • See also

    CSV Header Row

    Select the rows to skip and which row to use for the column names with the skiprows and header parameters of read_csv.

    Working with column headers.

    First Row as Headers

    Promotes the first row of values as the new column headers.

    Headers as First Row

    Demotes the column headers to the first row of values.

    See also

    • Replacing header with top row

    Updated: January 29, 2021

    Previous Next
    • Follow:
    • Twitter
    • GitHub
    • Feed
    © 2021 Michael van der Nest. Powered by Jekyll & Minimal Mistakes.