gempy.core.data_modules.stack.Series¶
-
class
gempy.core.data_modules.stack.
Series
(faults, series_names: Optional[list] = None)[source]¶ Class that contains the functionality and attributes related to the series. Notice that series does not only refers to stratigraphic series but to any set of surfaces which will be interpolated together (comfortably).
- Parameters
-
df
¶ Pandas data frame containing the series and the surfaces contained on them. TODO describe df columns
- Type
pn.core.frame.DataFrames
Examples using Series
Methods
__init__
(faults[, series_names])Initialize self.
add_series
(series_list[, reset_order_series])Add series to the df
delete_series
(indices[, reset_order_series])[s1] Drop specified labels from rows or columns.
modify_order_series
(new_value, series_name)Replace to the new location the old series
rename_series
(new_categories)[s0] Rename categories.
reorder_series
(new_categories)[s0] Reorder categories as specified in new_categories.
Reset the column order series to monotonic ascendant values.
set_bottom_relation
(series_list, bottom_relation)Set the bottom relation between the series and the one below.
set_series_index
(series_order[, …])Rewrite the index of the series df
sort_series
()update_faults_index_rename
()update_faults_index_reorder
()-
__init__
(faults, series_names: Optional[list] = None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
set_series_index
(series_order: Union[list, numpy.ndarray], reset_order_series=True)[source]¶ Rewrite the index of the series df
-
set_bottom_relation
(series_list: Union[str, list], bottom_relation: Union[str, list])[source]¶ Set the bottom relation between the series and the one below.
- Parameters
- Returns
-
delete_series
(indices: Union[str, Iterable], reset_order_series=True)[source]¶ [s1] Drop specified labels from rows or columns.
-
rename_series
(new_categories: Union[dict, list])[source]¶ [s0] Rename categories.
- Parameters
list-like: all items must be unique and the number of items in the new categories must match the existing number of categories.
dict-like: specifies a mapping from old categories to new. Categories not contained in the mapping are passed through and extra categories in the mapping are ignored.
Returns:
-
reorder_series
(new_categories: Union[list, numpy.ndarray])[source]¶ [s0] Reorder categories as specified in new_categories. [s1] Return a sorted copy of the index.
- Parameters
new_categories (list) – list with all series names in the desired order.
- Returns
Series