an index which is not represented in the data of the table
| 2446 | |
| 2447 | |
| 2448 | class GenericIndexCol(IndexCol): |
| 2449 | """an index which is not represented in the data of the table""" |
| 2450 | |
| 2451 | @property |
| 2452 | def is_indexed(self) -> bool: |
| 2453 | return False |
| 2454 | |
| 2455 | def convert( |
| 2456 | self, values: np.ndarray, nan_rep, encoding: str, errors: str |
| 2457 | ) -> tuple[Index, Index]: |
| 2458 | """ |
| 2459 | Convert the data from this selection to the appropriate pandas type. |
| 2460 | |
| 2461 | Parameters |
| 2462 | ---------- |
| 2463 | values : np.ndarray |
| 2464 | nan_rep : str |
| 2465 | encoding : str |
| 2466 | errors : str |
| 2467 | """ |
| 2468 | assert isinstance(values, np.ndarray), type(values) |
| 2469 | |
| 2470 | index = RangeIndex(len(values)) |
| 2471 | return index, index |
| 2472 | |
| 2473 | def set_attr(self) -> None: |
| 2474 | pass |
| 2475 | |
| 2476 | |
| 2477 | class DataCol(IndexCol): |