For each element in `self`, return a copy of the string where all characters occurring in the optional argument `deletechars` are removed, and the remaining characters have been mapped through the given translation table. See Also -------- ch
(self, table, deletechars=None)
| 2665 | return asarray(title(self)) |
| 2666 | |
| 2667 | def translate(self, table, deletechars=None): |
| 2668 | """ |
| 2669 | For each element in `self`, return a copy of the string where |
| 2670 | all characters occurring in the optional argument |
| 2671 | `deletechars` are removed, and the remaining characters have |
| 2672 | been mapped through the given translation table. |
| 2673 | |
| 2674 | See Also |
| 2675 | -------- |
| 2676 | char.translate |
| 2677 | |
| 2678 | """ |
| 2679 | return asarray(translate(self, table, deletechars)) |
| 2680 | |
| 2681 | def upper(self): |
| 2682 | """ |