leaf_engine.adapt.schema.adapt_input_schemas ============================================ .. py:module:: leaf_engine.adapt.schema.adapt_input_schemas Classes ------- .. autoapisummary:: leaf_engine.adapt.schema.adapt_input_schemas.AdaptData leaf_engine.adapt.schema.adapt_input_schemas.DBLaneRateSchema leaf_engine.adapt.schema.adapt_input_schemas.DBLaneSchema leaf_engine.adapt.schema.adapt_input_schemas.DBLaneSummary leaf_engine.adapt.schema.adapt_input_schemas.KMAMarketSchema leaf_engine.adapt.schema.adapt_input_schemas.LaneSchema leaf_engine.adapt.schema.adapt_input_schemas.LaneSummarySchema leaf_engine.adapt.schema.adapt_input_schemas.NetworkSchema leaf_engine.adapt.schema.adapt_input_schemas.ShipmentsSchema Module Contents --------------- .. py:class:: AdaptData .. py:attribute:: db_lane_context :type: DBLaneSummary .. py:attribute:: lane_context :type: LaneSchema .. py:attribute:: network_context :type: NetworkSchema .. py:class:: DBLaneRateSchema Bases: :py:obj:`pandera.SchemaModel` .. py:class:: Config .. py:attribute:: coerce :value: True .. py:attribute:: name :value: 'DBLaneRateSchema' .. py:attribute:: strict :value: True .. py:attribute:: company_id :type: pandera.typing.Series[int] .. py:attribute:: equipment_class :type: pandera.typing.Series[str] .. py:attribute:: first_spend_date :type: pandera.typing.Series[pandera.DateTime] .. py:attribute:: index :type: pandera.typing.Index[int] .. py:attribute:: lane_id :type: pandera.typing.Series[str] .. py:attribute:: last_spend_date :type: pandera.typing.Series[pandera.DateTime] .. py:attribute:: mean_spend :type: pandera.typing.Series[float] .. py:attribute:: spend_loads :type: pandera.typing.Series[int] .. py:class:: DBLaneSchema Bases: :py:obj:`pandera.SchemaModel` .. py:class:: Config .. py:attribute:: coerce :value: True .. py:attribute:: name :value: 'DBLaneSchema' .. py:attribute:: strict :value: True .. py:attribute:: all_loads_annual :type: pandera.typing.Series[float] .. py:attribute:: d_market :type: pandera.typing.Series[str] .. py:attribute:: dest_id :type: pandera.typing.Series[str] .. py:attribute:: equipment_class :type: pandera.typing.Series[str] .. py:attribute:: index :type: pandera.typing.Index[int] .. py:attribute:: lane_id :type: pandera.typing.Series[str] .. py:attribute:: o_market :type: pandera.typing.Series[str] .. py:attribute:: origin :type: pandera.typing.Series[str] .. py:attribute:: origin_id :type: pandera.typing.Series[str] .. py:attribute:: owner :type: pandera.typing.Series[str] .. py:attribute:: owner_name :type: pandera.typing.Series[str] .. py:attribute:: pcm_miles :type: pandera.typing.Series[float] .. py:class:: DBLaneSummary .. py:attribute:: db_lane_rate :type: DBLaneRateSchema .. py:attribute:: db_lanes :type: DBLaneSchema .. py:class:: KMAMarketSchema Bases: :py:obj:`pandera.SchemaModel` .. py:class:: Config .. py:attribute:: coerce :value: True .. py:attribute:: name :value: 'KMAMarketSchema' .. py:attribute:: strict :value: True .. py:attribute:: airportcode :type: pandera.typing.Series[str] .. py:attribute:: centroid :type: pandera.typing.Series[str] .. py:attribute:: index :type: pandera.typing.Index[int] .. py:attribute:: reference_city :type: pandera.typing.Series[str] .. py:attribute:: reference_state :type: pandera.typing.Series[str] .. py:attribute:: zip3 :type: pandera.typing.Series[str] .. py:class:: LaneSchema .. py:attribute:: kma_markets :type: KMAMarketSchema .. py:attribute:: lane_summary :type: LaneSummarySchema .. py:attribute:: raw_shipments :type: ShipmentsSchema .. py:class:: LaneSummarySchema Bases: :py:obj:`pandera.SchemaModel` .. py:class:: Config .. py:attribute:: coerce :value: True .. py:attribute:: name :value: 'LaneSummarySchema' .. py:attribute:: strict :value: True .. py:method:: average_is_positive(df: pandas.DataFrame) -> pandera.typing.Series[bool] .. py:attribute:: all_loads_annual :type: pandera.typing.Series[float] .. py:attribute:: annualization_factor :type: pandera.typing.Series[str] .. py:attribute:: class_loads_window :type: pandera.typing.Series[int] .. py:attribute:: d_market :type: pandera.typing.Series[str] .. py:attribute:: d_pt :type: pandera.typing.Series[int] .. py:attribute:: d_zip :type: pandera.typing.Series[int] .. py:attribute:: dest :type: pandera.typing.Series[str] .. py:attribute:: index :type: pandera.typing.Index[int] .. py:attribute:: lane :type: pandera.typing.Series[str] .. py:attribute:: lane_id :type: pandera.typing.Series[str] .. py:attribute:: linehaul_zero_peg :type: pandera.typing.Series[float] .. py:attribute:: o_market :type: pandera.typing.Series[str] .. py:attribute:: o_pt :type: pandera.typing.Series[int] .. py:attribute:: o_zip :type: pandera.typing.Series[str] .. py:attribute:: origin :type: pandera.typing.Series[str] .. py:attribute:: owner :type: pandera.typing.Series[str] .. py:attribute:: owner_name :type: pandera.typing.Series[str] .. py:attribute:: pcm_lane_path :type: pandera.typing.Series[int] .. py:attribute:: pcm_miles :type: pandera.typing.Series[float] .. py:attribute:: period :type: pandera.typing.Series[pandas.Timestamp] .. py:attribute:: window_days :type: pandera.typing.Series[int] .. py:class:: NetworkSchema Bases: :py:obj:`pandera.SchemaModel` .. py:class:: Config .. py:attribute:: coerce :value: True .. py:attribute:: name :value: 'NetworkSchema' .. py:attribute:: strict :value: True .. py:attribute:: class_loads_annual :type: pandera.typing.Series[float] .. py:attribute:: d_pt :type: pandera.typing.Series[str] .. py:attribute:: index :type: pandera.typing.Index[int] .. py:attribute:: lane_id :type: pandera.typing.Series[str] .. py:attribute:: o_pt :type: pandera.typing.Series[str] .. py:attribute:: owner :type: pandera.typing.Series[int] .. py:attribute:: owner_name :type: pandera.typing.Series[str] .. py:attribute:: pcm_miles :type: pandera.typing.Series[float] .. py:class:: ShipmentsSchema Bases: :py:obj:`pandera.SchemaModel` .. py:class:: Config .. py:attribute:: coerce :value: True .. py:attribute:: name :value: 'ShipmentsSchema' .. py:attribute:: accessorials :type: pandera.typing.Series[float] .. py:attribute:: all_loads_annual :type: pandera.typing.Series[float] .. py:attribute:: all_loads_window :type: pandera.typing.Series[int] .. py:attribute:: annualization_factor :type: pandera.typing.Series[float] .. py:attribute:: base_business_days :type: pandera.typing.Series[float] .. py:attribute:: base_weekly :type: pandera.typing.Series[float] .. py:attribute:: carrier_type :type: pandera.typing.Series[str] .. py:attribute:: class_loads_annual :type: pandera.typing.Series[float] .. py:attribute:: class_loads_window :type: pandera.typing.Series[int] .. py:attribute:: d_address :type: pandera.typing.Series[str] .. py:attribute:: d_city :type: pandera.typing.Series[str] .. py:attribute:: d_market :type: pandera.typing.Series[str] .. py:attribute:: d_pt :type: pandera.typing.Series[int] .. py:attribute:: d_site :type: pandera.typing.Series[str] .. py:attribute:: d_state :type: pandera.typing.Series[str] .. py:attribute:: d_zip :type: pandera.typing.Series[str] .. py:attribute:: dest :type: pandera.typing.Series[str] .. py:attribute:: equipment_class :type: pandera.typing.Series[str] .. py:attribute:: equipment_type :type: pandera.typing.Series[str] .. py:attribute:: exclude_shipment :type: pandera.typing.Series[bool] .. py:attribute:: fuel_peg :type: pandera.typing.Series[int] .. py:attribute:: fuel_surcharge :type: pandera.typing.Series[int] .. py:attribute:: index :type: pandera.typing.Index[int] .. py:attribute:: lane :type: pandera.typing.Series[str] .. py:attribute:: lane_id :type: pandera.typing.Series[str] .. py:attribute:: linehaul :type: pandera.typing.Series[float] .. py:attribute:: linehaul_zero_peg :type: pandera.typing.Series[float] .. py:attribute:: load_type :type: pandera.typing.Series[str] .. py:attribute:: month :type: pandera.typing.Series[int] .. py:attribute:: move_type :type: pandera.typing.Series[str] .. py:attribute:: o_address :type: pandera.typing.Series[str] .. py:attribute:: o_city :type: pandera.typing.Series[str] .. py:attribute:: o_market :type: pandera.typing.Series[str] .. py:attribute:: o_pt :type: pandera.typing.Series[int] .. py:attribute:: o_site :type: pandera.typing.Series[str] .. py:attribute:: o_state :type: pandera.typing.Series[str] .. py:attribute:: o_zip :type: pandera.typing.Series[str] .. py:attribute:: origin :type: pandera.typing.Series[str] .. py:attribute:: owner :type: pandera.typing.Series[int] .. py:attribute:: owner_name :type: pandera.typing.Series[str] .. py:attribute:: pcm_hours :type: pandera.typing.Series[float] .. py:attribute:: pcm_lane_path :type: pandera.typing.Series[int] .. py:attribute:: pcm_miles :type: pandera.typing.Series[float] .. py:attribute:: period :type: pandera.typing.Series[pandas.Timestamp] .. py:attribute:: protection :type: pandera.typing.Series[str] .. py:attribute:: rate_type :type: pandera.typing.Series[str] .. py:attribute:: rounded_linehaul :type: pandera.typing.Series[float] .. py:attribute:: rpm_pcm :type: pandera.typing.Series[float] .. py:attribute:: scac :type: pandera.typing.Series[str] .. py:attribute:: shipment_id :type: pandera.typing.Series[str] .. py:attribute:: spend :type: pandera.typing.Series[float] .. py:attribute:: week :type: pandera.typing.Series[int] .. py:attribute:: weekly_pattern :type: pandera.typing.Series[str] .. py:attribute:: window_days :type: pandera.typing.Series[int] .. py:attribute:: year :type: pandera.typing.Series[int]