riptable.rt_enum
Classes
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
MATH_OPERATION is the encoding of the Riptable implemented mathematical operations. |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
|
When special classes are loaded, they register with this class to avoid cyclical dependencies |
Attributes
- class riptable.rt_enum.DATETIME_TYPES[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- ORDINAL_DATE = 1
- class riptable.rt_enum.DS_DISPLAY_TYPES[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- HTML = 1
- REPR = 2
- STR = 3
- class riptable.rt_enum.DisplayArrayTypes[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- Bool = 0
- Bytes = 3
- Categorical = 4
- DateTime = 6
- DateTimeBase = 7
- DateTimeNano = 9
- Float = 2
- Integer = 1
- Record = 11
- String = 5
- TimeSpan = 10
- class riptable.rt_enum.DisplayColumnColors[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- Accum2t = 8
- BGColor = 14
- DarkBlue = 13
- Default = 0
- FGColor = 15
- GrayItalic = 12
- Groupby = 3
- Multiset_col_a = 6
- Multiset_col_b = 7
- Multiset_head_a = 4
- Multiset_head_b = 5
- Pink = 10
- Purple = 9
- Red = 11
- Rownum = 1
- Sort = 2
- class riptable.rt_enum.DisplayDetectModes[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- Console = 3
- HTML = 5
- Ipython = 2
- Jupyter = 1
- class riptable.rt_enum.DisplayJustification[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- Center = 3
- Left = 1
- Right = 2
- Undefined = 0
- class riptable.rt_enum.DisplayLength[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- Long = 3
- Medium = 2
- Short = 1
- Undefined = 0
- class riptable.rt_enum.GB_FUNCTIONS[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- GB_CUMMAX = 308
- GB_CUMMIN = 309
- GB_CUMNANMAX = 306
- GB_CUMNANMIN = 307
- GB_CUMPROD = 302
- GB_CUMSUM = 300
- GB_EMADECAY = 301
- GB_EMANORMAL = 304
- GB_EMAWEIGHTED = 305
- GB_FINDNTH = 303
- GB_FIRST = 100
- GB_LAST = 102
- GB_MAX = 3
- GB_MEAN = 1
- GB_MEDIAN = 103
- GB_MIN = 2
- GB_MODE = 104
- GB_NANMAX = 53
- GB_NANMEAN = 51
- GB_NANMIN = 52
- GB_NANSTD = 55
- GB_NANSUM = 50
- GB_NANVAR = 54
- GB_NTH = 101
- GB_QUANTILE_MULT = 106
- GB_ROLLING_COUNT = 204
- GB_ROLLING_DIFF = 202
- GB_ROLLING_MEAN = 205
- GB_ROLLING_NANMEAN = 206
- GB_ROLLING_NANSUM = 201
- GB_ROLLING_QUANTILE = 207
- GB_ROLLING_SHIFT = 203
- GB_ROLLING_SUM = 200
- GB_STD = 5
- GB_SUM = 0
- GB_TRIMBR = 105
- GB_VAR = 4
- class riptable.rt_enum.MATH_OPERATION[source]
Bases:
enum.IntEnum
MATH_OPERATION is the encoding of the Riptable implemented mathematical operations.
- ABS = 201
- ADD = 1
- BITWISE_AND = 503
- BITWISE_ANDNOT = 506
- BITWISE_LSHIFT = 501
- BITWISE_NOT = 218
- BITWISE_NOTAND = 507
- BITWISE_OR = 505
- BITWISE_RSHIFT = 502
- BITWISE_XOR = 504
- BITWISE_XOR_SPECIAL = 550
- CBRT = 308
- CEIL = 206
- CMP_EQ = 401
- CMP_GT = 404
- CMP_GTE = 406
- CMP_LT = 403
- CMP_LTE = 405
- CMP_NE = 402
- DIV = 101
- EXP = 216
- EXP2 = 217
- EXPM1 = 305
- FABS = 203
- FLOOR = 205
- FLOORDIV = 10
- FMOD = 13
- INVERT = 204
- ISFINITE = 605
- ISINF = 603
- ISNAN = 604
- ISNANORZERO = 611
- ISNORMAL = 606
- ISNOTFINITE = 609
- ISNOTINF = 607
- ISNOTNAN = 608
- ISNOTNORMAL = 610
- LOG = 302
- LOG10 = 304
- LOG1P = 306
- LOG2 = 303
- LOGICAL_AND = 407
- LOGICAL_NOT = 601
- LOGICAL_OR = 409
- LOGICAL_XOR = 408
- MAX = 7
- MIN = 6
- MOD = 5
- MUL = 3
- NANMAX = 9
- NANMIN = 8
- NEG = 202
- NEGATIVE = 212
- POSITIVE = 213
- POWER = 11
- RECIPROCAL = 309
- REMAINDER = 12
- RINT = 215
- ROUND = 208
- SIGN = 214
- SIGNBIT = 612
- SQRT = 301
- SQUARE = 307
- SUB = 2
- SUBDATES = 103
- SUBDATETIMES = 102
- TRUNC = 207
- class riptable.rt_enum.NumpyCharTypes[source]
- All = '?bhilqpBHILQPefdgFDGSUVOMm'
- AllFloat = 'efdgFDG'
- AllInteger = 'bBhHiIlLqQpP'
- Character = 'c'
- Complex = 'FDG'
- Computable = 'fdgbBhHiIlLqQpP'
- Datetime = 'Mm'
- Float = 'efdg'
- Float64 = 'dg'
- Integer = 'bhilqp'
- Noncomputable = 'SeFDGUVOMm'
- SignedInteger64 = 'qp'
- Supported = '?fdgbBhHiIlLqQpPSUV'
- SupportedAlternate = '?fdgbBhHiIlLqQpPSU'
- SupportedFloat = 'fdg'
- UnsignedInteger = 'BHILQP'
- UnsignedInteger64 = 'QP'
- Unsupported = 'eFDGVOMm'
- class riptable.rt_enum.REDUCE_FUNCTIONS[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- REDUCE_ALL = 209
- REDUCE_ANY = 208
- REDUCE_ARGMAX = 206
- REDUCE_ARGMIN = 204
- REDUCE_MAX = 202
- REDUCE_MEAN = 102
- REDUCE_MIN = 200
- REDUCE_NANARGMAX = 207
- REDUCE_NANARGMIN = 205
- REDUCE_NANMAX = 203
- REDUCE_NANMEAN = 103
- REDUCE_NANMIN = 201
- REDUCE_NANSTD = 109
- REDUCE_NANSUM = 1
- REDUCE_NANVAR = 107
- REDUCE_STD = 108
- REDUCE_SUM = 0
- REDUCE_VAR = 106
- class riptable.rt_enum.ROLLING_FUNCTIONS[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- ROLLING_MEAN = 102
- ROLLING_NANMEAN = 103
- ROLLING_NANSTD = 109
- ROLLING_NANSUM = 1
- ROLLING_NANVAR = 107
- ROLLING_QUANTILE = 104
- ROLLING_STD = 108
- ROLLING_SUM = 0
- ROLLING_VAR = 106
- class riptable.rt_enum.SD_TYPES[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- SD_CELL = 8
- SD_CHAR = 6
- SD_CLASS = 3
- SD_DATASET = 2
- SD_FUNCTIONH = 1
- SD_LOGICAL = 7
- SD_NUMERIC = 9
- SD_NUMPY = 21
- SD_PANDAS = 20
- SD_SCALAR = 5
- SD_STRUCT = 4
- SD_UNKNOWN = 0
- SD_VECTOR = 10
- class riptable.rt_enum.SM_DTYPES[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- DT_BOOL = 1
- DT_BYTE = 2
- DT_BYTES = 18
- DT_CHARARRAY = 24
- DT_DATETIME64 = 21
- DT_FLOAT16 = 11
- DT_FLOAT32 = 12
- DT_FLOAT64 = 13
- DT_HALF = 23
- DT_INT16 = 4
- DT_INT32 = 5
- DT_INT64 = 6
- DT_INT8 = 3
- DT_INVALID = 0
- DT_NPVOID = 20
- DT_OBJECT = 17
- DT_TIMEDELTA64 = 22
- DT_UINT16 = 8
- DT_UINT32 = 9
- DT_UINT64 = 10
- DT_UINT8 = 7
- DT_UNICODE = 19
- class riptable.rt_enum.TIMEWINDOW_FUNCTIONS[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- TIMEWINDOW_PROD = 1
- TIMEWINDOW_SUM = 0
- class riptable.rt_enum.TypeRegister[source]
When special classes are loaded, they register with this class to avoid cyclical dependencies
- Accum2: ClassVar[Type[TypeRegister.Accum2]]
- Calendar: ClassVar[Type[TypeRegister.Calendar]]
- Categorical: ClassVar[Type[TypeRegister.Categorical]]
- Categories: ClassVar[Type[TypeRegister.Categories]]
- Dataset: ClassVar[Type[TypeRegister.Dataset]]
- Date: ClassVar[Type[TypeRegister.Date]]
- DateBase: ClassVar[Type[TypeRegister.DateBase]]
- DateSpan: ClassVar[Type[TypeRegister.DateSpan]]
- DateTimeBase: ClassVar[Type[TypeRegister.DateTimeBase]]
- DateTimeNano: ClassVar[Type[TypeRegister.DateTimeNano]]
- DisplayAttributes: ClassVar[Type[TypeRegister.DisplayAttributes]]
- DisplayDetect: ClassVar[Type[TypeRegister.DisplayDetect]]
- DisplayOptions: ClassVar[Type[TypeRegister.DisplayOptions]]
- DisplayString: ClassVar[Type[TypeRegister.DisplayString]]
- DisplayTable: ClassVar[Type[TypeRegister.DisplayTable]]
- DisplayText: ClassVar[Type[TypeRegister.DisplayText]]
- FastArray: ClassVar[Type[TypeRegister.FastArray]]
- GroupBy: ClassVar[Type[TypeRegister.GroupBy]]
- Grouping: ClassVar[Type[TypeRegister.Grouping]]
- MathLedger: ClassVar[Type[TypeRegister.MathLedger]]
- Multiset: ClassVar[Type[TypeRegister.Multiset]]
- PDataset: ClassVar[Type[TypeRegister.PDataset]]
- SortCache: ClassVar[Type[TypeRegister.SortCache]]
- Struct: ClassVar[Type[TypeRegister.Struct]]
- TimeSpan: ClassVar[Type[TypeRegister.TimeSpan]]
- TimeZone: ClassVar[Type[TypeRegister.TimeZone]]
- classmethod is_array_subclass(arr)[source]
Certain routines can be sped up by skipping the logic before falling back on a numpy call. Note: this is different than using python’s issubclass(), which returns True if the classes are the same. Returns True if the item is an instance of a FastArray or numpy array subclass.
- classmethod is_binned_array(arr)[source]
Use this instead of checking isinstance(item, TypeRegister.Categorical). For other binned types in the future.
Called by: Dataset.melt() -re-expands Dataset.from_jagged_rows() -re-expands GroupBy.__init__ -calls grouping, gb_keychain properties to borrow bins
- classmethod is_binned_type(arrtype)[source]
Check the type rather than the instance. See also is_binned_array()
Called by: rt_utils._multistack_items()
- classmethod newclassfrominstance(instance, origin)[source]
After slicing or an array routine, return a new instance of a FastArray subclass. If the array was not a subclass, instance is unchanged.
- Parameters:
instance (ndarray) – Array generated from operation.
origin (ndarray) – Array, possibly a FastArray subclass.
- Returns:
instance – Array of the same class as origin if the origin class has a newclassfrominstance defined.
- Return type:
ndarray
- riptable.rt_enum.ColHeader