Skip to content
Merged
Prev Previous commit
Next Next commit
Removed references to future versions
  • Loading branch information
GuessWhoSamFoo committed May 31, 2017
commit 135f8d0939c94549c1db6bfd069e31ae14298115
14 changes: 6 additions & 8 deletions doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ usecols : array-like or callable, default ``None``
Using this parameter results in much faster parsing time and lower memory usage.
as_recarray : boolean, default ``False``
.. deprecated:: 0.18.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using the deprecated directive, you will need to add blank lines around it

This argument will be removed in a future version. Please call
``pd.read_csv(...).to_records()`` instead.
Please call ``pd.read_csv(...).to_records()`` instead.

Return a NumPy recarray instead of a DataFrame after parsing the data. If
set to ``True``, this option takes precedence over the ``squeeze`` parameter.
Expand Down Expand Up @@ -204,19 +203,18 @@ low_memory : boolean, default ``True``
use the ``chunksize`` or ``iterator`` parameter to return the data in chunks.
(Only valid with C parser)
buffer_lines : int, default None
.. deprecated:: 0.18.2
This argument will be removed in a future version because its
value is not respected by the parser
.. deprecated:: 0.19.0
Argument removed because its value is not respected by the parser
compact_ints : boolean, default False
.. deprecated:: 0.18.2
DEPRECATED: this argument will be removed in a future version
.. deprecated:: 0.19.0
Argument moved to ``pd.to_numeric``

If ``compact_ints`` is ``True``, then for any column that is of integer dtype, the
parser will attempt to cast it as the smallest integer ``dtype`` possible, either
signed or unsigned depending on the specification from the ``use_unsigned`` parameter.
use_unsigned : boolean, default False
.. deprecated:: 0.18.2
This argument will be removed in a future version
Argument moved to ``pd.to_numeric``

If integer columns are being compacted (i.e. ``compact_ints=True``), specify whether
the column should be compacted to the smallest signed or unsigned integer dtype.
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def base(self):
@classmethod
def from_array(cls, data, **kwargs):
"""
.. deprecated::
.. deprecated:: 0.19.0
Use ``Categorical`` instead.

Make a Categorical type from a single array-like object.
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def in_ipnb():
check if we're inside an IPython Notebook

.. deprecated:: 0.14.1
This is no longer used in pandas, and won't work in IPython 3 and above.
This is no longer needed, or working, in IPython 3 and above.
"""
try:
ip = get_ipython() # noqa
Expand Down
3 changes: 1 addition & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,8 +1323,7 @@ def to_sql(self, name, con, flavor=None, schema=None, if_exists='fail',
library. If a DBAPI2 object, only sqlite3 is supported.
flavor : 'sqlite', default None
.. deprecated:: 0.19.0
This parameter will be removed in a future version,
as 'sqlite' is the only supported option if SQLAlchemy is not
'sqlite' is the only supported option if SQLAlchemy is not
installed.
schema : string, default None
Specify the schema (if database flavor supports this). If None, use
Expand Down
1 change: 0 additions & 1 deletion pandas/core/panel4d.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
N-Dimensional named containers.

.. deprecated:: 0.19.0
Panel4D is deprecated and will be removed in a future version.
The recommended way to represent these types of n-dimensional data
are with the `xarray package <http://xarray.pydata.org/en/stable/>`__.
Pandas provides a `.to_xarray()` method to automate this conversion.
Expand Down
1 change: 0 additions & 1 deletion pandas/core/panelnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def create_nd_panel_factory(klass_name, orders, slices, slicer, aliases=None,
""" manufacture a n-d class:

.. deprecated:: 0.19.0
Panelnd is deprecated and will be removed in a future version.
The recommended way to represent these types of n-dimensional data
are with the `xarray package <http://xarray.pydata.org/en/stable/>`__.
Pandas provides a `.to_xarray()` method to automate this conversion.
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ def repeat(self, repeats, *args, **kwargs):
def reshape(self, *args, **kwargs):
"""
.. deprecated:: 0.19.0
Calling this method will raise an error in a future release.
Please call ``.values.reshape(...)`` instead.
Calling this method will raise an error. Please call
``.values.reshape(...)`` instead.

return an ndarray with the values shape
if the specified shape matches exactly the current shape, then
Expand Down
3 changes: 1 addition & 2 deletions pandas/core/sparse/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ def to_dense(self, fill=None):
----------
fill: float, default None
.. deprecated:: 0.20.0
This argument will be removed in a future version
because it is not respected by this function.
This argument is not respected by this function.

Returns
-------
Expand Down
10 changes: 4 additions & 6 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@
parsing time and lower memory usage.
as_recarray : boolean, default False
.. deprecated:: 0.19.0
This argument will be removed in a future version. Please call
`pd.read_csv(...).to_records()` instead.
Please call `pd.read_csv(...).to_records()` instead.

Return a NumPy recarray instead of a DataFrame after parsing the data.
If set to True, this option takes precedence over the `squeeze` parameter.
Expand Down Expand Up @@ -279,19 +278,18 @@
(Only valid with C parser)
buffer_lines : int, default None
.. deprecated:: 0.19.0
This argument will be removed in a future version because its
value is not respected by the parser
This argument is not respected by the parser
compact_ints : boolean, default False
.. deprecated:: 0.19.0
This argument will be removed in a future version
Argument moved to ``pd.to_numeric``

If compact_ints is True, then for any column that is of integer dtype,
the parser will attempt to cast it as the smallest integer dtype possible,
either signed or unsigned depending on the specification from the
`use_unsigned` parameter.
use_unsigned : boolean, default False
.. deprecated:: 0.19.0
This argument will be removed in a future version
Argument moved to ``pd.to_numeric``

If integer columns are being compacted (i.e. `compact_ints=True`), specify
whether the column should be compacted to the smallest signed or unsigned
Expand Down
9 changes: 6 additions & 3 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ def to_sql(frame, name, con, flavor=None, schema=None, if_exists='fail',
If a DBAPI2 object, only sqlite3 is supported.
flavor : 'sqlite', default None
.. deprecated:: 0.19.0
This parameter will be removed in a future version
'sqlite' is the only supported option if SQLAlchemy is not
installed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'installed' is not fully correct, as you can use the sqlite backend also when sqlalchemy is installed. So I would make 'used' of it.

(the same for all the other occurrences of this one both in this file as in generic.py)

schema : string, default None
Name of SQL schema in database to write to (if database flavor
supports this). If None, use default schema (default).
Expand Down Expand Up @@ -486,7 +487,8 @@ def has_table(table_name, con, flavor=None, schema=None):
If a DBAPI2 object, only sqlite3 is supported.
flavor : 'sqlite', default None
.. deprecated:: 0.19.0
This parameter will be removed in a future version
'sqlite' is the only supported option if SQLAlchemy is not
installed.
schema : string, default None
Name of SQL schema in database to write to (if database flavor supports
this). If None, use default schema (default).
Expand Down Expand Up @@ -1548,7 +1550,8 @@ def get_schema(frame, name, flavor=None, keys=None, con=None, dtype=None):
If a DBAPI2 object, only sqlite3 is supported.
flavor : 'sqlite', default None
.. deprecated:: 0.19.0
This parameter will be removed in a future version
'sqlite' is the only supported option if SQLAlchemy is not
installed.
dtype : dict of column name to SQL type, default None
Optional specifying the datatype for columns. The SQL type should
be a SQLAlchemy type, or a string for sqlite3 fallback connection.
Expand Down