Skip to content

Instantly share code, notes, and snippets.

@AjayThorve
Last active May 18, 2020 18:14
Show Gist options
  • Save AjayThorve/b26560a82831926ede73d304653725b6 to your computer and use it in GitHub Desktop.
Save AjayThorve/b26560a82831926ede73d304653725b6 to your computer and use it in GitHub Desktop.
cuxfilter eg. 1
import cuxfilter
import cudf
df = cudf.read_parquet('./data/census_data.parquet/*')
#create cuxfilter dataframe
cux_df = cuxfilter.DataFrame.from_dataframe(df)
chart0 = cuxfilter.charts.scatter_geo(x='x', y='y')
chart1 = cuxfilter.charts.bar('age')
chart2 = cuxfilter.charts.bar('sex')
d = cux_df.dashboard([chart0, chart1, chart2], layout=cuxfilter.layouts.feature_and_double_base
)
d.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment