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
There is a problem with determining the data type, when running jupiter notepad and the location of the csv file in the system.
!pip install great_expectations
import great_expectations as gx
import pandas as pd
from great_expectations.core.batch import BatchRequest, RuntimeBatchRequest
import shutil
import os
if os.path.exists("./context/gx"):
shutil.rmtree("./context/gx")
batch_definition_name = "World Population 2022"
batch_definition = asset.add_batch_definition(
name=batch_definition_name)
batch_parameters = {"reader_method": "read_csv"}
batch = batch_definition.get_batch(batch_parameters=batch_parameters)
print(batch.head()) BuildBatchRequestError: Bad input to build_batch_request: options is not currently supported for this DataAsset and must be None or {}.
Without kwargs:
batch_definition_name = "World Population 2022"
batch_definition = asset.add_batch_definition(
name=batch_definition_name)
batch = batch_definition.get_batch()
print(batch.head()) NotImplementedError: One needs to explicitly provide "reader_method" for Pandas DataAsset extensions as temporary work-around, until "type" naming convention and method for obtaining 'reader_method' from it are established.
Windows 10
Great Expectations 1.1.3
Python 3.12.4 | packaged by Anaconda, Inc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a problem with determining the data type, when running jupiter notepad and the location of the csv file in the system.
I´m prescribing the type:
With kwargs:
Without kwargs:
Windows 10
Great Expectations 1.1.3
Python 3.12.4 | packaged by Anaconda, Inc.
Beta Was this translation helpful? Give feedback.
All reactions