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

DW.get_sale_info - returns information about particular sales

Parameters

  • sale_id: int

    id of sales

  • shops: int, list

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

  • Returns

    Returns object 'DataFrame' in the format
    Product Name Product price Product price difference ... turnover turnover_diff turnover_percent_diff
    <product_id> <data> <data> <data> <data> <data> <data>
    <product_id> <data> <data> <data> <data> <data> <data>
    <product_id> <data> <data> <data> <data> <data> <data>

    Examples

    dw = datawiz.DW()
    dw.get_sale_info(40)
    

    To return data for sales withid=40

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