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.DataFrame
from the console session- Parameters
variable – the variable (table) name
- Returns
pandas.DataFrame
instance representing Table specified by variable
-
pushDf
(name, df)¶ Pushes a
pandas.DataFrame
to the Deephaven groovy session as a Table- Parameters
name – the destination variable name in the groovy session
df –
pandas.DataFrame
instance
-
reconnect
()¶ Disconnects/shuts down the current session, and establishes a new session
Warning
The current Deephaven state will be lost
-