Advertisement
Guest User

List updation

a guest
Aug 6th, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. test_df = pd.DataFrame({'userId': [1428013], 'game_list': [['templerun', 'pokemon]]})
  2. new_df = pd.DataFrame({'userId': [1428013], 'game_list': [['templerun', 'sudoku']]})
  3.  
  4. desired_df = pd.DataFrame({'userId': [1428013], 'game_list': [['templerun', 'pokemon', 'sudoku']]})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement