Replies: 1 comment
|
Something like this will work. I apologize in advance for any syntax issues. I'm writing from my phone. Cell 1 df1 = pd.DataFrame({"id": [101, 102, 103], "Source": ["Alpha", "Beta", "Gamma"]})
df2 = pd.DataFrame({"id": [103, 101, 102], "Target": ["Xray", "Yankee", "Zulu"]})Cell 2 df1_selectable = mo.ui.dataframe(df1)Cell 3 mo.hstack([
df1_selectable,
df2[df2["id"].isin(
df1_selectable.value["id"]
)] |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the toy example below, when clicking on "Alpha", I would like to show a line that connects to "Yankee"
All reactions