You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Hi there, I am a new user of pandera - I did a pip install pandera[all] in a fresh environment using python 3.8.6.
and then I ran the quick start script
import pandas as pd
import pandera as pa
# data to validate
df = pd.DataFrame({
"column1": [1, 4, 0, 10, 9],
"column2": [-1.3, -1.4, -2.9, -10.1, -20.4],
"column3": ["value_1", "value_2", "value_3", "value_2", "value_1"],
})
# define schema
schema = pa.DataFrameSchema({
"column1": pa.Column(int, checks=pa.Check.less_than_or_equal_to(10)),
"column2": pa.Column(float, checks=pa.Check.less_than(-1.2)),
"column3": pa.Column(str, checks=[
pa.Check.str_startswith("value_"),
# define custom checks as functions that take a series as input and
# outputs a boolean or boolean Series
pa.Check(lambda s: s.str.split("_", expand=True).shape[1] == 2)
]),
})
validated_df = schema(df)
print(validated_df)
and I got this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/marwansarieddine/.pyenv/versions/pandera_demo/lib/python3.8/site-packages/pandera/__init__.py", line 5, in <module>
from .decorators import check_input, check_io, check_output, check_types
File "/Users/marwansarieddine/.pyenv/versions/pandera_demo/lib/python3.8/site-packages/pandera/decorators.py", line 21, in <module>
from . import errors, schemas
File "/Users/marwansarieddine/.pyenv/versions/pandera_demo/lib/python3.8/site-packages/pandera/schemas.py", line 12, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
It seems to me in the setup.py file that packaging (https://pypi.org/project/packaging/) has to be added as a dependency perhaps under the io (given I see packaging imported in test_io - but its also imported in schemas - so I am not sure)
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Hi there, I am a new user of pandera - I did a
pip install pandera[all]
in a fresh environment using python 3.8.6.and then I ran the quick start script
It seems to me in the setup.py file that
packaging
(https://pypi.org/project/packaging/) has to be added as a dependency perhaps under theio
(given I see packaging imported in test_io - but its also imported in schemas - so I am not sure)The text was updated successfully, but these errors were encountered: