arche.rules.price

Module Contents

arche.rules.price.compare_was_now(df: pd.DataFrame, tagged_fields: TaggedFields)

Compare price_was and price_now tagged fields

arche.rules.price.compare_prices_for_same_urls(source_df: pd.DataFrame, target_df: pd.DataFrame, tagged_fields: TaggedFields) → Result

For each pair of items that have the same product_url_field tagged field, compare product_price_field field

Returns

A result containing pairs of items from source_df and target_df which product_price_field differ.

arche.rules.price.compare_names_for_same_urls(source_df: pd.DataFrame, target_df: pd.DataFrame, tagged_fields: TaggedFields)

For each pair of items that have the same product_url_field tagged field, compare name_field field

arche.rules.price.compare_prices_for_same_names(source_df: pd.DataFrame, target_df: pd.DataFrame, tagged_fields: TaggedFields)