Skip to content

Instantly share code, notes, and snippets.

@niczky12
Created June 3, 2020 10:53
Show Gist options
  • Select an option

  • Save niczky12/5f15ab000a245993374fc5804858a113 to your computer and use it in GitHub Desktop.

Select an option

Save niczky12/5f15ab000a245993374fc5804858a113 to your computer and use it in GitHub Desktop.
Make an example of schema detect failing
# make the dataset a bit larger
boston_df = pd.concat((boston_df for _ in range(50)))
# column with floats but everything is missing until last 2 rows
boston_df["missing_numbers"] = [None] * (boston_df.shape[0] - 2) + [1.3 ,1.5]
boston_df.tail()
boston_df.to_csv("boston_missing.csv", index=False)
upload_csv("boston_missing", "boston_missing.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment