Answers for LLM inference engineers

AttributeError: 'DataFrame' object has no attribute 'append' (or 'iteritems', 'ix', 'applymap', any name): which pandas removed it and what to use

pandas 2.0.0 (2023-04-03) removed DataFrame.append and Series.append (use pd.concat), iteritems (use items), Int64Index and Float64Index (use pd.Index) and 43 more; pandas 3.0.0 (2026-01-21) removed DataFrame.applymap (use DataFrame.map) and 42 more; pandas 1.0.0 removed .ix (use .loc or .iloc) and 76 more. For 163 of the 170 the last release that had the name gives a deprecation text, quoted in the table. If the error comes from a library you did not write, upgrade the library or pin pandas below the release that removed the name. Paste the error below for the release-by-release answer.

Published 2026-11-25 · 14 pandas releases installed and run, 0.25.3 to 3.1.1 (16,772 attribute accesses) · how

Examples:

Runs in your browser on the data in this page (pandas_attrs.json); nothing you paste is sent anywhere.

Which release removed it, and what replaces it?

170 attributes of the pandas module, DataFrame, Series, Index, DatetimeIndex, Timestamp, the groupby objects and Series.str that one release has and a later one does not. "Instead" is pandas' own deprecation text from the last release that had the name (163 of 170), except where marked as our note.

NameRemoved inInstead
DataFrame.as_blocks1.0.0as_blocks is deprecated and will be removed in a future version
DataFrame.as_matrix1.0.0Method .as_matrix will be removed in a future version. Use .values instead.
DataFrame.blocks1.0.0
DataFrame.clip_lower1.0.0clip_lower(threshold) is deprecated, use clip(lower=threshold) instead
DataFrame.clip_upper1.0.0clip_upper(threshold) is deprecated, use clip(upper=threshold) instead
DataFrame.compound1.0.0Use (1 + df).prod() - 1. (our note)
DataFrame.from_items1.0.0from_items is deprecated. Please use DataFrame.from_dict(dict(items), ...) instead. DataFrame.from_dict(OrderedDict(items)) may be used to preserve the key order.
DataFrame.ftypes1.0.0DataFrame.ftypes is deprecated and will be removed in a future version. Use DataFrame.dtypes instead.
DataFrame.get_dtype_counts1.0.0`get_dtype_counts` has been deprecated and will be removed in a future version. For DataFrames use `.dtypes.value_counts()
DataFrame.get_ftype_counts1.0.0get_ftype_counts is deprecated and will be removed in a future version
DataFrame.get_value1.0.0get_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead
DataFrame.get_values1.0.0The 'get_values' method is deprecated and will be removed in a future version. Use '.values' or 'np.asarray(..)' instead.
DataFrame.is_copy1.0.0Attribute 'is_copy' is deprecated and will be removed in a future version.
DataFrame.ix1.0.0Use .loc for labels, .iloc for positions. (our note)
DataFrame.set_value1.0.0set_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead
DataFrame.to_dense1.0.0DataFrame/Series.to_dense is deprecated and will be removed in a future version
DataFrame.to_msgpack1.0.0to_msgpack is deprecated and will be removed in a future version. It is recommended to use pyarrow for on-the-wire transmission of pandas objects.
DataFrame.to_sparse1.0.0DataFrame.to_sparse is deprecated and will be removed in a future version
DatetimeIndex.asobject1.0.0'asobject' is deprecated. Use 'astype(object)' instead
DatetimeIndex.base1.0.0DatetimeIndex.base is deprecated and will be removed in a future version
DatetimeIndex.contains1.0.0The 'contains' method is deprecated and will be removed in a future version. Use 'key in index' instead of 'index.contains(key)'
DatetimeIndex.data1.0.0DatetimeIndex.data is deprecated and will be removed in a future version
DatetimeIndex.dtype_str1.0.0`dtype_str` has been deprecated. Call `str` on the dtype attribute instead.
DatetimeIndex.flags1.0.0DatetimeIndex.flags is deprecated and will be removed in a future version
DatetimeIndex.get_duplicates1.0.0'get_duplicates' is deprecated and will be removed in a future release. You can use idx[idx.duplicated()].unique() instead
DatetimeIndex.get_values1.0.0The 'get_values' method is deprecated and will be removed in a future version. Use '.to_numpy()' or '.array' instead.
DatetimeIndex.is_lexsorted_for_tuple1.0.0
DatetimeIndex.itemsize1.0.0DatetimeIndex.itemsize is deprecated and will be removed in a future version
DatetimeIndex.offset1.0.0Use freq. (our note)
DatetimeIndex.strides1.0.0DatetimeIndex.strides is deprecated and will be removed in a future version
DatetimeIndex.summary1.0.0'summary' is deprecated and will be removed in a future version.
DatetimeIndex.weekday_name1.0.0Use day_name(). (our note)
Index.base1.0.0Index.base is deprecated and will be removed in a future version
Index.contains1.0.0The 'contains' method is deprecated and will be removed in a future version. Use 'key in index' instead of 'index.contains(key)'
Index.data1.0.0Index.data is deprecated and will be removed in a future version
Index.dtype_str1.0.0`dtype_str` has been deprecated. Call `str` on the dtype attribute instead.
Index.flags1.0.0Index.flags is deprecated and will be removed in a future version
Index.get_duplicates1.0.0'get_duplicates' is deprecated and will be removed in a future release. You can use idx[idx.duplicated()].unique() instead
Index.get_values1.0.0The 'get_values' method is deprecated and will be removed in a future version. Use '.to_numpy()' or '.array' instead.
Index.is_lexsorted_for_tuple1.0.0
Index.itemsize1.0.0Index.itemsize is deprecated and will be removed in a future version
Index.strides1.0.0Index.strides is deprecated and will be removed in a future version
Index.summary1.0.0'summary' is deprecated and will be removed in a future version.
Series.as_blocks1.0.0as_blocks is deprecated and will be removed in a future version
Series.as_matrix1.0.0Method .as_matrix will be removed in a future version. Use .values instead.
Series.asobject1.0.0'asobject' is deprecated. Use 'astype(object)' instead
Series.base1.0.0Series.base is deprecated and will be removed in a future version
Series.blocks1.0.0
Series.clip_lower1.0.0clip_lower(threshold) is deprecated, use clip(lower=threshold) instead
Series.clip_upper1.0.0clip_upper(threshold) is deprecated, use clip(upper=threshold) instead
Series.compound1.0.0Use (1 + s).prod() - 1. (our note)
Series.compress1.0.0Use s[condition]. (our note)
Series.data1.0.0Series.data is deprecated and will be removed in a future version
Series.from_array1.0.0'from_array' is deprecated and will be removed in a future version. Please use the pd.Series(..) constructor instead.
Series.ftype1.0.0Series.ftype is deprecated and will be removed in a future version. Use Series.dtype instead.
Series.ftypes1.0.0Series.ftypes is deprecated and will be removed in a future version. Use Series.dtype instead.
Series.get_dtype_counts1.0.0`get_dtype_counts` has been deprecated and will be removed in a future version. For DataFrames use `.dtypes.value_counts()
Series.get_ftype_counts1.0.0get_ftype_counts is deprecated and will be removed in a future version
Series.get_value1.0.0get_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead
Series.get_values1.0.0The 'get_values' method is deprecated and will be removed in a future version. Use '.to_numpy()' or '.array' instead.
Series.imag1.0.0`imag` is deprecated and will be removed in a future version. To eliminate this warning for a Series `ser`, use `np.imag(ser.to_numpy())` or `ser.to_numpy().imag`.
Series.is_copy1.0.0Attribute 'is_copy' is deprecated and will be removed in a future version.
Series.itemsize1.0.0Series.itemsize is deprecated and will be removed in a future version
Series.ix1.0.0Use .loc for labels, .iloc for positions. (our note)
Series.nonzero1.0.0Use s.to_numpy().nonzero(). (our note)
Series.ptp1.0.0Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.
Series.put1.0.0`put` has been deprecated and will be removed in afuture version.
Series.real1.0.0`real` is deprecated and will be removed in a future version. To eliminate this warning for a Series `ser`, use `np.real(ser.to_numpy())` or `ser.to_numpy().real`.
Series.set_value1.0.0set_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead
Series.strides1.0.0Series.strides is deprecated and will be removed in a future version
Series.to_dense1.0.0DataFrame/Series.to_dense is deprecated and will be removed in a future version
Series.to_msgpack1.0.0to_msgpack is deprecated and will be removed in a future version. It is recommended to use pyarrow for on-the-wire transmission of pandas objects.
Series.to_sparse1.0.0Series.to_sparse is deprecated and will be removed in a future version
Series.valid1.0.0Method .valid will be removed in a future version. Use .dropna instead.
Timestamp.weekday_name1.0.0Use day_name(). (our note)
pd.read_msgpack1.0.0The read_msgpack is deprecated and will be removed in a future version. It is recommended to use pyarrow for on-the-wire transmission of pandas objects.
pd.to_msgpack1.0.0to_msgpack is deprecated and will be removed in a future version. It is recommended to use pyarrow for on-the-wire transmission of pandas objects.
DatetimeIndex.get_value_maybe_box1.1.0
DataFrame.append2.0.0The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
DataFrame.iteritems2.0.0iteritems is deprecated and will be removed in a future version. Use .items instead.
DataFrame.lookup2.0.0Use df.loc / df.at, or df.to_numpy()[row_positions, column_positions]. (our note)
DataFrame.mad2.0.0Use (df - df.mean()).abs().mean(). (our note)
DataFrame.slice_shift2.0.0Use shift. (our note)
DataFrame.tshift2.0.0tshift is deprecated and will be removed in a future version. Please use shift instead.
DataFrameGroupBy.backfill2.0.0backfill is deprecated and will be removed in a future version. Use bfill instead.
DataFrameGroupBy.mad2.0.0Use an explicit agg, e.g. .agg(lambda x: (x - x.mean()).abs().mean()). (our note)
DataFrameGroupBy.pad2.0.0pad is deprecated and will be removed in a future version. Use ffill instead.
DataFrameGroupBy.tshift2.0.0tshift is deprecated and will be removed in a future version. Please use shift instead.
DatetimeIndex.get_value2.0.0get_value is deprecated and will be removed in a future version. Use Series[key] instead.
DatetimeIndex.is_all_dates2.0.0Index.is_all_dates is deprecated, will be removed in a future version. check index.inferred_type instead.
DatetimeIndex.is_mixed2.0.0Index.is_mixed is deprecated and will be removed in a future version. Check index.inferred_type directly instead.
DatetimeIndex.is_monotonic2.0.0is_monotonic is deprecated and will be removed in a future version. Use is_monotonic_increasing instead.
DatetimeIndex.is_type_compatible2.0.0DatetimeIndex.is_type_compatible is deprecated and will be removed in a future version.
DatetimeIndex.set_value2.0.0The 'set_value' method is deprecated, and will be removed in a future version.
DatetimeIndex.to_native_types2.0.0The 'to_native_types' method is deprecated and will be removed in a future version. Use 'astype(str)' instead.
DatetimeIndex.to_perioddelta2.0.0to_perioddelta is deprecated and will be removed in a future version. Use `dtindex - dtindex.to_period(freq).to_timestamp()` instead.
DatetimeIndex.union_many2.0.0DatetimeIndex.union_many is deprecated and will be removed in a future version. Use obj.union instead.
DatetimeIndex.week2.0.0Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead.
DatetimeIndex.weekofyear2.0.0Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead.
Index.asi82.0.0Index.asi8 is deprecated and will be removed in a future version.
Index.get_value2.0.0get_value is deprecated and will be removed in a future version. Use Series[key] instead.
Index.is_all_dates2.0.0Index.is_all_dates is deprecated, will be removed in a future version. check index.inferred_type instead.
Index.is_mixed2.0.0Index.is_mixed is deprecated and will be removed in a future version. Check index.inferred_type directly instead.
Index.is_monotonic2.0.0is_monotonic is deprecated and will be removed in a future version. Use is_monotonic_increasing instead.
Index.is_type_compatible2.0.0Index.is_type_compatible is deprecated and will be removed in a future version.
Index.set_value2.0.0The 'set_value' method is deprecated, and will be removed in a future version.
Index.to_native_types2.0.0The 'to_native_types' method is deprecated and will be removed in a future version. Use 'astype(str)' instead.
Series.append2.0.0The series.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
Series.is_monotonic2.0.0is_monotonic is deprecated and will be removed in a future version. Use is_monotonic_increasing instead.
Series.iteritems2.0.0iteritems is deprecated and will be removed in a future version. Use .items instead.
Series.mad2.0.0Use (s - s.mean()).abs().mean(). (our note)
Series.slice_shift2.0.0Use shift. (our note)
Series.tshift2.0.0tshift is deprecated and will be removed in a future version. Please use shift instead.
SeriesGroupBy.backfill2.0.0backfill is deprecated and will be removed in a future version. Use bfill instead.
SeriesGroupBy.mad2.0.0Use an explicit agg, e.g. .agg(lambda x: (x - x.mean()).abs().mean()). (our note)
SeriesGroupBy.pad2.0.0pad is deprecated and will be removed in a future version. Use ffill instead.
SeriesGroupBy.tshift2.0.0tshift is deprecated and will be removed in a future version. Please use shift instead.
Timestamp.freq2.0.0
Timestamp.freqstr2.0.0
pd.datetime2.0.0The pandas.datetime class is deprecated and will be removed from pandas in a future version. Import from datetime module instead.
pd.Float64Index2.0.0pandas.Float64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
pd.Int64Index2.0.0pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
pd.np2.0.0The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead.
pd.SparseArray2.0.0The pandas.SparseArray class is deprecated and will be removed from pandas in a future version. Use pandas.arrays.SparseArray instead.
pd.SparseDataFrame2.0.0The SparseDataFrame class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version.
pd.SparseSeries2.0.0The SparseSeries class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version.
pd.UInt64Index2.0.0pandas.UInt64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
DataFrame.applymap3.0.0DataFrame.applymap has been deprecated. Use DataFrame.map instead.
DataFrame.backfill3.0.0DataFrame.backfill/Series.backfill is deprecated. Use DataFrame.bfill/Series.bfill instead
DataFrame.bool3.0.0DataFrame.bool is now deprecated and will be removed in future version of pandas
DataFrame.first3.0.0first is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead
DataFrame.last3.0.0last is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead
DataFrame.pad3.0.0DataFrame.pad/Series.pad is deprecated. Use DataFrame.ffill/Series.ffill instead
DataFrame.swapaxes3.0.0'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead.
DataFrame.to_gbq3.0.0to_gbq is deprecated and will be removed in a future version. Please use pandas_gbq.to_gbq instead: https://pandas-gbq.readthedocs.io/en/latest/api.html#pandas_gbq.to_gbq
DataFrameGroupBy.dtypes3.0.0DataFrameGroupBy.dtypes is deprecated and will be removed in a future version. Check the dtypes on the base object instead
DataFrameGroupBy.fillna3.0.0DataFrameGroupBy.fillna is deprecated and will be removed in a future version. Use obj.ffill() or obj.bfill() for forward or backward filling instead. If you want to fill with a single value, use {type(self.obj).__name__}.fillna instead
DataFrameGroupBy.grouper3.0.0DataFrameGroupBy.grouper is deprecated and will be removed in a future version of pandas.
DatetimeIndex.format3.0.0DatetimeIndex.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead.
DatetimeIndex.holds_integer3.0.0DatetimeIndex.holds_integer is deprecated. Use pandas.api.types.infer_dtype instead.
DatetimeIndex.is_boolean3.0.0DatetimeIndex.is_boolean is deprecated. Use pandas.api.types.is_bool_type instead.
DatetimeIndex.is_categorical3.0.0DatetimeIndex.is_categorical is deprecated.Use pandas.api.types.is_categorical_dtype instead
DatetimeIndex.is_floating3.0.0DatetimeIndex.is_floating is deprecated. Use pandas.api.types.is_float_dtype instead.
DatetimeIndex.is_integer3.0.0DatetimeIndex.is_integer is deprecated. Use pandas.api.types.is_integer_dtype instead.
DatetimeIndex.is_interval3.0.0DatetimeIndex.is_interval is deprecated.Use pandas.api.types.is_interval_dtype instead
DatetimeIndex.is_numeric3.0.0DatetimeIndex.is_numeric is deprecated. Use pandas.api.types.is_any_real_numeric_dtype instead
DatetimeIndex.is_object3.0.0DatetimeIndex.is_object is deprecated.Use pandas.api.types.is_object_dtype instead
DatetimeIndex.sort3.0.0Use sort_values. (our note)
Index.format3.0.0Index.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead.
Index.holds_integer3.0.0Index.holds_integer is deprecated. Use pandas.api.types.infer_dtype instead.
Index.is_boolean3.0.0Index.is_boolean is deprecated. Use pandas.api.types.is_bool_type instead.
Index.is_categorical3.0.0Index.is_categorical is deprecated.Use pandas.api.types.is_categorical_dtype instead
Index.is_floating3.0.0Index.is_floating is deprecated. Use pandas.api.types.is_float_dtype instead.
Index.is_integer3.0.0Index.is_integer is deprecated. Use pandas.api.types.is_integer_dtype instead.
Index.is_interval3.0.0Index.is_interval is deprecated.Use pandas.api.types.is_interval_dtype instead
Index.is_numeric3.0.0Index.is_numeric is deprecated. Use pandas.api.types.is_any_real_numeric_dtype instead
Index.is_object3.0.0Index.is_object is deprecated.Use pandas.api.types.is_object_dtype instead
Index.sort3.0.0Use sort_values. (our note)
Series.backfill3.0.0DataFrame.backfill/Series.backfill is deprecated. Use DataFrame.bfill/Series.bfill instead
Series.bool3.0.0Series.bool is now deprecated and will be removed in future version of pandas
Series.first3.0.0first is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead
Series.last3.0.0last is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead
Series.pad3.0.0DataFrame.pad/Series.pad is deprecated. Use DataFrame.ffill/Series.ffill instead
Series.ravel3.0.0Series.ravel is deprecated. The underlying array is already 1D, so ravel is not necessary. Use `to_numpy()` for conversion to a numpy array instead.
Series.swapaxes3.0.0'Series.swapaxes' is deprecated and will be removed in a future version. Please use 'Series.transpose' instead.
Series.view3.0.0Series.view is deprecated and will be removed in a future version. Use ``astype`` as an alternative to change the dtype.
SeriesGroupBy.fillna3.0.0SeriesGroupBy.fillna is deprecated and will be removed in a future version. Use obj.ffill() or obj.bfill() for forward or backward filling instead. If you want to fill with a single value, use {type(self.obj).__name__}.fillna instead
SeriesGroupBy.grouper3.0.0SeriesGroupBy.grouper is deprecated and will be removed in a future version of pandas.
pd.read_gbq3.0.0read_gbq is deprecated and will be removed in a future version. Please use pandas_gbq.read_gbq instead: https://pandas-gbq.readthedocs.io/en/latest/api.html#pandas_gbq.read_gbq
pd.value_counts3.0.0pandas.value_counts is deprecated and will be removed in a future version. Use pd.Series(obj).value_counts() instead.

How was this measured?

Each of 14 pandas releases (the first of every minor from 0.25.3, plus the latest) was installed from PyPI in its own environment, the public names of each object were listed with dir(), and getattr was run for the union of all names in every release. Releases: 0.25.3 (Python 3.8, NumPy 1.19.5), 1.0.0 (Python 3.8, NumPy 1.19.5), 1.1.0 (Python 3.8, NumPy 1.19.5), 1.2.0 (Python 3.9, NumPy 1.19.5), 1.3.0 (Python 3.9, NumPy 1.21.6), 1.4.0 (Python 3.10, NumPy 1.22.4), 1.5.0 (Python 3.10, NumPy 1.23.5), 2.0.0 (Python 3.11, NumPy 1.24.4), 2.1.0 (Python 3.11, NumPy 1.26.4), 2.2.0 (Python 3.12, NumPy 1.26.4), 2.3.0 (Python 3.12, NumPy 2.2.6), 3.0.0 (Python 3.12, NumPy 2.5.5), 3.1.0 (Python 3.12, NumPy 2.5.5), 3.1.1 (Python 3.12, NumPy 2.5.5). A name is "removed" when getattr on the class (or the module) raises in a release after one where it worked. The replacement text is the string the name's own code passed to warnings.warn in the last release that had it, read from the installed source with inspect and ast (or, for module attributes, the warning given on access); where the code had none, a warning elsewhere in pandas that names it, or our note.

Patch releases were not read: a name removed in x.y.1 shows at the next minor. Series.flags went in 1.0.0 and came back in 1.2.0 with a different meaning.

Questions

How do I fix "'DataFrame' object has no attribute 'append'"?

pandas 2.0.0 (2023-04-03) removed DataFrame.append and Series.append; 1.4 and 1.5 warned. Collect the pieces and call pd.concat once: pd.concat([df, new_rows], ignore_index=True), where new_rows is a DataFrame (pd.DataFrame([row_dict]) for one row). Or pin pandas<2 (1.5.3 is the last 1.x).

How do I fix "'DataFrame' object has no attribute 'iteritems'"?

pandas 2.0.0 removed iteritems; use items(), which yields the same (column name, Series) pairs. Older libraries that call iteritems need upgrading, or pandas<2.

How do I fix "'DataFrame' object has no attribute 'applymap'"?

pandas 3.0.0 (2026-01-21) removed DataFrame.applymap; it was renamed DataFrame.map in 2.1.0, and 2.1 to 2.3 warned. Use df.map(func).

How do I fix "'DataFrame' object has no attribute 'ix'"?

pandas 1.0.0 (2020-01-30) removed .ix. Use .loc for labels and .iloc for positions.

How do I fix "module 'pandas' has no attribute 'Int64Index'"?

pandas 2.0.0 removed Int64Index, UInt64Index and Float64Index. Use pd.Index with a dtype, for example pd.Index([1, 2], dtype='int64'). The same release removed pd.np (import numpy) and pd.datetime (import datetime).

Sources

The same data as JSON: pandas_attrs.json, licensed CC BY 4.0.

Related: "module 'numpy' has no attribute 'float_'" · "cannot import name 'BaseSettings' from 'pydantic'" · "... from 'datasets'".