ColumnOp
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| SeriesOp datacook.engine.ops.series A `ColumnOp` that is one call per column, declared like `CallOp`. |
||
| FloatYearToDatetime datacook.engine.ops.dates Old pandastools `float_year_to_datetime`: 2020.5 -> 2020-07-02 (365.25 days a year). |
||
| Rolling datacook.engine.ops.timeseries |
||
| Expanding datacook.engine.ops.timeseries |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Op datacook.engine.ops.base Base class for operations. Subclasses set the metadata class variables. |
â‹” Inheritance diagram¶
graph TD
124287307["series.ColumnOp"]
1539482213["base.Op"]
2751680898["builtins.object"]
1539482213 --> 124287307
2751680898 --> 1539482213
🛈 DocStrings¶
Bases: Op
The base of all per-column ops: one series per selected column, put back by assign().
The params select the columns with either columns (a list) or column (one name).
Results replace the columns, or go to <column><suffix> if the params have a suffix
field (ColumnParams has both). Subclasses implement series() (execution), expr()
(its code) and match_expr() (recognise one expression: the column and the other params
as a dict); SeriesOp derives all three from the declaration of one call.
Source code in src/datacook/engine/ops/series.py
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 | |
results
classmethod
¶
Result column per selected column.
selected
classmethod
¶
The selected columns; None = all (only SeriesOp with frame_call).
selection
classmethod
¶
Params selecting columns with suffix; None if the params cannot express it.