ChangeDtypes
Base classes
| Name |
Children |
Inherits |
CallOp datacook.engine.ops.base An op that is one pandas call. |
|
|
⋔ Inheritance diagram
graph TD
44548041["columns.ChangeDtypes"]
3484306131["base.CallOp"]
1539482213["base.Op"]
2751680898["builtins.object"]
3484306131 --> 44548041
1539482213 --> 3484306131
2751680898 --> 1539482213
🛈 DocStrings
Bases: CallOp
Source code in src/datacook/engine/ops/columns.py
| class ChangeDtypes(base.CallOp):
id = "astype"
title = _("Change data type")
description = _(
"Convert columns to other data types (e.g. 'float32', 'int64[pyarrow]', 'category')."
)
category = categories.CONVERSION
icon = "mdi.swap-horizontal"
method = "astype"
positional = ("dtype",)
class Params(base.Params):
dtype: dict[str, str] = Field(
title=N_("Data types"), min_length=1, json_schema_extra={"widget": "column_map"}
)
|
:fa-brands-github: Show source on GitHub