diff --git a/pydbsmgr/utils/tools.py b/pydbsmgr/utils/tools.py index 52a22bb..40c5710 100644 --- a/pydbsmgr/utils/tools.py +++ b/pydbsmgr/utils/tools.py @@ -1,5 +1,6 @@ import glob import os +import re from typing import List import numpy as np @@ -25,6 +26,8 @@ def columns_check(df: DataFrame) -> DataFrame: res = any(chr.isdigit() for chr in col) if res: col = "[" + col + "]" + else: + col = re.sub("[^a-zA-Z0-9]", "_", col) new_cols.append(col) df.columns = new_cols diff --git a/requirements.txt b/requirements.txt index 4dae4fd..b546bba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,5 @@ python-dotenv==1.0.0 openpyxl==3.1.2 pyarrow fastparquet -loguru \ No newline at end of file +loguru +psutil \ No newline at end of file diff --git a/setup.py b/setup.py index 5f87bcb..55e454e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pydbsmgr", - version="0.4.2", + version="0.4.3", author="J. A. Moreno-Guerra", author_email="jzs.gm27@gmail.com", description="Testing installation of Package",