aboutsummaryrefslogtreecommitdiff
path: root/src/ee/_utils.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-02-09 23:37:02 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-02-09 23:37:02 +0100
commitc313e6de8c06017739402ea89f55ce3b36ac0f2b (patch)
tree3fa4ae2b36e5b3820c8677c82cafd676f77aaced /src/ee/_utils.py
parent79b8525e776b27a1702a4eea6f3168bfd97a393a (diff)
downloadee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.tar.gz
ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.tar.bz2
ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.tar.xz
ee-python-c313e6de8c06017739402ea89f55ce3b36ac0f2b.zip
o kicad-mkdeps: new tool, new -M option for kicad-gerber. Both output a
Makefile-compatible dependencies file.
Diffstat (limited to 'src/ee/_utils.py')
-rw-r--r--src/ee/_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ee/_utils.py b/src/ee/_utils.py
index 1548b89..29b039a 100644
--- a/src/ee/_utils.py
+++ b/src/ee/_utils.py
@@ -1,9 +1,10 @@
from typing import List
-import pandas as pd
+def ensure_has_columns(df: "pandas.DataFrame", columns: List[str]):
+ # We don't want to import pandas too soon
+ import pandas as pd
-def ensure_has_columns(df: pd.DataFrame, columns: List[str]):
all_columns = columns
# print("all_columns={}".format(all_columns))
# print("df={}".format(df.columns.tolist()))