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

Faster ingestion into BQ by converting the chunk into pd.Dataframe #414

Open
DarshanSP19 opened this issue Oct 30, 2023 · 0 comments
Open
Assignees

Comments

@DarshanSP19
Copy link
Collaborator

In weather-mv we're dividing the Dataset into small chunks that's adding appropriate parallelism in the pipeline. In the next step if we convert those small chunks into pandas Dataframes it would reduce the cost of generating the flat rows as extracting the rows from Dataframe is very fast.

df = ds.to_dataframe().reset_index()

Here ds is a small chunk of a dataset and reset_index() will flatten the dataset chunk into a normalized dataframe.

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