Skip to content

Instantly share code, notes, and snippets.

@abhijeet-talaulikar
Created June 20, 2023 02:51
Show Gist options
  • Save abhijeet-talaulikar/43f76b9799df72bfd66bf85d8b1a5821 to your computer and use it in GitHub Desktop.
Save abhijeet-talaulikar/43f76b9799df72bfd66bf85d8b1a5821 to your computer and use it in GitHub Desktop.
media = pd.read_csv('media.csv', parse_dates=['DATE'])
media = media.resample('W-Mon', label='left', closed='left', on='DATE').sum()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment