Created
March 21, 2023 18:39
-
-
Save akanik/bf2407c1f5b4898c4e96df3173031b35 to your computer and use it in GitHub Desktop.
Pandas make header into row in dataframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df.loc[len(df.index)] = list(df.columns) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment