Skip to content

Instantly share code, notes, and snippets.

@kaskichandrakant
Created November 26, 2018 05:12
Show Gist options
  • Save kaskichandrakant/1e90083efbe0d4d197ac35b3ae13e32e to your computer and use it in GitHub Desktop.
Save kaskichandrakant/1e90083efbe0d4d197ac35b3ae13e32e to your computer and use it in GitHub Desktop.
df.apply(lambda x: x.str.strip)
df.loc[df["column_name"] == "value", "column_to_changed"] = 'new_value'
df.reanme(columns={'old_column_name':'new_colmn_name'})
df['column_name'].fillna('value',inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment