Skip to content

Instantly share code, notes, and snippets.

@VioletVivirand
Created April 24, 2017 08:53
Show Gist options
  • Save VioletVivirand/2ec6537dc0f55616e1f02b51440ea614 to your computer and use it in GitHub Desktop.
Save VioletVivirand/2ec6537dc0f55616e1f02b51440ea614 to your computer and use it in GitHub Desktop.
Transformation of DataFrame
pd.DataFrame(list(zip(df.columns.tolist(),df.iloc[0,:].values.tolist())), columns=["node", "value"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment