Last active
May 18, 2020 18:14
-
-
Save AjayThorve/b26560a82831926ede73d304653725b6 to your computer and use it in GitHub Desktop.
cuxfilter eg. 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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