From d76f04d9811e2e3d81b14862b71630fabc4d0c12 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 23 Jan 2022 14:40:51 -0500 Subject: [PATCH] start main --- .gitignore | 3 ++- xlsx_dir_map/__main__.py | 11 +++++++++++ xlsx_dir_map/__pycache__/__main__.cpython-39.pyc | Bin 0 -> 491 bytes 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 xlsx_dir_map/__main__.py create mode 100644 xlsx_dir_map/__pycache__/__main__.cpython-39.pyc diff --git a/.gitignore b/.gitignore index 10326c2..12e56d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.xlsx \ No newline at end of file +*.xlsx +*# \ No newline at end of file diff --git a/xlsx_dir_map/__main__.py b/xlsx_dir_map/__main__.py new file mode 100644 index 0000000..b1de448 --- /dev/null +++ b/xlsx_dir_map/__main__.py @@ -0,0 +1,11 @@ +from openpyxl import load_workbook + +wb = load_workbook(filename = 'names.xlsx') + +names = [] + +for row in wb.active.iter_rows(): + name = " ".join(list(map(lambda cell: cell.value, row))) + names.append(name) + +print(names) diff --git a/xlsx_dir_map/__pycache__/__main__.cpython-39.pyc b/xlsx_dir_map/__pycache__/__main__.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d3281c68e1abbe3bf7581939d83a8cd836c1b053 GIT binary patch literal 491 zcmYjOJx{|h5Is9intm}eG9gt0x-cSy1QJXvY?e@P>jPYzI3$4<#8xCG{zE$<{*qTF z1|~Kp&K(dZy(ho(`QDwZ`uz@2yu5v>3kL8J#Q$iKI3Uy)L