SparkDataFrame¶
Spark-backed frames (install pydantable[spark]). See Spark engine.
pydantable.spark_dataframe
¶
Spark-backed lazy :class:~pydantable.dataframe.DataFrame (PySpark).
Install the optional extra: pip install "pydantable[spark]".
This facade mirrors :mod:pydantable.sql_dataframe and
:mod:pydantable.mongo_dataframe: it wires a custom execution engine (from
raikou-core) and supplies root constructors.
SparkDataFrame
¶
Bases: DataFrame
Typed dataframe using a PySpark-backed execution engine (raikou-core).
Source code in python/pydantable/spark_dataframe.py
32 33 34 35 36 37 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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | |
pyspark_ui
¶
Return a PySpark-shaped wrapper over this Spark-backed frame.
Source code in python/pydantable/spark_dataframe.py
pandas_ui
¶
Return a pandas-shaped wrapper over this Spark-backed frame.
Source code in python/pydantable/spark_dataframe.py
spark_col
¶
where_native
¶
select_native
¶
Engine-native projection by Spark Columns (simple column refs only).
Source code in python/pydantable/spark_dataframe.py
from_spark_dataframe
classmethod
¶
Lazy frame over an existing pyspark.sql.DataFrame root.
Call on a concrete parametrized class, e.g.
SparkDataFrame[MySchema].from_spark_dataframe(spark_df).
Source code in python/pydantable/spark_dataframe.py
filter
¶
Spark engine filter.
For Spark execution, pass a pyspark.sql.Column (or a raikou-core SparkExpr),
not a native pydantable Expr.
Source code in python/pydantable/spark_dataframe.py
with_columns
¶
Spark engine computed columns.
Values should be pyspark.sql.Column (or raikou-core SparkExpr).
Source code in python/pydantable/spark_dataframe.py
SparkDataFrameModel
¶
Bases: DataFrameModel
DataFrameModel bound to the optional Spark execution engine.