Commit 6ff27ca
Add additional str accessor methods for DataArray (#4622)
* add type hints for the str accessor class
* allow str accessors to use regular expression objects for regular expressions
* implement casefold and normalize str accessor functions
* implement one-to-many str accessor functions
* implement cat, join, format, +, *, and %
* support elementwise operations in many str accessor functions
* update whats-new.rst, api.rst, and api-hidden.rst
* test fixes
* implement requested fixes
* more fixes
* typing fixes
* fix docstring
* fix more docstring
* remove encoding header
Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>1 parent c195c26 commit 6ff27ca
File tree
5 files changed
+5261
-673
lines changed- doc
- xarray
- core
- tests
5 files changed
+5261
-673
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| 335 | + | |
| 336 | + | |
333 | 337 | | |
| 338 | + | |
| 339 | + | |
334 | 340 | | |
| 341 | + | |
335 | 342 | | |
336 | 343 | | |
337 | 344 | | |
| |||
342 | 349 | | |
343 | 350 | | |
344 | 351 | | |
| 352 | + | |
345 | 353 | | |
346 | 354 | | |
347 | 355 | | |
348 | 356 | | |
349 | 357 | | |
| 358 | + | |
350 | 359 | | |
| 360 | + | |
351 | 361 | | |
352 | 362 | | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| 366 | + | |
| 367 | + | |
356 | 368 | | |
357 | 369 | | |
358 | 370 | | |
| 371 | + | |
359 | 372 | | |
360 | 373 | | |
361 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
423 | 429 | | |
| 430 | + | |
| 431 | + | |
424 | 432 | | |
425 | 433 | | |
426 | 434 | | |
427 | 435 | | |
428 | 436 | | |
429 | 437 | | |
| 438 | + | |
| 439 | + | |
430 | 440 | | |
| 441 | + | |
| 442 | + | |
431 | 443 | | |
| 444 | + | |
432 | 445 | | |
433 | 446 | | |
434 | 447 | | |
435 | 448 | | |
436 | 449 | | |
| 450 | + | |
437 | 451 | | |
438 | 452 | | |
439 | 453 | | |
440 | 454 | | |
| 455 | + | |
441 | 456 | | |
442 | 457 | | |
443 | 458 | | |
444 | 459 | | |
445 | 460 | | |
| 461 | + | |
446 | 462 | | |
| 463 | + | |
447 | 464 | | |
448 | 465 | | |
449 | 466 | | |
450 | 467 | | |
451 | 468 | | |
| 469 | + | |
| 470 | + | |
452 | 471 | | |
453 | 472 | | |
454 | 473 | | |
| 474 | + | |
455 | 475 | | |
456 | 476 | | |
457 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
30 | 46 | | |
31 | 47 | | |
32 | 48 | | |
| |||
36 | 52 | | |
37 | 53 | | |
38 | 54 | | |
| 55 | + | |
39 | 56 | | |
40 | 57 | | |
41 | 58 | | |
| |||
0 commit comments