Skip to content
Discussion options

You must be logged in to vote

Later than never

and following is an example file for LLY
LLY_revenue_segments.csv

Workflow is something like below

Group by Dimension
- Group DataFrame rows by the dimension column
- Initialize report counter
Process Each Dimension (loop):
Print Report Header
- Show report number and dimension name
Filter by Ticker
- Split group into:
  - Rows where member starts with <ticker>:
  - All other rows
- Print counts for each
Check for Ticker Data
- If no ticker rows: print "No members found" and continue to next dimension
Build Tree
- Parse full_dimension_label paths from ticker rows
- Construct hierarchical TreeNode structure
- Nest nodes according to path depth
Geographic Check
- If dimensi…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@abdukhashimov
Comment options

Comment options

You must be logged in to vote
4 replies
@abdukhashimov
Comment options

@abdukhashimov
Comment options

Answer selected by abdukhashimov
@abdukhashimov
Comment options

@abdukhashimov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants