Commit 5cbdf48
committed
Simplify implementation of vectorized date operations.
1) We don't need to handle separately the scalar case -- tolist()
returns a scalar when called on a 0d-array, as returned by
np.vectorize() when called on a scalar.
2) We don't need to handle separately the empty case, as long as the
output type ("O") is passed to np.vectorize.1 parent 45b9201 commit 5cbdf48
1 file changed
+5
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 501 | + | |
512 | 502 | | |
513 | 503 | | |
514 | | - | |
| 504 | + | |
| 505 | + | |
515 | 506 | | |
516 | 507 | | |
517 | 508 | | |
| |||
529 | 520 | | |
530 | 521 | | |
531 | 522 | | |
532 | | - | |
533 | 523 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 524 | + | |
541 | 525 | | |
542 | 526 | | |
543 | 527 | | |
| |||
0 commit comments