Created
November 10, 2021 01:58
-
-
Save HuifangYeo/d0cd47ea3d881b0b6d7094054003f3f0 to your computer and use it in GitHub Desktop.
Incremental loading data from Pandas DataFrame into an existing atoti table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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