col_mapper module¶
Class for mapping column arrays.
ColumnMapper class¶
Used by Records and MappedArray classes to make use of column and group metadata.
Superclasses
- AttrResolverMixin
- Cacheable
- Chainable
- Comparable
- Configured
- ExtPandasIndexer
- HasSettings
- IndexApplier
- IndexingBase
- Itemable
- PandasIndexer
- Paramable
- Pickleable
- Prettified
- Wrapping
Inherited members
- AttrResolverMixin.deep_getattr()
- AttrResolverMixin.post_resolve_attr()
- AttrResolverMixin.pre_resolve_attr()
- AttrResolverMixin.resolve_attr()
- AttrResolverMixin.resolve_shortcut_attr()
- Cacheable.get_ca_setup()
- Chainable.pipe()
- Configured.copy()
- Configured.equals()
- Configured.get_writeable_attrs()
- Configured.prettify()
- Configured.replace()
- Configured.resolve_merge_kwargs()
- Configured.update_config()
- HasSettings.get_path_setting()
- HasSettings.get_path_settings()
- HasSettings.get_setting()
- HasSettings.get_settings()
- HasSettings.has_path_setting()
- HasSettings.has_path_settings()
- HasSettings.has_setting()
- HasSettings.has_settings()
- HasSettings.reset_settings()
- HasSettings.resolve_setting()
- HasSettings.resolve_settings_paths()
- HasSettings.set_settings()
- IndexApplier.add_levels()
- IndexApplier.drop_duplicate_levels()
- IndexApplier.drop_levels()
- IndexApplier.drop_redundant_levels()
- IndexApplier.rename_levels()
- IndexApplier.select_levels()
- IndexingBase.indexing_setter_func()
- PandasIndexer.xs()
- Pickleable.decode_config()
- Pickleable.decode_config_node()
- Pickleable.dumps()
- Pickleable.encode_config()
- Pickleable.encode_config_node()
- Pickleable.file_exists()
- Pickleable.getsize()
- Pickleable.load()
- Pickleable.loads()
- Pickleable.modify_state()
- Pickleable.resolve_file_path()
- Pickleable.save()
- Wrapping.apply_to_index()
- Wrapping.as_param()
- Wrapping.cls_dir
- Wrapping.column_only_select
- Wrapping.config
- Wrapping.group_select
- Wrapping.iloc
- Wrapping.indexing_kwargs
- Wrapping.items()
- Wrapping.loc
- Wrapping.range_only_select
- Wrapping.rec_state
- Wrapping.regroup()
- Wrapping.resample()
- Wrapping.resolve_column_stack_kwargs()
- Wrapping.resolve_row_stack_kwargs()
- Wrapping.resolve_self()
- Wrapping.resolve_stack_kwargs()
- Wrapping.select_col()
- Wrapping.select_col_from_obj()
- Wrapping.self_aliases
- Wrapping.split()
- Wrapping.split_apply()
- Wrapping.wrapper
- Wrapping.xloc
col_arr property¶
Column array.
col_lens property¶
Column lengths.
Faster than ColumnMapper.col_map but only compatible with sorted columns.
col_map property¶
Column map.
More flexible than ColumnMapper.col_lens. More suited for mapped arrays.
column_stack class method¶
Stack multiple ColumnMapper instances along columns.
Uses ArrayWrapper.column_stack() to stack the wrappers.
Note
Will produce a column-sorted array.
get_col_arr method¶
Get group-aware column array.
get_col_lens method¶
Get group-aware column lengths.
get_col_map method¶
Get group-aware column map.
get_new_id_arr method¶
Generate a new group-aware id array.
indexing_func method¶
Perform indexing on ColumnMapper.
indexing_func_meta method¶
Perform indexing on ColumnMapper and return metadata.
is_sorted method¶
Check whether column array is sorted.
new_id_arr property¶
Generate a new id array.
row_stack class method¶
Stack multiple ColumnMapper instances along rows.
Uses ArrayWrapper.row_stack() to stack the wrappers.
Note
Will produce a column-sorted array.
select_cols method¶
Select columns.
Returns indices and new column array. Automatically decides whether to use column lengths or column map.