Skip to content

Commit

Permalink
correct method ref syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Feb 22, 2018
1 parent ea0e73b commit 6ec5002
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,12 +1254,14 @@ def to_records(self, index=True, convert_datetime64=True):

@classmethod
def from_items(cls, items, columns=None, orient='columns'):
"""
"""DEPRECATED: Use from_dict instead.
.. deprecated:: 0.23.0
from_items is deprecated and will be removed in a
future version. Use :meth:`DataFrame.from_dict(dict())`
instead. :meth:`DataFrame.from_dict(OrderedDict(...))` may be used
to preserve the key order.
`from_items` is deprecated and will be removed in a future version.
Use :meth:`DataFrame.from_dict(dict(items)) <DataFrame.from_dict>`
instead.
:meth:`DataFrame.from_dict(OrderedDict(items)) <DataFrame.from_dict>`
may be used to preserve the key order.
Convert (key, value) pairs to DataFrame. The keys will be the axis
index (usually the columns, but depends on the specified
Expand All @@ -1283,8 +1285,8 @@ def from_items(cls, items, columns=None, orient='columns'):
"""

warnings.warn("from_items is deprecated. Please use "
"DataFrame.from_dict(dict()) instead. "
"DataFrame.from_dict(OrderedDict()) may be used to "
"DataFrame.from_dict(dict(items), ...) instead. "
"DataFrame.from_dict(OrderedDict(items)) may be used to "
"preserve the key order.",
FutureWarning, stacklevel=2)

Expand Down

0 comments on commit 6ec5002

Please sign in to comment.