vaexio / vaex

Out-of-Core hybrid Apache Arrow/NumPy DataFrame for Python, ML, visualization and exploration of big tabular data at a billion rows per second 🚀
https://vaex.io
MIT License
8.27k stars 590 forks source link

interactive statistic heatmap / quadrilateral mesh #2419

Open vadmbertr opened 6 months ago

vadmbertr commented 6 months ago

Hi,

I have a question on how to plot an interactive (in the sense of the data being displayed through a selection and being able to zoom, pan, etc... on the plot) heatmap (or quadrilateral mesh) of a variable statistic. Following the tutorial on jupyter integration (https://vaex.io/docs/tutorial_jupyter.html#) I understood that it only apply to count. Did I missed something?

For potential discussions, we can consider a dataframe df with the columns time, lat, lon and var. var being the variable upon which the statistic (mean) is computed over time, binned by lat and lon. A non-interactive version would be:

df.viz.heatmap("lon", "lat", what="mean(var)")

Regards, Vadim