We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of posting screenshots to twitter, I thought I'd store the weekly snippet here :)
categories = data.groupby(['date', 'category', 'line_item']).sum()['cost'].reset_index() categories = categories.groupby(['date', 'category']).sum().reset_index() weekly = (categories.replace(np.nan, 0) .groupby(['category']).resample("W", on='date').sum().reset_index()) alt.Chart(data=weekly, width=width).mark_line(clip=True).encode( x=alt.X('date', axis=alt.Axis(title='Date (weeks)')), y=alt.Y('cost', axis=alt.Axis(title='Cost (USD)'), scale=alt.Scale(domain=(0, 1000))), color="category" )
The text was updated successfully, but these errors were encountered:
nice! want to update the notebook? Or leave it in issue form?
Sorry, something went wrong.
I think we should get https://twitter.com/antarcticdesign/status/1116618370319675393 to send us his code (by picture or real code) :)
yeah I agree, those are purdy plots :-)
No branches or pull requests
Instead of posting screenshots to twitter, I thought I'd store the weekly snippet here :)
The text was updated successfully, but these errors were encountered: