Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c7d859

Browse files
committed
Remove mlab.rec_keep_fields
1 parent 7474746 commit 7c7d859

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

doc/api/next_api_changes/2018-09-18-DS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ in Matplotlib 2.2 has been removed. See below for a list:
4545
- `mlab.rec_join`
4646
- `mlab.recs_join`
4747
- `mlab.rec_groupby`
48+
- `mlab.rec_keep_fields`
4849
- `mlab.csvformat_factory`
4950
- `mlab.get_formatd`
5051
- `mlab.FormatDatetime` (use datetime.strftime instead)

lib/matplotlib/mlab.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,22 +1596,6 @@ def rec_drop_fields(rec, names):
15961596
return newrec
15971597

15981598

1599-
@cbook.deprecated("2.2")
1600-
def rec_keep_fields(rec, names):
1601-
"""
1602-
Return a new numpy record array with only fields listed in names
1603-
"""
1604-
1605-
if isinstance(names, str):
1606-
names = names.split(',')
1607-
1608-
arrays = []
1609-
for name in names:
1610-
arrays.append(rec[name])
1611-
1612-
return np.rec.fromarrays(arrays, names=names)
1613-
1614-
16151599
@cbook.deprecated("2.2")
16161600
def csv2rec(fname, comments='#', skiprows=0, checkrows=0, delimiter=',',
16171601
converterd=None, names=None, missing='', missingd=None,

0 commit comments

Comments
 (0)