Spaces:
Running
Running
Debajyoti Debnath
commited on
Commit
·
f6ff4ae
1
Parent(s):
7b4057c
Add @etrotta 's additional suggestions
Browse files
polars/16_lazy_execution.py
CHANGED
@@ -271,7 +271,7 @@ def _(log_data):
|
|
271 |
def _(mo):
|
272 |
mo.md(
|
273 |
r"""
|
274 |
-
|
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).
|
|
|
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).
|