absfuyu.extra.da.dadf_base module
Absfuyu: Data Analysis
Data Analyst DataFrame - Base/Core
Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)
- class absfuyu.extra.da.dadf_base.DataAnalystDataFrameBase(data=None, index: Axes | None = None, columns: Axes | None = None, dtype: Dtype | None = None, copy: bool | None = None)[source]
Bases:
DataFrame
Data Analyst
pd.DataFrame
- BaseSet class variable
_DADF_INCLUDE
toFalse
to exclude fromDADF_METHODS
- DADF_METHODS: ClassVar[dict[str, list[str]]] = {'absfuyu.extra.da.dadf.DataAnalystDataFrameCityMixin': ['convert_city'], 'absfuyu.extra.da.dadf.DataAnalystDataFrameColumnMethodMixin': ['add_blank_column', 'drop_columns', 'drop_rightmost', 'rearrange_rightmost_column'], 'absfuyu.extra.da.dadf.DataAnalystDataFrameDateMixin': ['add_date_from_month', 'add_detail_date', 'delta_date'], 'absfuyu.extra.da.dadf.DataAnalystDataFrameInfoMixin': ['describe', 'qdescribe', 'qinfo', 'show_distribution', 'threshold_filter'], 'absfuyu.extra.da.dadf.DataAnalystDataFrameNAMixin': ['apply_notnull', 'apply_notnull_row', 'fill_missing_values', 'get_missing_values', 'split_na'], 'absfuyu.extra.da.dadf.DataAnalystDataFrameOtherMixin': ['merge_left'], 'absfuyu.extra.da.dadf.DataAnalystDataFrameRowMethodMixin': ['get_different_rows']}
- class absfuyu.extra.da.dadf_base.SplittedDF(df: DataFrame, df_na: DataFrame)[source]
Bases:
NamedTuple
DataFrame splitted into contains missing values only and vice versa
- Parameters:
df (DataFrame) – DataFrame without missing values
df_na (DataFrame) – DataFrame with missing values only
- df: DataFrame
Alias for field number 0
- df_na: DataFrame
Alias for field number 1
- static concat_df(df_list: list[DataFrame], join: Literal['inner', 'outer'] = 'inner') DataFrame [source]
Concat the list of DataFrame (static method)
- Parameters:
df_list (list[DataFrame]) – A sequence of DataFrame
join (str) – Join type (Default:
"inner"
)
- Returns:
Joined DataFrame
- Return type:
DataFrame
- class absfuyu.extra.da.dadf_base.CityData(city: str, region: str, area: str)[source]
Bases:
NamedTuple
- Parameters:
city (str) – City name
region (str) – Region of the city
area (str) – Area of the region
- city: str
Alias for field number 0
- region: str
Alias for field number 1
- area: str
Alias for field number 2