Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to split the pandas df data into multiple batches based on a column('date') ? #9556

Open
jagadeesanmuthuvel opened this issue Mar 1, 2024 · 0 comments

Comments

@jagadeesanmuthuvel
Copy link

jagadeesanmuthuvel commented Mar 1, 2024

Describe the bug
A clear and concise description of what the bug is.
I have created a batchrequest from pandas dataframe using below code

def get_batch_request(context,data_asset_name,source_name,df):
data_asset = context.sources.add_or_update_pandas(name=source_name).
add_dataframe_asset(name=data_asset_name,dataframe=df)
return data_asset.build_batch_request(),data_asset

How to split the pandas df data into multiple batches based on a column('date') ?

I could see some of this implementation in GE api v2 documentantion. But i am not sure abt it for v3?
https://legacy.docs.greatexpectations.io/en/latest/autoapi/great_expectations/execution_engine/split_and_sample/pandas_data_splitter/index.html

To Reproduce
Please include your great_expectations.yml config, the code you’re executing that causes the issue, and the full stack trace of any error(s).

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • Operating System: [e.g. Linux, MacOS, Windows]
  • Great Expectations Version: [e.g. 0.13.2]
  • Data Source: [e.g. Pandas, Snowflake]
  • Cloud environment: [e.g. Airflow, AWS, Azure, Databricks, GCP]

Additional context
Add any other context about the problem here.

@jagadeesanmuthuvel jagadeesanmuthuvel changed the title why the data assistance is not well alingned for dataset with batches count=1? How to split the pandas df data into multiple batches based on a column('date') ? Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant