From fdcc35174f9e0173aa7dd9d5ded735af3127c5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 27 Dec 2021 21:33:34 +0100 Subject: [PATCH] nmake pandas convert the CSV correctly as strings and not as numbers when inputing case sizes like 0603 --- print_labels_from_csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print_labels_from_csv.py b/print_labels_from_csv.py index e3b54dd..2284307 100644 --- a/print_labels_from_csv.py +++ b/print_labels_from_csv.py @@ -6,7 +6,7 @@ import os medir = os.path.dirname(__file__) example_data_path = os.path.join(medir, 'labels.csv') -df = pd.read_csv(example_data_path) +df = pd.read_csv(example_data_path, converters={i: str for i in range(3)}) printer = ql_wrapper.BrotherQlPrinter(model='QL-800', printer_connection='usb://0x04f9:0x209b')