Data Format for Heatmaps #1174
mtanco
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks a lot @mtanco and It would be much clearer to user , if this details are added to wave doc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you've built heatmaps in other plotting libraries, you might have your data formatted in "heat map" shape like:
The H2O Wave plot card, however is looking for the data in a different shape. You can read about the
data()
function to learn more. But here's a little snippet to format your pandas data appropriately. We use themelt
function to create 3 columns: values for the x-axis, values for the y-axis, and values for the color of that specific x-y cell.Beta Was this translation helpful? Give feedback.
All reactions