Advertisement
Guest User

test

a guest
Jun 17th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. import pandas as pd
  2.  
  3.  
  4. # Duration -> subscription plan duration
  5. # Game -> game name
  6. # Start_Date -> day when the pricing was introduced
  7. # Price -> price associated
  8. test_df = pd.DataFrame({'Duration': ['Monthly', 'Monthly', 'Monthly', 'Yearly']
  9.                        , 'Game':['temple_run', 'bike_racing', 'bike_racing', 'bike_racing']
  10.                        , 'Start_Date': ['01/05/21', '02/05/21', '07/05/21', '10/05/21']
  11.                        , 'Price': [8.99, 8.99, 9.99, 8.99]})
  12.  
  13. # We need to maintain a dataframe such that given any input date its able to return the price associated
  14. # on that day for each (game + duration) combination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement