Srihari Thyagarajan commited on
Commit
c419769
·
unverified ·
2 Parent(s): 15db8ce f6ff4ae

Merge pull request #114 from debajyotid2/polars_lazyframes

Browse files

Clarify language around datatype casting and delete empty cell in Polars lazy execution tutorial.

Files changed (1) hide show
  1. polars/16_lazy_execution.py +2 -8
polars/16_lazy_execution.py CHANGED
@@ -271,10 +271,10 @@ def _(log_data):
271
  def _(mo):
272
  mo.md(
273
  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.
275
 
276
  ///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.
278
  """
279
  )
280
  return
@@ -427,12 +427,6 @@ def _(mo):
427
  return
428
 
429
 
430
- @app.cell(hide_code=True)
431
- def _(mo):
432
- mo.md(r""" """)
433
- return
434
-
435
-
436
  @app.cell
437
  def _(log_data, pl):
438
  (
 
271
  def _(mo):
272
  mo.md(
273
  r"""
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.
275
 
276
  ///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. 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).
278
  """
279
  )
280
  return
 
427
  return
428
 
429
 
 
 
 
 
 
 
430
  @app.cell
431
  def _(log_data, pl):
432
  (