Created
July 31, 2020 14:03
-
-
Save arunm8489/4ab4aa9ce9f0cb50dbd81d89bd57c705 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
price_data = resources.groupby('id').agg({'price':'sum', 'quantity':'sum'}).reset_index() | |
# join two dataframes in python: | |
data = pd.merge(data, price_data, on='id', how='left') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment