Skip to content

Commit c419769

Browse files
authored
Merge pull request #114 from debajyotid2/polars_lazyframes
Clarify language around datatype casting and delete empty cell in Polars lazy execution tutorial.
2 parents 15db8ce + f6ff4ae commit c419769

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

polars/16_lazy_execution.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ def _(log_data):
271271
def _(mo):
272272
mo.md(
273273
r"""
274-
Unless specified, Polars defaults to the `pl.String` datatype for all data. This, however, is not the most space or computation efficient form of data storage, so we would like to convert the datatypes of some of the columns in our LazyFrame.
274+
Since our generator yields strings, Polars defaults to the `pl.String` datatype while reading in the data from the generator, unless specified. This, however, is not the most space or computation efficient form of data storage, so we would like to convert the datatypes of some of the columns in our LazyFrame.
275275
276276
///Note
277-
The data type conversion can also be done by specifying it in the schema when creating the LazyFrame or DataFrame. We are skipping doing this for demonstration.
277+
The data type conversion can also be done by specifying it in the schema when creating the LazyFrame or DataFrame. We are skipping doing this for demonstration. For more details on specifying data types in LazyFrames, please refer to the Polars [documentation](https://docs.pola.rs/api/python/stable/reference/lazyframe/index.html).
278278
"""
279279
)
280280
return
@@ -427,12 +427,6 @@ def _(mo):
427427
return
428428

429429

430-
@app.cell(hide_code=True)
431-
def _(mo):
432-
mo.md(r""" """)
433-
return
434-
435-
436430
@app.cell
437431
def _(log_data, pl):
438432
(

0 commit comments

Comments
 (0)