mplStrater.data.StrataFrame¶
- class mplStrater.data.StrataFrame(df=None, epsg=None)¶
Bases:
objectStrataFrame is a pandas.DataFrame object with some added methods functional to stratigraphic column plotting.
- Parameters
df (
pandas.DataFrame) – dataframe of stratigraphic data.epsg (str) – EPSG code string of GeoDataFrame CRS
- __init__(df=None, epsg=None)¶
Methods
__init__([df, epsg])geodf()Sets the strataframe as GeoDataFrame of the given Coordinate Reference System (crs).
group_data(df, colname1, colname2)group data in required format.
group_layers(df)group layers in required format.
set_df()process the dataframe to get the desired information to plot the data.
- geodf()¶
Sets the strataframe as GeoDataFrame of the given Coordinate Reference System (crs).
- static group_data(df, colname1, colname2)¶
group data in required format.
- Parameters
df (
pandas.DataFrame) – dataframe of stratigraphic data.colname1 (str,
listofstr) – column names for pandas.groupBycolname2 (str,
listofstr) – column names for pandas.groupBy
- static group_layers(df)¶
group layers in required format.
- Parameters
df (
pandas.DataFrame) – dataframe of stratigraphic data.
- set_df()¶
process the dataframe to get the desired information to plot the data.