leaf_engine.etl.map =================== .. py:module:: leaf_engine.etl.map Classes ------- .. autoapisummary:: leaf_engine.etl.map.Mapper Functions --------- .. autoapisummary:: leaf_engine.etl.map._normalize_address_details leaf_engine.etl.map._normalize_string_value leaf_engine.etl.map._normalize_zip_value leaf_engine.etl.map.map_pipeline Module Contents --------------- .. py:class:: Mapper(company_name, custom_name, run_type) .. py:method:: _get_custom_mapping_module(company_name, custom_name, run_type) :staticmethod: .. py:method:: _get_default_mapping_module(company_name, run_type) :staticmethod: .. py:method:: _get_module(company_name, run_type, module_name) :staticmethod: .. py:method:: get_function(function_name) .. py:attribute:: custom_module .. py:attribute:: default_module .. py:function:: _normalize_address_details(df, **kwargs) Normalizes address columns to uppercase alphanumeric characters only. Also normalizes zip codes to between 3 and 5 digits if possible. :param df: Shipments DataFrame. :type df: pd.DataFrame :returns: Shipments DataFrame with normalized address values. :rtype: pd.DataFrame .. py:function:: _normalize_string_value(value) .. py:function:: _normalize_zip_value(value) .. py:function:: map_pipeline(df, dataset_params, lane_level=False)