Skip to main content
`Ctrl`+`K`

# pandas.HDFStore.get_storer

HDFStore.get_storer(key)

  Return the storer object for a key.

  The storer is the low-level wrapper around the stored pandas object. It exposes implementation details such as `nrows` (the row count on disk) and `table` (the underlying PyTables `Table`), which can be useful for inspecting a store without loading its data.

  Parameters:
    key str

      Object stored in the file.

  Returns:
    GenericFixed or Table

      The storer wrapping the stored object. `Table` instances expose attributes such as `nrows` and `table`.

  Raises:
    KeyError

      If `key` is not in the file.

  See also

  `HDFStore.get`

    Read the stored object back into pandas.

  `HDFStore.info`

    Print a summary of the store’s contents.

  Examples

      >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"])
      >>> store = pd.HDFStore("store.h5", "w")
      >>> store.append("data", df, format="table")
      >>> store.get_storer("data").nrows
      >>> store.close()