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

Mixed type dropdown widget breaks #1059

Closed
philippjfr opened this issue Jan 13, 2017 · 1 comment
Closed

Mixed type dropdown widget breaks #1059

philippjfr opened this issue Jan 13, 2017 · 1 comment
Assignees
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@philippjfr
Copy link
Member

philippjfr commented Jan 13, 2017

Just encountered this in an example where the widget values were both integers and strings, it seems in this case the dropdown widget will break and only selecting strings will work. Will add a minimal example shortly.

Here is a minimal example (thanks to @ahuang11)

df1 = pd.DataFrame(index=[1, 2, 3, 4])
df1['id'] = 'A'
df1['x'] = [1, 2, 3, 4]
df1['y'] = [1, 2, 3, 4]

df2 = df1.copy()
df2['id'] = 'B'
df2['y'] *= -1

df3 = df2.copy()
df3['id'] = 3
df3['x'] *= -1

df = pd.concat([df1, df2, df3])
df.holoplot('x', 'y', groupby='id', width=350).layout('id')
hv.Dataset(df).to.curve('x', 'y', 'id')
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jan 13, 2017
@philippjfr philippjfr added this to the v1.7.0 milestone Mar 4, 2017
@philippjfr philippjfr self-assigned this Mar 15, 2017
@philippjfr philippjfr modified the milestones: v2.0, v1.7.0 Mar 29, 2017
@philippjfr philippjfr modified the milestones: v2.0, v1.11 May 25, 2018
@philippjfr philippjfr modified the milestones: v1.11.0, v1.11.x Dec 4, 2018
@philippjfr philippjfr modified the milestones: v1.11.x, v1.12.0, v1.12.x Mar 22, 2019
@philippjfr philippjfr modified the milestones: v1.12.x, v1.13.0 Sep 20, 2019
@philippjfr
Copy link
Member Author

This works fine on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

1 participant