MCPcopy
hub / github.com/pandas-dev/pandas / GenericIndexCol

Class GenericIndexCol

pandas/io/pytables.py:2448–2474  ·  view source on GitHub ↗

an index which is not represented in the data of the table

Source from the content-addressed store, hash-verified

2446
2447
2448class 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
2477class DataCol(IndexCol):

Callers 1

indexablesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected