Skip to content

Instantly share code, notes, and snippets.

@AidanCooper
Created July 10, 2022 21:06
Show Gist options
  • Save AidanCooper/9f4ce0d0aec1f5846259f0c9b6755c15 to your computer and use it in GitHub Desktop.
Save AidanCooper/9f4ce0d0aec1f5846259f0c9b6755c15 to your computer and use it in GitHub Desktop.
def get_var(df, var_name):
globals()[var_name] = df
return df
df = df.pipe(get_var, "df1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment