Commit 07d38c7
Address review feedback: doctest, streaming, date/timestamp
- Convert the __init__.py quick-start block to doctest format so it is
picked up by `pytest --doctest-modules` (already the project default),
preventing silent rot.
- Extract streaming into its own SKILL.md subsection with guidance on
when to prefer execute_stream() over collect(), sync and async
iteration, and execute_stream_partitioned() for per-partition streams.
- Generalize the date-arithmetic rule from Date32 to both Date32 and
Date64 (both reject Duration at any precision, both accept
month_day_nano_interval), and note that Timestamp columns differ and
do accept Duration.
- Document the PyArrow-inherited type mapping returned by
to_pydict()/to_pylist(), including the nanosecond fallback to
pandas.Timestamp / pandas.Timedelta and the to_pandas() footgun where
date columns come back as an object dtype.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d4ca194 commit 07d38c7
2 files changed
Lines changed: 73 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
267 | 302 | | |
268 | | - | |
269 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
270 | 306 | | |
271 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
272 | 317 | | |
273 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
274 | 323 | | |
275 | 324 | | |
276 | 325 | | |
| |||
309 | 358 | | |
310 | 359 | | |
311 | 360 | | |
312 | | - | |
313 | | - | |
314 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
315 | 364 | | |
316 | 365 | | |
317 | 366 | | |
| |||
324 | 373 | | |
325 | 374 | | |
326 | 375 | | |
327 | | - | |
| 376 | + | |
| 377 | + | |
328 | 378 | | |
329 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
330 | 384 | | |
331 | 385 | | |
332 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
0 commit comments