Spaces:
Running
Running
Debajyoti Debnath
commited on
Commit
·
a2c6f35
1
Parent(s):
c26a4dd
Modify lazy execution notebook following review by @Haleshot
Browse files
polars/16_lazy_execution.py
CHANGED
@@ -267,7 +267,7 @@ def _(log_data):
|
|
267 |
return
|
268 |
|
269 |
|
270 |
-
@app.cell
|
271 |
def _(mo):
|
272 |
mo.md(
|
273 |
r"""
|
@@ -286,6 +286,12 @@ def _(mo):
|
|
286 |
return
|
287 |
|
288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
@app.cell
|
290 |
def _(log_data, pl):
|
291 |
log_data_erroneous = log_data.with_columns(
|
@@ -303,12 +309,6 @@ def _(log_data_erroneous):
|
|
303 |
return
|
304 |
|
305 |
|
306 |
-
@app.cell(hide_code=True)
|
307 |
-
def _(mo):
|
308 |
-
mo.md(r"""The `log_data_erroneous` query throws an `InvalidOperationError` because Polars finds inconsistencies between the timestamps we parsed from the logs and the timestamp format specified. It turns out that the time stamps in string format still have trailing whitespace which leads to errors during conversion to `datetime[μs]` objects.""")
|
309 |
-
return
|
310 |
-
|
311 |
-
|
312 |
@app.cell(hide_code=True)
|
313 |
def _(mo):
|
314 |
mo.md(
|
|
|
267 |
return
|
268 |
|
269 |
|
270 |
+
@app.cell(hide_code=True)
|
271 |
def _(mo):
|
272 |
mo.md(
|
273 |
r"""
|
|
|
286 |
return
|
287 |
|
288 |
|
289 |
+
@app.cell(hide_code=True)
|
290 |
+
def _(mo):
|
291 |
+
mo.md(r"""The `log_data_erroneous` query below throws an `InvalidOperationError` because Polars finds inconsistencies between the timestamps we parsed from the logs and the timestamp format specified. It turns out that the time stamps in string format still have trailing whitespace which leads to errors during conversion to `datetime[μs]` objects.""")
|
292 |
+
return
|
293 |
+
|
294 |
+
|
295 |
@app.cell
|
296 |
def _(log_data, pl):
|
297 |
log_data_erroneous = log_data.with_columns(
|
|
|
309 |
return
|
310 |
|
311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
@app.cell(hide_code=True)
|
313 |
def _(mo):
|
314 |
mo.md(
|