pipeline.src.flows.ports
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rename ambiguous port names and change incorrect country codes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compute ports FAO areas, façades and departments. |
|
Keep only the smallest FAO area(s) of each port. |
|
|
|
|
|
Module Contents
- pipeline.src.flows.ports.clean_ports(ports: pandas.DataFrame) pandas.DataFrame[source]
Rename ambiguous port names and change incorrect country codes
- pipeline.src.flows.ports.flag_active_ports(ports: pandas.DataFrame, active_ports_locodes: set) pandas.DataFrame[source]
- pipeline.src.flows.ports.compute_ports_zones(ports: pandas.DataFrame) pandas.DataFrame[source]
Compute ports FAO areas, façades and departments.
- pipeline.src.flows.ports.clean_fao_areas(ports: pandas.DataFrame) pandas.DataFrame[source]
Keep only the smallest FAO area(s) of each port.
- pipeline.src.flows.ports.transform_ports_open_data(ports: pandas.DataFrame) pandas.DataFrame[source]
- pipeline.src.flows.ports.ports_flow(dataset_id: str = PORTS_DATASET_ID, ports_resource_id: str = PORTS_CSV_RESOURCE_ID, ports_resource_title: str = PORTS_CSV_RESOURCE_TITLE, is_integration: bool = IS_INTEGRATION, extract_local_ports_fn: Callable = extract_local_ports, update_resource_fn: Callable = update_resource, invalidate_cache_fn: Callable = invalidate_cache)[source]