Pandas 1.0
Previously, pandas would register converters with matplotlib as a side effect of importing pandas (GH18720). This changed the output of plots made via matplotlib plots after pandas was imported, even if you were using matplotlib directly rather than plot().
Removed the previously deprecated keyword “index” from
read_stata(),StataReader, andStataReader.read(), use “index_col” instead (GH17328)Removed
StataReader.datamethod, useStataReader.read()instead (GH9493)Removed
pandas.plotting._matplotlib.tsplot, useSeries.plot()instead (GH19980)pandas.tseries.converter.registerhas been moved topandas.plotting.register_matplotlib_converters()(GH18307)Series.plot()no longer accepts positional arguments, pass keyword arguments instead (GH30003)DataFrame.hist()andSeries.hist()no longer allowsfigsize="default", specify figure size by passinig a tuple instead (GH30003)Floordiv of integer-dtyped array by
Timedeltanow raisesTypeError(GH21036)TimedeltaIndexandDatetimeIndexno longer accept non-nanosecond dtype strings like “timedelta64” or “datetime64”, use “timedelta64[ns]” and “datetime64[ns]” instead (GH24806)Changed the default “skipna” argument in
pandas.api.types.infer_dtype()fromFalsetoTrue(GH24050)Removed
Series.ixandDataFrame.ix(GH26438)Removed
Index.summary(GH18217)Removed the previously deprecated keyword “fastpath” from the
Indexconstructor (GH23110)Removed
Series.get_value,Series.set_value,DataFrame.get_value,DataFrame.set_value(GH17739)Removed
Series.compoundandDataFrame.compound(GH26405)Changed the default “inplace” argument in
DataFrame.set_index()andSeries.set_axis()fromNonetoFalse(GH27600)Removed
Series.cat.categorical,Series.cat.index,Series.cat.name(GH24751)Removed the previously deprecated keyword “box” from
to_datetime()andto_timedelta(); in addition these now always returnsDatetimeIndex,TimedeltaIndex,Index,Series, orDataFrame(GH24486)to_timedelta(),Timedelta, andTimedeltaIndexno longer allow “M”, “y”, or “Y” for the “unit” argument (GH23264)Removed the previously deprecated keyword “time_rule” from (non-public)
offsets.generate_range, which has been moved tocore.arrays._ranges.generate_range()(GH24157)DataFrame.loc()orSeries.loc()with listlike indexers and missing labels will no longer reindex (GH17295)DataFrame.to_excel()andSeries.to_excel()with non-existent columns will no longer reindex (GH17295)Removed the previously deprecated keyword “join_axes” from
concat(); usereindex_likeon the result instead (GH22318)Removed the previously deprecated keyword “by” from
DataFrame.sort_index(), useDataFrame.sort_values()instead (GH10726)Removed support for nested renaming in
DataFrame.aggregate(),Series.aggregate(),core.groupby.DataFrameGroupBy.aggregate(),core.groupby.SeriesGroupBy.aggregate(),core.window.rolling.Rolling.aggregate()(GH18529)Passing
datetime64data toTimedeltaIndexortimedelta64data toDatetimeIndexnow raisesTypeError(GH23539, GH23937)Passing
int64values toDatetimeIndexand a timezone now interprets the values as nanosecond timestamps in UTC, not wall times in the given timezone (GH24559)A tuple passed to
DataFrame.groupby()is now exclusively treated as a single key (GH18314)Removed
Index.contains, usekey in indexinstead (GH30103)Addition and subtraction of
intor integer-arrays is no longer allowed inTimestamp,DatetimeIndex,TimedeltaIndex, useobj + n * obj.freqinstead ofobj + n(GH22535)Removed
Series.ptp(GH21614)Removed
Series.from_array(GH18258)Removed
DataFrame.from_items(GH18458)Removed
DataFrame.as_matrix,Series.as_matrix(GH18458)Removed
Series.asobject(GH18477)Removed
DataFrame.as_blocks,Series.as_blocks,DataFrame.blocks,Series.blocks(GH17656)pandas.Series.str.cat()now defaults to aligningothers, usingjoin='left'(GH27611)pandas.Series.str.cat()does not accept list-likes within list-likes anymore (GH27611)Series.where()withCategoricaldtype (orDataFrame.where()withCategoricalcolumn) no longer allows setting new categories (GH24114)Removed the previously deprecated keywords “start”, “end”, and “periods” from the
DatetimeIndex,TimedeltaIndex, andPeriodIndexconstructors; usedate_range(),timedelta_range(), andperiod_range()instead (GH23919)Removed the previously deprecated keyword “verify_integrity” from the
DatetimeIndexandTimedeltaIndexconstructors (GH23919)Removed the previously deprecated keyword “fastpath” from
pandas.core.internals.blocks.make_block(GH19265)Removed the previously deprecated keyword “dtype” from
Block.make_block_same_class()(GH19434)Removed
ExtensionArray._formatting_values. UseExtensionArray._formatterinstead. (GH23601)Removed
MultiIndex.to_hierarchical(GH21613)Removed
MultiIndex.labels, useMultiIndex.codesinstead (GH23752)Removed the previously deprecated keyword “labels” from the
MultiIndexconstructor, use “codes” instead (GH23752)Removed
MultiIndex.set_labels, useMultiIndex.set_codes()instead (GH23752)Removed the previously deprecated keyword “labels” from
MultiIndex.set_codes(),MultiIndex.copy(),MultiIndex.drop(), use “codes” instead (GH23752)Removed support for legacy HDF5 formats (GH29787)
Passing a dtype alias (e.g. ‘datetime64[ns, UTC]’) to
DatetimeTZDtypeis no longer allowed, useDatetimeTZDtype.construct_from_string()instead (GH23990)Removed the previously deprecated keyword “skip_footer” from
read_excel(); use “skipfooter” instead (GH18836)read_excel()no longer allows an integer value for the parameterusecols, instead pass a list of integers from 0 tousecolsinclusive (GH23635)Removed the previously deprecated keyword “convert_datetime64” from
DataFrame.to_records()(GH18902)Removed
IntervalIndex.from_intervalsin favor of theIntervalIndexconstructor (GH19263)Changed the default “keep_tz” argument in
DatetimeIndex.to_series()fromNonetoTrue(GH23739)Removed
api.types.is_periodandapi.types.is_datetimetz(GH23917)Ability to read pickles containing
Categoricalinstances created with pre-0.16 version of pandas has been removed (GH27538)Removed
pandas.tseries.plotting.tsplot(GH18627)Removed the previously deprecated keywords “reduce” and “broadcast” from
DataFrame.apply()(GH18577)Removed the previously deprecated
assert_raises_regexfunction inpandas._testing(GH29174)Removed the previously deprecated
FrozenNDArrayclass inpandas.core.indexes.frozen(GH29335)Removed the previously deprecated keyword “nthreads” from
read_feather(), use “use_threads” instead (GH23053)Removed
Index.is_lexsorted_for_tuple(GH29305)Removed support for nested renaming in
DataFrame.aggregate(),Series.aggregate(),core.groupby.DataFrameGroupBy.aggregate(),core.groupby.SeriesGroupBy.aggregate(),core.window.rolling.Rolling.aggregate()(GH29608)Removed
Series.valid; useSeries.dropna()instead (GH18800)Removed
DataFrame.is_copy,Series.is_copy(GH18812)Removed
DataFrame.get_ftype_counts,Series.get_ftype_counts(GH18243)Removed
DataFrame.ftypes,Series.ftypes,Series.ftype(GH26744)Removed
Index.get_duplicates, useidx[idx.duplicated()].unique()instead (GH20239)Removed
Series.clip_upper,Series.clip_lower,DataFrame.clip_upper,DataFrame.clip_lower(GH24203)Removed the ability to alter
DatetimeIndex.freq,TimedeltaIndex.freq, orPeriodIndex.freq(GH20772)Removed
DatetimeIndex.offset(GH20730)Removed
DatetimeIndex.asobject,TimedeltaIndex.asobject,PeriodIndex.asobject, useastype(object)instead (GH29801)Removed the previously deprecated keyword “order” from
factorize()(GH19751)Removed the previously deprecated keyword “encoding” from
read_stata()andDataFrame.to_stata()(GH21400)Changed the default “sort” argument in
concat()fromNonetoFalse(GH20613)Removed the previously deprecated keyword “raise_conflict” from
DataFrame.update(), use “errors” instead (GH23585)Removed the previously deprecated keyword “n” from
DatetimeIndex.shift(),TimedeltaIndex.shift(),PeriodIndex.shift(), use “periods” instead (GH22458)Removed the previously deprecated keywords “how”, “fill_method”, and “limit” from
DataFrame.resample()(GH30139)Passing an integer to
Series.fillna()orDataFrame.fillna()withtimedelta64[ns]dtype now raisesTypeError(GH24694)Passing multiple axes to
DataFrame.dropna()is no longer supported (GH20995)Removed
Series.nonzero, useto_numpy().nonzero()instead (GH24048)Passing floating dtype
codestoCategorical.from_codes()is no longer supported, passcodes.astype(np.int64)instead (GH21775)Removed the previously deprecated keyword “pat” from
Series.str.partition()andSeries.str.rpartition(), use “sep” instead (GH23767)Removed
Series.put(GH27106)Removed
Series.real,Series.imag(GH27106)Removed
Series.to_dense,DataFrame.to_dense(GH26684)Removed
Index.dtype_str, usestr(index.dtype)instead (GH27106)Categorical.ravel()returns aCategoricalinstead of andarray(GH27199)The ‘outer’ method on Numpy ufuncs, e.g.
np.subtract.outeroperating onSeriesobjects is no longer supported, and will raiseNotImplementedError(GH27198)Removed
Series.get_dtype_countsandDataFrame.get_dtype_counts(GH27145)Changed the default “fill_value” argument in
Categorical.take()fromTruetoFalse(GH20841)Changed the default value for the raw argument in
Series.rolling().apply(),DataFrame.rolling().apply(),Series.expanding().apply(), andDataFrame.expanding().apply()fromNonetoFalse(GH20584)Removed deprecated behavior of
Series.argmin()andSeries.argmax(), useSeries.idxmin()andSeries.idxmax()for the old behavior (GH16955)Passing a tz-aware
datetime.datetimeorTimestampinto theTimestampconstructor with thetzargument now raises aValueError(GH23621)Removed
Series.base,Index.base,Categorical.base,Series.flags,Index.flags,PeriodArray.flags,Series.strides,Index.strides,Series.itemsize,Index.itemsize,Series.data,Index.data(GH20721)Changed
Timedelta.resolution()to match the behavior of the standard librarydatetime.timedelta.resolution, for the old behavior, useTimedelta.resolution_string()(GH26839)Removed
Timestamp.weekday_name,DatetimeIndex.weekday_name, andSeries.dt.weekday_name(GH18164)Removed the previously deprecated keyword “errors” in
Timestamp.tz_localize(),DatetimeIndex.tz_localize(), andSeries.tz_localize()(GH22644)Changed the default “ordered” argument in
CategoricalDtypefromNonetoFalse(GH26336)Series.set_axis()andDataFrame.set_axis()now require “labels” as the first argument and “axis” as an optional named parameter (GH30089)Removed
to_msgpack,read_msgpack,DataFrame.to_msgpack,Series.to_msgpack(GH27103)Removed
Series.compress(GH21930)Removed the previously deprecated keyword “fill_value” from
Categorical.fillna(), use “value” instead (GH19269)Removed the previously deprecated keyword “data” from
andrews_curves(), use “frame” instead (GH6956)Removed the previously deprecated keyword “data” from
parallel_coordinates(), use “frame” instead (GH6956)Removed the previously deprecated keyword “colors” from
parallel_coordinates(), use “color” instead (GH6956)Removed the previously deprecated keywords “verbose” and “private_key” from
read_gbq()(GH30200)Calling
np.arrayandnp.asarrayon tz-awareSeriesandDatetimeIndexwill now return an object array of tz-awareTimestamp(GH24596)
from Hacker News https://ift.tt/2RC3Otb