From a517ef6043d33cbcb53a7c9aab178870797fb886 Mon Sep 17 00:00:00 2001 From: Scott Haines Date: Thu, 30 Mar 2023 13:32:19 -0700 Subject: [PATCH] Added Fix for raised issue 44 This fix to the documentation removes the Pandas `KeyError: '0'` in the delta docker quickstart guide. --- static/quickstart_docker/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/quickstart_docker/README.md b/static/quickstart_docker/README.md index 9bca920..d3a1fed 100644 --- a/static/quickstart_docker/README.md +++ b/static/quickstart_docker/README.md @@ -59,13 +59,13 @@ The current version is `delta-core_2.12:2.1.0` which corresponds to Apache Spark from deltalake import DeltaTable # Create Pandas DataFrame - df = pd.DataFrame(range(5)) + df = pd.DataFrame({"data": range(5)}) # Write Delta Lake table write_deltalake("/tmp/deltars_table", df) # Append new data - df = pd.DataFrame(range(6, 11)) + df = pd.DataFrame({"data": range(6, 11)}) write_deltalake("/tmp/deltars_table", df, mode="append") # Read Delta Lake table @@ -82,7 +82,7 @@ The current version is `delta-core_2.12:2.1.0` which corresponds to Apache Spark dt.to_pandas() ## Output - 0 + data 0 0 ... ... 8 9 @@ -123,7 +123,7 @@ The current version is `delta-core_2.12:2.1.0` which corresponds to Apache Spark ``` ```python ## Output - 0 + data 0 0 1 1 2 2 @@ -448,4 +448,4 @@ curl -X POST -d "SELECT cases, county, date FROM covid19_nyt LIMIT 5" localhost: ] ``` - \ No newline at end of file +