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

Detecting loops in Sankeys #271

Merged
merged 2 commits into from
Apr 9, 2016
Merged

Detecting loops in Sankeys #271

merged 2 commits into from
Apr 9, 2016

Conversation

mistercrunch
Copy link
Member

@landscape-bot
Copy link

Code Health
Repository health decreased by 0.04% when pulling d983413 on sankey_loop into 81de51b on master.

recs = df.to_dict(orient='records')
seen = set()
hierarchy = {row['source']: row['target'] for row in recs}
def find_loop(source, target):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might just be me but comments might make this a little more readable. not huge deal.

@williaster
Copy link
Contributor

super nice add / nice debugging!

LGTM overall, though I can't tell if the failed tests were intentional or not. Detecting sankey loops seems like a good opportunity for a test(s).

@mistercrunch
Copy link
Member Author

Yeah I'm confused, apparently there's a loop in the example, but how does it still work then! I'll have to dig deeper

@williaster
Copy link
Contributor

see the slack channel for another example of a broken sankey, cc-ed you.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 72.177% when pulling dc48468 on sankey_loop into a3dcb0f on master.

@mistercrunch mistercrunch merged commit 866e00d into master Apr 9, 2016
@mistercrunch mistercrunch deleted the sankey_loop branch April 9, 2016 07:17
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.7 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.8.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants