Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- company = re.findall('\/[A-Za-z]+\?', url)
- chars = ['?','/', '[',']', '\'']
- for i in chars:
- company = str(company).replace(i, '')
- #############################################
- titanic.survived.replace(to_replace = ['yes', 'no'], value = [1,0], inplace = True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement