Last active
August 28, 2017 06:58
-
-
Save zhangpengGenedock/97b618a4827e52a87b2590e37b86d46b to your computer and use it in GitHub Desktop.
dataframe_add_column_if_not_exist
This file contains hidden or 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
if 'Met' not in df: | |
df['Met'] = df['freqC'] * df['coverage'] | |
Author
zhangpengGenedock
commented
Aug 28, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment