ConvertDtypes
Base classes
| Name |
Children |
Inherits |
CallOp datacook.engine.ops.base An op that is one pandas call. |
|
|
⋔ Inheritance diagram
graph TD
1573987273["columns.ConvertDtypes"]
3484306131["base.CallOp"]
1539482213["base.Op"]
2751680898["builtins.object"]
3484306131 --> 1573987273
1539482213 --> 3484306131
2751680898 --> 1539482213
🛈 DocStrings
Bases: CallOp
Source code in src/datacook/engine/ops/columns.py
| class ConvertDtypes(base.CallOp):
id = "convert_dtypes"
title = _("Infer data types")
description = _(
"Convert columns to the best fitting data type (e.g. text columns holding whole"
" numbers to integers), arrow-backed by default."
)
category = categories.CONVERSION
icon = "mdi.auto-fix"
method = "convert_dtypes"
always = ("dtype_backend",)
class Params(base.Params):
dtype_backend: Literal["pyarrow", "numpy_nullable"] = Field("pyarrow", title=N_("Backend"))
|
:fa-brands-github: Show source on GitHub