Skip to main content
`Ctrl`+`K`

# pandas.errors.AttributeConflictWarning

exception pandas.errors.AttributeConflictWarning

  Warning raised when index attributes conflict when using HDFStore.

  Occurs when attempting to append an index with a different name than the existing index on an HDFStore or attempting to append an index with a different frequency than the existing index on an HDFStore.

  See also

  `HDFStore`

    Dict-like IO interface for storing pandas objects in PyTables.

  `DataFrame.to_hdf`

    Write the contained data to an HDF5 file using HDFStore.

  `read_hdf`

    Read from an HDF5 file into a DataFrame.

  Examples

      >>> idx1 = pd.Index(["a", "b"], name="name1")
      >>> df1 = pd.DataFrame([[1, 2], [3, 4]], index=idx1)
      >>> df1.to_hdf("file", "data", "w", append=True)
      >>> idx2 = pd.Index(["c", "d"], name="name2")
      >>> df2 = pd.DataFrame([[5, 6], [7, 8]], index=idx2)
      >>> df2.to_hdf("file", "data", "a", append=True)
      AttributeConflictWarning: the [index_name] attribute of the existing index is
      [name1] which conflicts with the new [name2]...