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

DW.get_sales - returns information about product sales

Parameters

  • sale_id: int, list

    id of sales or a list of ids

  • 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
    date_from date_to profit qty receipts_qty sale_id turnover
    <date_from> <date_to> <profit> <qty> <receipts_qty> <sale_id> <turnover>
    <date_from> <date_to> <profit> <qty> <receipts_qty> <sale_id> <turnover>
    <date_from> <date_to> <profit> <qty> <receipts_qty> <sale_id> <turnover>

    Examples

    dw = datawiz.DW()
                dw.get_sales(
    				date_from = datetime.date(2015, 8, 9),
    				date_to = datetime.date(2015, 9, 9),
    				)
    

    Returns data about sales that were held in the period from 9-8-2015 till 9-9-2015

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