Up_DW.upload_price (eng) - datawizio/pythonAPI GitHub Wiki
Uploads information about prices for products to the server.
Gets a list of objects of the price
[
{
'shop_id': <shop_id>,
'product_id': <product_id>,
'date': <date>,
'original_price': <original_price>,
'price': <price>
}
]
or a path to the file *.csv.
Parameters:
-
columns: list, default: ['product_id', 'date', 'shop_id', 'original_price', 'price']
Sorted list of columns in the file *.csv.
-
splitter: str, default: ";"
Splitter of data in the file *.csv. -
skip_chunks: int, default: 0
Number of data blocks that have to be omitted.
Examples:
dwup = datawiz_upload.Up_DW()
dwup.upload_price('/home/user/price.csv', skip_chunks=2)