Write a dataset with more than 10k rows

dharman
dharman Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 4 ✭✭✭
edited July 2024 in Using Dataiku

From a Python recipe, I am trying to write a dataframe from a SQL query that has a little over 13k rows. Using the following code, DSS is only writing 10k rows. How do I get the remaining rows?

DataWithSample_df = SampleActiveMem_df # SQL output that I've reviewed

# Write recipe outputs
DataWithSample = dataiku.Dataset("DataWithSample")
DataWithSample.write_schema_from_dataframe(DataWithSample_df)
for df in DataWithSample.iter_dataframes(chunksize=15000):
    DataWithSample.write_from_dataframe(DataWithSample_df)

Tagged:

Best Answer

  • dharman
    dharman Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 4 ✭✭✭
    Answer ✓

    Solved: user error by misnaming a dataframe. My mistake

Answers

  • CoreyS
    CoreyS Dataiker Alumni, Dataiku DSS Core Designer, Dataiku DSS Core Concepts, Registered Posts: 1,149 ✭✭✭✭✭✭✭✭✭

    Thank you for sharing your solution with the Community @dharman
    !

Setup Info
    Tags
      Help me…