gebimble / machine-learning-articles

List of interesting articles on different topics of machine learning and deep learning
0 stars 0 forks source link

Using GroupFilter and CDSView #1

Open gebimble opened 4 years ago

gebimble commented 4 years ago

TL;DR

Grouping functionality for bokeh.

Article Link

https://realpython.com/lessons/using-groupfilter-and-cdsview/

Author

Christopher Bailey

Key Takeaways

Useful Code Snippets

# Create a ColumnDataSource
west_cds = ColumnDataSource(west_top_2)

# Create view for each team
rockets_view = CDSView(source=west_cds,
                       filters=[GroupFilter(column_name='teamAbbr', group='HOU')])
warriors_view = CDSView(source=west_cds,
                        filters=[GroupFilter(column_name='teamAbbr', group='GS')])