Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import pandas as pd
- def getFullPath2(x):
- ret = ''
- for i in range(150,0,-1):
- ret += str(x['Res' + str(i)])
- return ret
- def getPath2(x):
- line = x.split('|')
- a = line[0]
- b = line[1]
- c = line[2]
- if b == 'ret1':
- return 'A'
- elif b == 'ret2':
- if c.startswith('B_'):
- return 'B'
- elif c.startswith('C_'):
- return 'C'
- elif c.startswith('A_'):
- if a.startswith('D_'):
- return 'D'
- else:
- return 'E'
- else:
- return 'F'
Add Comment
Please, Sign In to add comment