Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Experimental Plotting in H2O Flow (Limited Support)

DZone's Guide to

Experimental Plotting in H2O Flow (Limited Support)

Learn about H2O Flow's experimental plot option, what information you need in order to use it, and why it might be helpful to you.

· Big Data Zone ·
Free Resource

Hortonworks Sandbox for HDP and HDF is your chance to get started on learning, developing, testing and trying out new features. Each download comes preconfigured with interactive tutorials, sample data and developments from the Apache community.

H2O Flow comes with an experimental plot option that can be used as below.

What you need is:

  • X: Column name
  • Y: Column name
  • Data: DataFrame name

Here is what the experimental script looks like:

plot (g) -> g(
   g.point(
   g.position "X_Column", "Y_Column"
 )
 g.from inspect "data", getFrameData "DATA_SET_KEY"
)

You can launch the plot configuration as below:

plot inspect 'data', getFrame "<dataframe>"

Here is the screen shot:

Screen Shot 2017-06-19 at 4.50.31 PM

Here is the example script:

plot (g) -> g(
      g.point(
      g.position "FIRST_PAYMENT_DATE", "CHANNEL"
      )
    g.from inspect "data", getFrameData "FM_Joined"
)

Note: This experimentation script only selects first 20 columns and 1,000 rows — and this setting can not be configured.

Hortonworks Community Connection (HCC) is an online collaboration destination for developers, DevOps, customers and partners to get answers to questions, collaborate on technical articles and share code examples from GitHub.  Join the discussion.

Topics:
big data ,tutorial ,h2o ,plotting

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}