Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- # Duration -> subscription plan duration
- # Game -> game name
- # Start_Date -> day when the pricing was introduced
- # Price -> price associated
- test_df = pd.DataFrame({'Duration': ['Monthly', 'Monthly', 'Monthly', 'Yearly']
- , 'Game':['temple_run', 'bike_racing', 'bike_racing', 'bike_racing']
- , 'Start_Date': ['01/05/21', '02/05/21', '07/05/21', '10/05/21']
- , 'Price': [8.99, 8.99, 9.99, 8.99]})
- # We need to maintain a dataframe such that given any input date its able to return the price associated
- # on that day for each (game + duration) combination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement