diff --git a/polars-lazyframe/README.md b/polars-lazyframe/README.md index 5a4e876aa5..cc97e470ae 100644 --- a/polars-lazyframe/README.md +++ b/polars-lazyframe/README.md @@ -1,6 +1,6 @@ # How to Work With Polars LazyFrames -This folder contains completed notebooks and other files used in the Real Python tutorial [How to Work With Polars LazyFrames](https://realpython.com/how-to-work-with-polars-lazyframe/). +This folder contains completed notebooks and other files used in the Real Python tutorial [How to Work With Polars LazyFrames](https://realpython.com/polars-lazyframe/). **The following files are included:** diff --git a/polars-lazyframe/tutorial_code.ipynb b/polars-lazyframe/tutorial_code.ipynb index cf68dfd493..b4885b1472 100644 --- a/polars-lazyframe/tutorial_code.ipynb +++ b/polars-lazyframe/tutorial_code.ipynb @@ -81,7 +81,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "784b7616-643a-46bc-b449-0fbc5f390178", "metadata": {}, "outputs": [ @@ -133,13 +133,12 @@ " \"year\": [1970, 1973, 1985, 1991, 1995],\n", "}\n", "\n", - "lf = pl.LazyFrame(programming_languages)\n", - "lf.collect()" + "pl.LazyFrame(programming_languages).collect()" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "168d4db9-87c0-4ce2-aaab-35f128a03788", "metadata": {}, "outputs": [ @@ -198,8 +197,8 @@ " \"year\": pl.Int32,\n", "}\n", "\n", - "lf = pl.LazyFrame(programming_languages, schema=d_types)\n", - "lf.collect()" + "languages = pl.LazyFrame(programming_languages, schema=d_types)\n", + "languages.collect()" ] }, {