Skip to content

Commit ef79321

Browse files
y-pwesm
y-p
authored andcommitted
CLN: remove deprecated names argument to df.from_records
1 parent a27ee15 commit ef79321

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/core/frame.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ def to_dict(self, outtype='dict'):
834834

835835
@classmethod
836836
def from_records(cls, data, index=None, exclude=None, columns=None,
837-
names=None, coerce_float=False):
837+
coerce_float=False):
838838
"""
839839
Convert structured or record ndarray to DataFrame
840840
@@ -866,13 +866,6 @@ def from_records(cls, data, index=None, exclude=None, columns=None,
866866
raise ValueError('Non-unique columns not yet supported in '
867867
'from_records')
868868

869-
if names is not None: # pragma: no cover
870-
columns = names
871-
warnings.warn("'names' parameter to DataFrame.from_records is "
872-
"being renamed to 'columns', 'names' will be "
873-
"removed in 0.8.0",
874-
FutureWarning)
875-
876869
if isinstance(data, (np.ndarray, DataFrame, dict)):
877870
columns, sdict = _rec_to_dict(data)
878871
else:

0 commit comments

Comments
 (0)