Up_DW.upload_shops (eng) - datawizio/pythonAPI GitHub Wiki
Uploads information about shops to the server.
Gets a list of objects of the shop
[
{
'shop_id': <shop_id>,
'name': <name>,
'address': <address>,
'open_date': <open_date>
}
...
]
or a path to the file *.csv.
Parameters:
columns: list, default: ['shop_id', 'name', 'address', 'open_date']
Sorted list of columns in the table 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_shops('/home/user/shops.csv', skip_chunks=2)