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.
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.
| Name | Removed in | Instead |
|---|---|---|
DataFrame.as_blocks | 1.0.0 | as_blocks is deprecated and will be removed in a future version |
DataFrame.as_matrix | 1.0.0 | Method .as_matrix will be removed in a future version. Use .values instead. |
DataFrame.blocks | 1.0.0 | |
DataFrame.clip_lower | 1.0.0 | clip_lower(threshold) is deprecated, use clip(lower=threshold) instead |
DataFrame.clip_upper | 1.0.0 | clip_upper(threshold) is deprecated, use clip(upper=threshold) instead |
DataFrame.compound | 1.0.0 | Use (1 + df).prod() - 1. (our note) |
DataFrame.from_items | 1.0.0 | from_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.ftypes | 1.0.0 | DataFrame.ftypes is deprecated and will be removed in a future version. Use DataFrame.dtypes instead. |
DataFrame.get_dtype_counts | 1.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_counts | 1.0.0 | get_ftype_counts is deprecated and will be removed in a future version |
DataFrame.get_value | 1.0.0 | get_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead |
DataFrame.get_values | 1.0.0 | The 'get_values' method is deprecated and will be removed in a future version. Use '.values' or 'np.asarray(..)' instead. |
DataFrame.is_copy | 1.0.0 | Attribute 'is_copy' is deprecated and will be removed in a future version. |
DataFrame.ix | 1.0.0 | Use .loc for labels, .iloc for positions. (our note) |
DataFrame.set_value | 1.0.0 | set_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead |
DataFrame.to_dense | 1.0.0 | DataFrame/Series.to_dense is deprecated and will be removed in a future version |
DataFrame.to_msgpack | 1.0.0 | to_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_sparse | 1.0.0 | DataFrame.to_sparse is deprecated and will be removed in a future version |
DatetimeIndex.asobject | 1.0.0 | 'asobject' is deprecated. Use 'astype(object)' instead |
DatetimeIndex.base | 1.0.0 | DatetimeIndex.base is deprecated and will be removed in a future version |
DatetimeIndex.contains | 1.0.0 | The 'contains' method is deprecated and will be removed in a future version. Use 'key in index' instead of 'index.contains(key)' |
DatetimeIndex.data | 1.0.0 | DatetimeIndex.data is deprecated and will be removed in a future version |
DatetimeIndex.dtype_str | 1.0.0 | `dtype_str` has been deprecated. Call `str` on the dtype attribute instead. |
DatetimeIndex.flags | 1.0.0 | DatetimeIndex.flags is deprecated and will be removed in a future version |
DatetimeIndex.get_duplicates | 1.0.0 | 'get_duplicates' is deprecated and will be removed in a future release. You can use idx[idx.duplicated()].unique() instead |
DatetimeIndex.get_values | 1.0.0 | The 'get_values' method is deprecated and will be removed in a future version. Use '.to_numpy()' or '.array' instead. |
DatetimeIndex.is_lexsorted_for_tuple | 1.0.0 | |
DatetimeIndex.itemsize | 1.0.0 | DatetimeIndex.itemsize is deprecated and will be removed in a future version |
DatetimeIndex.offset | 1.0.0 | Use freq. (our note) |
DatetimeIndex.strides | 1.0.0 | DatetimeIndex.strides is deprecated and will be removed in a future version |
DatetimeIndex.summary | 1.0.0 | 'summary' is deprecated and will be removed in a future version. |
DatetimeIndex.weekday_name | 1.0.0 | Use day_name(). (our note) |
Index.base | 1.0.0 | Index.base is deprecated and will be removed in a future version |
Index.contains | 1.0.0 | The 'contains' method is deprecated and will be removed in a future version. Use 'key in index' instead of 'index.contains(key)' |
Index.data | 1.0.0 | Index.data is deprecated and will be removed in a future version |
Index.dtype_str | 1.0.0 | `dtype_str` has been deprecated. Call `str` on the dtype attribute instead. |
Index.flags | 1.0.0 | Index.flags is deprecated and will be removed in a future version |
Index.get_duplicates | 1.0.0 | 'get_duplicates' is deprecated and will be removed in a future release. You can use idx[idx.duplicated()].unique() instead |
Index.get_values | 1.0.0 | The 'get_values' method is deprecated and will be removed in a future version. Use '.to_numpy()' or '.array' instead. |
Index.is_lexsorted_for_tuple | 1.0.0 | |
Index.itemsize | 1.0.0 | Index.itemsize is deprecated and will be removed in a future version |
Index.strides | 1.0.0 | Index.strides is deprecated and will be removed in a future version |
Index.summary | 1.0.0 | 'summary' is deprecated and will be removed in a future version. |
Series.as_blocks | 1.0.0 | as_blocks is deprecated and will be removed in a future version |
Series.as_matrix | 1.0.0 | Method .as_matrix will be removed in a future version. Use .values instead. |
Series.asobject | 1.0.0 | 'asobject' is deprecated. Use 'astype(object)' instead |
Series.base | 1.0.0 | Series.base is deprecated and will be removed in a future version |
Series.blocks | 1.0.0 | |
Series.clip_lower | 1.0.0 | clip_lower(threshold) is deprecated, use clip(lower=threshold) instead |
Series.clip_upper | 1.0.0 | clip_upper(threshold) is deprecated, use clip(upper=threshold) instead |
Series.compound | 1.0.0 | Use (1 + s).prod() - 1. (our note) |
Series.compress | 1.0.0 | Use s[condition]. (our note) |
Series.data | 1.0.0 | Series.data is deprecated and will be removed in a future version |
Series.from_array | 1.0.0 | 'from_array' is deprecated and will be removed in a future version. Please use the pd.Series(..) constructor instead. |
Series.ftype | 1.0.0 | Series.ftype is deprecated and will be removed in a future version. Use Series.dtype instead. |
Series.ftypes | 1.0.0 | Series.ftypes is deprecated and will be removed in a future version. Use Series.dtype instead. |
Series.get_dtype_counts | 1.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_counts | 1.0.0 | get_ftype_counts is deprecated and will be removed in a future version |
Series.get_value | 1.0.0 | get_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead |
Series.get_values | 1.0.0 | The 'get_values' method is deprecated and will be removed in a future version. Use '.to_numpy()' or '.array' instead. |
Series.imag | 1.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_copy | 1.0.0 | Attribute 'is_copy' is deprecated and will be removed in a future version. |
Series.itemsize | 1.0.0 | Series.itemsize is deprecated and will be removed in a future version |
Series.ix | 1.0.0 | Use .loc for labels, .iloc for positions. (our note) |
Series.nonzero | 1.0.0 | Use s.to_numpy().nonzero(). (our note) |
Series.ptp | 1.0.0 | Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead. |
Series.put | 1.0.0 | `put` has been deprecated and will be removed in afuture version. |
Series.real | 1.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_value | 1.0.0 | set_value is deprecated and will be removed in a future release. Please use .at[] or .iat[] accessors instead |
Series.strides | 1.0.0 | Series.strides is deprecated and will be removed in a future version |
Series.to_dense | 1.0.0 | DataFrame/Series.to_dense is deprecated and will be removed in a future version |
Series.to_msgpack | 1.0.0 | to_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_sparse | 1.0.0 | Series.to_sparse is deprecated and will be removed in a future version |
Series.valid | 1.0.0 | Method .valid will be removed in a future version. Use .dropna instead. |
Timestamp.weekday_name | 1.0.0 | Use day_name(). (our note) |
pd.read_msgpack | 1.0.0 | The 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_msgpack | 1.0.0 | to_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_box | 1.1.0 | |
DataFrame.append | 2.0.0 | The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. |
DataFrame.iteritems | 2.0.0 | iteritems is deprecated and will be removed in a future version. Use .items instead. |
DataFrame.lookup | 2.0.0 | Use df.loc / df.at, or df.to_numpy()[row_positions, column_positions]. (our note) |
DataFrame.mad | 2.0.0 | Use (df - df.mean()).abs().mean(). (our note) |
DataFrame.slice_shift | 2.0.0 | Use shift. (our note) |
DataFrame.tshift | 2.0.0 | tshift is deprecated and will be removed in a future version. Please use shift instead. |
DataFrameGroupBy.backfill | 2.0.0 | backfill is deprecated and will be removed in a future version. Use bfill instead. |
DataFrameGroupBy.mad | 2.0.0 | Use an explicit agg, e.g. .agg(lambda x: (x - x.mean()).abs().mean()). (our note) |
DataFrameGroupBy.pad | 2.0.0 | pad is deprecated and will be removed in a future version. Use ffill instead. |
DataFrameGroupBy.tshift | 2.0.0 | tshift is deprecated and will be removed in a future version. Please use shift instead. |
DatetimeIndex.get_value | 2.0.0 | get_value is deprecated and will be removed in a future version. Use Series[key] instead. |
DatetimeIndex.is_all_dates | 2.0.0 | Index.is_all_dates is deprecated, will be removed in a future version. check index.inferred_type instead. |
DatetimeIndex.is_mixed | 2.0.0 | Index.is_mixed is deprecated and will be removed in a future version. Check index.inferred_type directly instead. |
DatetimeIndex.is_monotonic | 2.0.0 | is_monotonic is deprecated and will be removed in a future version. Use is_monotonic_increasing instead. |
DatetimeIndex.is_type_compatible | 2.0.0 | DatetimeIndex.is_type_compatible is deprecated and will be removed in a future version. |
DatetimeIndex.set_value | 2.0.0 | The 'set_value' method is deprecated, and will be removed in a future version. |
DatetimeIndex.to_native_types | 2.0.0 | The 'to_native_types' method is deprecated and will be removed in a future version. Use 'astype(str)' instead. |
DatetimeIndex.to_perioddelta | 2.0.0 | to_perioddelta is deprecated and will be removed in a future version. Use `dtindex - dtindex.to_period(freq).to_timestamp()` instead. |
DatetimeIndex.union_many | 2.0.0 | DatetimeIndex.union_many is deprecated and will be removed in a future version. Use obj.union instead. |
DatetimeIndex.week | 2.0.0 | Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead. |
DatetimeIndex.weekofyear | 2.0.0 | Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead. |
Index.asi8 | 2.0.0 | Index.asi8 is deprecated and will be removed in a future version. |
Index.get_value | 2.0.0 | get_value is deprecated and will be removed in a future version. Use Series[key] instead. |
Index.is_all_dates | 2.0.0 | Index.is_all_dates is deprecated, will be removed in a future version. check index.inferred_type instead. |
Index.is_mixed | 2.0.0 | Index.is_mixed is deprecated and will be removed in a future version. Check index.inferred_type directly instead. |
Index.is_monotonic | 2.0.0 | is_monotonic is deprecated and will be removed in a future version. Use is_monotonic_increasing instead. |
Index.is_type_compatible | 2.0.0 | Index.is_type_compatible is deprecated and will be removed in a future version. |
Index.set_value | 2.0.0 | The 'set_value' method is deprecated, and will be removed in a future version. |
Index.to_native_types | 2.0.0 | The 'to_native_types' method is deprecated and will be removed in a future version. Use 'astype(str)' instead. |
Series.append | 2.0.0 | The series.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. |
Series.is_monotonic | 2.0.0 | is_monotonic is deprecated and will be removed in a future version. Use is_monotonic_increasing instead. |
Series.iteritems | 2.0.0 | iteritems is deprecated and will be removed in a future version. Use .items instead. |
Series.mad | 2.0.0 | Use (s - s.mean()).abs().mean(). (our note) |
Series.slice_shift | 2.0.0 | Use shift. (our note) |
Series.tshift | 2.0.0 | tshift is deprecated and will be removed in a future version. Please use shift instead. |
SeriesGroupBy.backfill | 2.0.0 | backfill is deprecated and will be removed in a future version. Use bfill instead. |
SeriesGroupBy.mad | 2.0.0 | Use an explicit agg, e.g. .agg(lambda x: (x - x.mean()).abs().mean()). (our note) |
SeriesGroupBy.pad | 2.0.0 | pad is deprecated and will be removed in a future version. Use ffill instead. |
SeriesGroupBy.tshift | 2.0.0 | tshift is deprecated and will be removed in a future version. Please use shift instead. |
Timestamp.freq | 2.0.0 | |
Timestamp.freqstr | 2.0.0 | |
pd.datetime | 2.0.0 | The pandas.datetime class is deprecated and will be removed from pandas in a future version. Import from datetime module instead. |
pd.Float64Index | 2.0.0 | pandas.Float64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead. |
pd.Int64Index | 2.0.0 | pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead. |
pd.np | 2.0.0 | The pandas.np module is deprecated and will be removed from pandas in a future version. Import numpy directly instead. |
pd.SparseArray | 2.0.0 | The pandas.SparseArray class is deprecated and will be removed from pandas in a future version. Use pandas.arrays.SparseArray instead. |
pd.SparseDataFrame | 2.0.0 | The SparseDataFrame class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version. |
pd.SparseSeries | 2.0.0 | The SparseSeries class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version. |
pd.UInt64Index | 2.0.0 | pandas.UInt64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead. |
DataFrame.applymap | 3.0.0 | DataFrame.applymap has been deprecated. Use DataFrame.map instead. |
DataFrame.backfill | 3.0.0 | DataFrame.backfill/Series.backfill is deprecated. Use DataFrame.bfill/Series.bfill instead |
DataFrame.bool | 3.0.0 | DataFrame.bool is now deprecated and will be removed in future version of pandas |
DataFrame.first | 3.0.0 | first is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead |
DataFrame.last | 3.0.0 | last is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead |
DataFrame.pad | 3.0.0 | DataFrame.pad/Series.pad is deprecated. Use DataFrame.ffill/Series.ffill instead |
DataFrame.swapaxes | 3.0.0 | 'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead. |
DataFrame.to_gbq | 3.0.0 | to_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.dtypes | 3.0.0 | DataFrameGroupBy.dtypes is deprecated and will be removed in a future version. Check the dtypes on the base object instead |
DataFrameGroupBy.fillna | 3.0.0 | DataFrameGroupBy.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.grouper | 3.0.0 | DataFrameGroupBy.grouper is deprecated and will be removed in a future version of pandas. |
DatetimeIndex.format | 3.0.0 | DatetimeIndex.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead. |
DatetimeIndex.holds_integer | 3.0.0 | DatetimeIndex.holds_integer is deprecated. Use pandas.api.types.infer_dtype instead. |
DatetimeIndex.is_boolean | 3.0.0 | DatetimeIndex.is_boolean is deprecated. Use pandas.api.types.is_bool_type instead. |
DatetimeIndex.is_categorical | 3.0.0 | DatetimeIndex.is_categorical is deprecated.Use pandas.api.types.is_categorical_dtype instead |
DatetimeIndex.is_floating | 3.0.0 | DatetimeIndex.is_floating is deprecated. Use pandas.api.types.is_float_dtype instead. |
DatetimeIndex.is_integer | 3.0.0 | DatetimeIndex.is_integer is deprecated. Use pandas.api.types.is_integer_dtype instead. |
DatetimeIndex.is_interval | 3.0.0 | DatetimeIndex.is_interval is deprecated.Use pandas.api.types.is_interval_dtype instead |
DatetimeIndex.is_numeric | 3.0.0 | DatetimeIndex.is_numeric is deprecated. Use pandas.api.types.is_any_real_numeric_dtype instead |
DatetimeIndex.is_object | 3.0.0 | DatetimeIndex.is_object is deprecated.Use pandas.api.types.is_object_dtype instead |
DatetimeIndex.sort | 3.0.0 | Use sort_values. (our note) |
Index.format | 3.0.0 | Index.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead. |
Index.holds_integer | 3.0.0 | Index.holds_integer is deprecated. Use pandas.api.types.infer_dtype instead. |
Index.is_boolean | 3.0.0 | Index.is_boolean is deprecated. Use pandas.api.types.is_bool_type instead. |
Index.is_categorical | 3.0.0 | Index.is_categorical is deprecated.Use pandas.api.types.is_categorical_dtype instead |
Index.is_floating | 3.0.0 | Index.is_floating is deprecated. Use pandas.api.types.is_float_dtype instead. |
Index.is_integer | 3.0.0 | Index.is_integer is deprecated. Use pandas.api.types.is_integer_dtype instead. |
Index.is_interval | 3.0.0 | Index.is_interval is deprecated.Use pandas.api.types.is_interval_dtype instead |
Index.is_numeric | 3.0.0 | Index.is_numeric is deprecated. Use pandas.api.types.is_any_real_numeric_dtype instead |
Index.is_object | 3.0.0 | Index.is_object is deprecated.Use pandas.api.types.is_object_dtype instead |
Index.sort | 3.0.0 | Use sort_values. (our note) |
Series.backfill | 3.0.0 | DataFrame.backfill/Series.backfill is deprecated. Use DataFrame.bfill/Series.bfill instead |
Series.bool | 3.0.0 | Series.bool is now deprecated and will be removed in future version of pandas |
Series.first | 3.0.0 | first is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead |
Series.last | 3.0.0 | last is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead |
Series.pad | 3.0.0 | DataFrame.pad/Series.pad is deprecated. Use DataFrame.ffill/Series.ffill instead |
Series.ravel | 3.0.0 | Series.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.swapaxes | 3.0.0 | 'Series.swapaxes' is deprecated and will be removed in a future version. Please use 'Series.transpose' instead. |
Series.view | 3.0.0 | Series.view is deprecated and will be removed in a future version. Use ``astype`` as an alternative to change the dtype. |
SeriesGroupBy.fillna | 3.0.0 | SeriesGroupBy.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.grouper | 3.0.0 | SeriesGroupBy.grouper is deprecated and will be removed in a future version of pandas. |
pd.read_gbq | 3.0.0 | read_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_counts | 3.0.0 | pandas.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 pandas wheels on PyPI, installed and run, and their source as installed; the release dates are PyPI's.
- pandas release notes: 2.0.0, 3.0.0.
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'".