DataTypes
laktory.models.dtypes.DType
¤
Bases: BaseModel
Generic data type class.
Examples:
from laktory import models
# Int32
dtype = models.DType(name="Int32")
print(dtype)
# List of string
dtype = models.DType(name="list", inner="str")
print(dtype)
# Structure
dtype = models.DType(
name="struct", fields={"x": {"name": "list", "inner": "double"}, "y": dtype}
)
print(dtype)
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.DField
¤
Bases: BaseModel
Data Field definition
| PARAMETER | DESCRIPTION |
|---|---|
dtype
|
Field data type
TYPE:
|
name
|
Field name
TYPE:
|
laktory.models.dtypes.Array
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.List
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Struct
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Decimal
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Int128
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Int64
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Int32
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Int16
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Int8
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.UInt128
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.UInt64
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.UInt32
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.UInt16
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.UInt8
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Float32
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Float64
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.String
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Boolean
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Object
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Categorical
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Enum
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Datetime
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Duration
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
laktory.models.dtypes.Date
¤
Bases: SpecificDType
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Data type category
TYPE:
|
fields
|
Definition of fields for
TYPE:
|
inner
|
Data type for sub-elements for
TYPE:
|
name
|
Data type name.
TYPE:
|
shape
|
Definition of shape for
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
set_name |
Force dump of |
to_narwhals |
Get equivalent Narwhals data type |
to_polars |
Get equivalent Polars data type |
to_pyspark |
Get equivalent Spark data type |
set_name()
¤
Force dump of name property to allow de-serialization from DType model
Source code in laktory/models/dtypes.py
254 255 256 257 258 | |
to_narwhals()
¤
Get equivalent Narwhals data type
Source code in laktory/models/dtypes.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
to_polars()
¤
Get equivalent Polars data type
Source code in laktory/models/dtypes.py
240 241 242 243 244 245 246 247 | |
to_pyspark()
¤
Get equivalent Spark data type
Source code in laktory/models/dtypes.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |