virtual_warehouse.data.utils

Utils for parsing the Excel data.

Functions

convert_date(date[, fmt])

Convert string date to datetime.

convert_dim(dim, uom)

Convert dimension size to meters.

convert_type(type_str)

Unify location type names.

convert_weight(weight, uom)

Convert weight to kilograms.

estimate_sheet_type(sheet)

Estimate sheet type based on sheet name.

convert_date(date, fmt='%d.%m.%Y')[source]

Convert string date to datetime.

convert_dim(dim, uom)[source]

Convert dimension size to meters.

convert_type(type_str)[source]

Unify location type names.

convert_weight(weight, uom)[source]

Convert weight to kilograms.

estimate_sheet_type(sheet)[source]

Estimate sheet type based on sheet name.