(self, item)
| 101 | # gh-10663 |
| 102 | class DuckCounter(np.ndarray): |
| 103 | def __getitem__(self, item): |
| 104 | result = super().__getitem__(item) |
| 105 | if not isinstance(result, DuckCounter): |
| 106 | result = result[...].view(DuckCounter) |
| 107 | return result |
| 108 | |
| 109 | def to_string(self): |
| 110 | return {0: 'zero', 1: 'one', 2: 'two'}.get(self.item(), 'many') |
nothing calls this directly
no test coverage detected