Skip to content

Instantly share code, notes, and snippets.

@HuifangYeo
Created November 10, 2021 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HuifangYeo/d0cd47ea3d881b0b6d7094054003f3f0 to your computer and use it in GitHub Desktop.
Save HuifangYeo/d0cd47ea3d881b0b6d7094054003f3f0 to your computer and use it in GitHub Desktop.
Incremental loading data from Pandas DataFrame into an existing atoti table
other_policies = pd.read_csv(
"https://data.atoti.io/notebooks/customer360/Policy_life.csv"
)
other_policies = other_policies.append(
pd.read_csv("https://data.atoti.io/notebooks/customer360/Policy_vehicle.csv")
)
other_policies["QUOTE_DATE"] = pd.to_datetime(other_policies["QUOTE_DATE"])
other_policies["COVER_START"] = pd.to_datetime(other_policies["COVER_START"])
other_policies["LAPSED_DATE"] = pd.to_datetime(other_policies["LAPSED_DATE"])
other_policies["CANCELLED_DATE"] = pd.to_datetime(other_policies["CANCELLED_DATE"])
other_policies["MATURITY_DATE"] = pd.to_datetime(other_policies["MATURITY_DATE"])
policy_tbl.load_pandas(other_policies)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment