deephaven.DeephavenDb¶
Utilities for interacting with Deephaven sessions.
-
class
DeephavenDb¶ DeephavenDb session
-
db()¶ Gets the Deephaven database object
-
execute(groovy)¶ Executes Deephaven groovy code from a snippet/string
- Parameters
groovy – groovy code
-
executeFile(file)¶ Executes Deephaven groovy code from a file
- Parameters
file – the file
-
get(variable)¶ Gets a variable from the groovy session
- Parameters
variable – variable name
- Returns
the value
-
getDf(variable)¶ Gets a Table as a
pandas.DataFramefrom the console session- Parameters
variable – the variable (table) name
- Returns
pandas.DataFrameinstance representing Table specified by variable
-
pushDf(name, df)¶ Pushes a
pandas.DataFrameto the Deephaven groovy session as a Table- Parameters
name – the destination variable name in the groovy session
df –
pandas.DataFrameinstance
-
reconnect()¶ Disconnects/shuts down the current session, and establishes a new session
Warning
The current Deephaven state will be lost
-