Types
laktory.enums.DataFrameBackends
¤
METHOD | DESCRIPTION |
---|---|
from_df |
Instantiate DataFrameBackends object from a DataFrame. |
from_nw_implementation |
Instantiate DataFrameBackends object from a narwhals implementation. |
ATTRIBUTE | DESCRIPTION |
---|---|
POLARS |
Polars backend.
|
PYSPARK |
PySpark backend.
|
POLARS = auto()
class-attribute
instance-attribute
¤
Polars backend.
PYSPARK = auto()
class-attribute
instance-attribute
¤
PySpark backend.
from_df(df)
classmethod
¤
Instantiate DataFrameBackends object from a DataFrame.
PARAMETER | DESCRIPTION |
---|---|
df
|
DataFrame
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
output
|
DataFrameBackend
TYPE:
|
Source code in laktory/enums.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
from_nw_implementation(implementation)
classmethod
¤
Instantiate DataFrameBackends object from a narwhals implementation.
PARAMETER | DESCRIPTION |
---|---|
implementation
|
Narwhals implementation
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
output
|
DataFrameBackend
TYPE:
|
Source code in laktory/enums.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|