Skip to content
New issue

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

[Analytics] Create plot_predictoor_income.py #612

Closed
9 tasks done
KatunaNorbert opened this issue Feb 13, 2024 · 1 comment
Closed
9 tasks done

[Analytics] Create plot_predictoor_income.py #612

KatunaNorbert opened this issue Feb 13, 2024 · 1 comment
Labels
Type: Enhancement New feature or request

Comments

@KatunaNorbert
Copy link
Member

KatunaNorbert commented Feb 13, 2024

Motivation

We want to build the first plot w/ silver_pdr_predictions table.
It will then be implemented in the FE as a separate task.
The goal here is to simply serve the data from the lake, to the dashboard with very few calculations.

image

DoD

  • Review Calina's PR for streamlit, and replicate the cli + streamlit_entrypoint, such that it's easy for you to get the same streamlit environment going.
  • Look at Calina's changes for SimPlotter.__init__() such that you understand how to setup the sim_plotter page, how to setup columns, contianers, and how to initialize plots. Please note my comments.
  • Create your own PredictoorIncomePlotter class, and implement plots that use data from silver_pdr_predictions table to visualize all data.
  • create plot_predictoor_income.py and render a simple plot that exemplifies the Predictoor Income chart
  • create test to show that plot_predictoor_income is created properly
  • plot should support multiple user addresses (user_ids), and feeds (contract_ids) that sum/show the total.
  • tests should cover both single and multiple addresses as a filter
  • tests should cover both single and multiple feeds as a filter
  • verify that basic plot is rendering as expected, showing: net_income, stake_income, df_income
@KatunaNorbert KatunaNorbert added the Type: Enhancement New feature or request label Feb 13, 2024
@idiom-bytes idiom-bytes changed the title [Analytics] Build UI dashboards [Analytics] Create plot_predictoor_income using plotly + silver_pdr_predictions table Feb 14, 2024
@idiom-bytes idiom-bytes changed the title [Analytics] Create plot_predictoor_income using plotly + silver_pdr_predictions table [Analytics] Create plot_predictoor_income.py Feb 14, 2024
@idiom-bytes
Copy link
Member

idiom-bytes commented Jun 25, 2024

This was "completed" on the streamlit side, albeit with many bugs.

I have tracked this deliverable as outstanding in #1299 and will be closing this ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants