Skip to content

Instantly share code, notes, and snippets.

@zhangpengGenedock
Last active August 28, 2017 06:58
Show Gist options
  • Save zhangpengGenedock/97b618a4827e52a87b2590e37b86d46b to your computer and use it in GitHub Desktop.
Save zhangpengGenedock/97b618a4827e52a87b2590e37b86d46b to your computer and use it in GitHub Desktop.
dataframe_add_column_if_not_exist
if 'Met' not in df:
df['Met'] = df['freqC'] * df['coverage']
@zhangpengGenedock
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment