Kind
Base classes
| Name |
Children |
Inherits |
StrEnum enum Enum where members are also (and must be) strings |
|
|
⋔ Inheritance diagram
graph TD
2236642408["source.Kind"]
375580963["enum.StrEnum"]
4275460044["builtins.str"]
2751680898["builtins.object"]
4125183869["enum.ReprEnum"]
3466579666["enum.Enum"]
375580963 --> 2236642408
4275460044 --> 375580963
2751680898 --> 4275460044
4125183869 --> 375580963
3466579666 --> 4125183869
2751680898 --> 3466579666
🛈 DocStrings
Bases: StrEnum
Backend-independent family of a column dtype (drives formatting and icons).
Source code in src/cutepandas/frames/source.py
| class Kind(enum.StrEnum):
"""Backend-independent family of a column dtype (drives formatting and icons)."""
INTEGER = "integer"
FLOAT = "float"
DECIMAL = "decimal"
BOOLEAN = "boolean"
STRING = "string"
CATEGORICAL = "categorical"
DATETIME = "datetime"
DATE = "date"
TIME = "time"
DURATION = "duration"
BINARY = "binary"
NESTED = "nested"
NULL = "null"
OBJECT = "object"
@property
def is_numeric(self) -> bool:
return self in {Kind.INTEGER, Kind.FLOAT, Kind.DECIMAL}
@property
def is_temporal(self) -> bool:
return self in {Kind.DATETIME, Kind.DATE, Kind.TIME, Kind.DURATION}
|
:fa-brands-github: Show source on GitHub