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

Method _read_axes

pandas/io/pytables.py:3974–4006  ·  view source on GitHub ↗

Create the axes sniffed from the table. Parameters ---------- where : ??? start : int or None, default None stop : int or None, default None Returns ------- List[Tuple[index_values, column_values]]

(
        self, where, start: int | None = None, stop: int | None = None
    )

Source from the content-addressed store, hash-verified

3972 )
3973
3974 def _read_axes(
3975 self, where, start: int | None = None, stop: int | None = None
3976 ) -> list[tuple[np.ndarray, np.ndarray] | tuple[Index, Index]]:
3977 """
3978 Create the axes sniffed from the table.
3979
3980 Parameters
3981 ----------
3982 where : ???
3983 start : int or None, default None
3984 stop : int or None, default None
3985
3986 Returns
3987 -------
3988 List[Tuple[index_values, column_values]]
3989 """
3990 # create the selection
3991 selection = Selection(self, where=where, start=start, stop=stop)
3992 values = selection.select()
3993
3994 results = []
3995 # convert the data
3996 for a in self.axes:
3997 a.set_info(self.info)
3998 res = a.convert(
3999 values,
4000 nan_rep=self.nan_rep,
4001 encoding=self.encoding,
4002 errors=self.errors,
4003 )
4004 results.append(res)
4005
4006 return results
4007
4008 @classmethod
4009 def get_object(cls, obj, transposed: bool):

Callers 1

readMethod · 0.80

Calls 5

selectMethod · 0.95
SelectionClass · 0.85
set_infoMethod · 0.80
convertMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected