data extraction tidy up
This commit is contained in:
parent
e4328df255
commit
65e6b28d9e
2 changed files with 195 additions and 105 deletions
|
@ -18,7 +18,9 @@ import pandas as pd
|
|||
#os.chdir(homedir + '/git/LSHTM_analysis/scripts')
|
||||
#os.getcwd()
|
||||
#%%=====================================================================
|
||||
# define the split function
|
||||
# tidy_split():Function to split mutations on specified delimiter: ';'
|
||||
#https://stackoverflow.com/questions/41476150/removing-space-from-dataframe-columns-in-pandas
|
||||
|
||||
def tidy_split(df, column, sep = '|', keep = False):
|
||||
'''
|
||||
Split the values of a column and expand so the new DataFrame has one split
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue