Spaces:
Running
Running
Debajyoti Debnath
commited on
Commit
·
7b4057c
1
Parent(s):
778380f
Clarify language around datatype casting and delete empty cell.
Browse files
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
|
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 |
+
Unless specified, Polars defaults to the `pl.String` datatype while reading in the data from the generator. 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 |
(
|