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

Method select_as_coordinates

pandas/io/pytables.py:938–968  ·  view source on GitHub ↗

return the selection as an Index .. warning:: Pandas uses PyTables for reading and writing HDF5 files, which allows serializing object-dtype data with pickle when using the "fixed" format. Loading pickled data received from untrusted sources can be

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

Source from the content-addressed store, hash-verified

936 return it.get_result()
937
938 def select_as_coordinates(
939 self,
940 key: str,
941 where=None,
942 start: int | None = None,
943 stop: int | None = None,
944 ):
945 """
946 return the selection as an Index
947
948 .. warning::
949
950 Pandas uses PyTables for reading and writing HDF5 files, which allows
951 serializing object-dtype data with pickle when using the "fixed" format.
952 Loading pickled data received from untrusted sources can be unsafe.
953
954 See: https://docs.python.org/3/library/pickle.html for more.
955
956
957 Parameters
958 ----------
959 key : str
960 where : list of Term (or convertible) objects, optional
961 start : integer (defaults to None), row number to start selection
962 stop : integer (defaults to None), row number to stop selection
963 """
964 where = _ensure_term(where, scope_level=1)
965 tbl = self.get_storer(key)
966 if not isinstance(tbl, Table):
967 raise TypeError("can only read_coordinates with a table")
968 return tbl.read_coordinates(where=where, start=start, stop=stop)
969
970 def select_column(
971 self,

Callers 3

test_coordinatesFunction · 0.80
test_coordinates2Function · 0.80

Calls 3

get_storerMethod · 0.95
_ensure_termFunction · 0.85
read_coordinatesMethod · 0.80

Tested by 3

test_coordinatesFunction · 0.64
test_coordinates2Function · 0.64