'Great expectation error when using save_expectations_config() function

I tried to run this code using PyCharm:

import great_expectations as ge
df=ge.read_csv(r"C:\Users\TasbeehJ\data\yellow_tripdata_2019-01.csv")
print(df.expect_column_values_to_be_in_set('passenger_count',[1,2,3,4,5]))

conf=df.get_expectation_suite()

df.save_expectations_config(r"C:\Users\TasbeehJ\data\yellow_tripdata_2019-01.data.expectations.json")

but it gave me this error:

AttributeError: 'PandasDataset' object has no attribute 'save_expectations_config'

how can I save the config if not using that??



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source