DW.get_lost_sales (eng) - datawizio/pythonAPI GitHub Wiki

DW.get_lost_sales - returns information about lost sales

Parameters

  • category: int

    id of the category that will be used for getting results,

  • shops: int, list

    id of the shop or a list of ids that will be used for selection

  • date_from: datetime, str {%Y-%m-%d}

    starting date of selection

  • date_to: datetime, str {%Y-%m-%d}

    ending date of selection.

  • If the interval [date_from, date_to] has not been set, last 30 client's days will be used for selection.

    If only one parameter has been set, then 30 client's days from selected parameter will be used for selection.

    Returns

    Returns object 'DataFrame' in the format
    Avg sales Losing days Losing turnover Lost sales quantity Product name
    <product_id> data data data data data
    <product_id> data data data data data
    ...
    <product_id> data data data data data

    Examples

    dw = datawiz.DW()
                dw.get_lost_sales(category = 68805,
    				shops = [601, 641],
    				date_from = datetime.date(2015, 8, 9),
    				date_to = datetime.date(2015, 9, 9),
    				)
    

    Returns data about lost sales for category 68805 from9-8-2015 till 9-9-2015 for shops [601, 641].

    ⚠️ **GitHub.com Fallback** ⚠️