diff --git a/.readthedocs.yaml b/.readthedocs.yaml index f5fc9a2d..ffcc43c6 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -22,7 +22,7 @@ build: - pwd - ls - poetry install --with documentation - - poetry run rtdtest.py + - poetry run python rtdtest.py - poetry run sphinx-build -a -E -v ./docs/ ./docs/_build/ diff --git a/rtdtest.py b/rtdtest.py index f435a6f1..51d60a92 100644 --- a/rtdtest.py +++ b/rtdtest.py @@ -26,7 +26,7 @@ print(f"naive df read: {df}") -df = pd.read_csv(demofile, engine="python") # python engine +df = pd.read_csv(demofile, sep=";", engine="python") # python engine print(f"naive df read: {df}") @@ -53,7 +53,9 @@ def _read_csv_to_df(filepath, kwargsdict): df = pd.read_csv(filepath_or_buffer=filepath, **kwargsdict) else: for sep in common_seperators: + print(f" seperator: {sep}") df = pd.read_csv(filepath, sep=sep) + print(f"df :{df}") assert not df.empty, f"{filepath} is empty!" if len(df.columns) > 1: @@ -64,3 +66,6 @@ def _read_csv_to_df(filepath, kwargsdict): ), f"Only one column detected from import using these seperators: {common_seperators}. See if csv template is correct." return df + + +_read_csv_to_df(demofile, kwargsdict={})