Up_Dw.upload_units (eng) - datawizio/pythonAPI GitHub Wiki
Up_DW.upload_units - uploads data about units of measurement to the server.Uploads information about units of measurement to the server.
Gets a list of objects of the units of measurement
[
{
'unit_id': <unit_id>,
'name': <name>,
}
...
]
or a path to the file *.csv.
Parameters:
columns: list, default: ['unit_id', 'name']
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_units('/home/user/units.csv', skip_chunks=2)