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

DW.get_loyalty_sales - returns information about sales to loyalty program clients

Parameters

  • 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
    conversion dt male_percent new_clients profit receipts_qty turnover
    <data> <data> <data> <data> <data> <data> <data>
    <data> <data> <data> <data> <data> <data> <data>

    Examples

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

    Returns data about sales to loyalty program clients for the period from 9-8-2015 till 9-9-2015

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