Commit f773dca
committed
refactor: address review feedback on object-dtype handling
Infer object-dtype columns directly with pyarrow instead of sampling and
coercing: strings map to string, other representable scalars to their Arrow
type, an all-null column stays null, and a column mixing incompatible types
raises rather than being silently coerced to string.
Derive the int64 pruning-bound limits from np.iinfo(np.int64) rather than
hardcoded literals, and drop the inaccurate "rare" comments on the cftime
data-variable path.1 parent 83e6939 commit f773dca
3 files changed
Lines changed: 21 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
591 | 590 | | |
592 | 591 | | |
593 | 592 | | |
594 | 593 | | |
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
598 | | - | |
| 597 | + | |
599 | 598 | | |
600 | 599 | | |
601 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | 173 | | |
180 | 174 | | |
181 | 175 | | |
| |||
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
198 | | - | |
| 192 | + | |
| 193 | + | |
199 | 194 | | |
200 | 195 | | |
201 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
391 | | - | |
| 389 | + | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
406 | 399 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 400 | + | |
412 | 401 | | |
413 | 402 | | |
414 | 403 | | |
| |||
448 | 437 | | |
449 | 438 | | |
450 | 439 | | |
451 | | - | |
452 | | - | |
453 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
454 | 444 | | |
455 | 445 | | |
456 | | - | |
457 | | - | |
| 446 | + | |
458 | 447 | | |
459 | 448 | | |
460 | 449 | | |
461 | 450 | | |
462 | 451 | | |
463 | | - | |
464 | 452 | | |
465 | 453 | | |
466 | 454 | | |
| |||
0 commit comments