Update all Python examples in user guide to use best practices

Description

There are many places in the User Guide which do not use best practices. We can try to add some more ideas to this ticket, but for right now, the use of long import statements when simple aliases can be used is something I want to clean up:

Example of verbose import statements: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/stacked-ensembles.html

Since we have a lot of aliases, this can be simplified to:

Note that we should also add a blank line after the import statements and before `h2o.init()`. Also since Python 3 is the standard, we can remove the print statement line.

Let's try to add some more examples to this ticket and once it's "complete" we can start making the changes.

Activity

Show:
Erin LeDell
October 29, 2020, 10:13 PM

Please take note of the best practices here and let’s make sure they are also applied to any Python trainings you’re creating. Thanks!

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

hannah.tillman

Reporter

Erin LeDell