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

Skip to content

Commit afcb2b6

Browse files
committed
Remove mlab.rec_drop_fields
1 parent 7c7d859 commit afcb2b6

3 files changed

Lines changed: 2 additions & 19 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
@@ -46,6 +46,7 @@ in Matplotlib 2.2 has been removed. See below for a list:
4646
- `mlab.recs_join`
4747
- `mlab.rec_groupby`
4848
- `mlab.rec_keep_fields`
49+
- `mlab.rec_drop_fields`
4950
- `mlab.csvformat_factory`
5051
- `mlab.get_formatd`
5152
- `mlab.FormatDatetime` (use datetime.strftime instead)

lib/matplotlib/mlab.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,24 +1578,6 @@ def rec_append_fields(rec, names, arrs, dtypes=None):
15781578
return newrec
15791579

15801580

1581-
@cbook.deprecated("2.2")
1582-
def rec_drop_fields(rec, names):
1583-
"""
1584-
Return a new numpy record array with fields in *names* dropped.
1585-
"""
1586-
1587-
names = set(names)
1588-
1589-
newdtype = np.dtype([(name, rec.dtype[name]) for name in rec.dtype.names
1590-
if name not in names])
1591-
1592-
newrec = np.recarray(rec.shape, dtype=newdtype)
1593-
for field in newdtype.names:
1594-
newrec[field] = rec[field]
1595-
1596-
return newrec
1597-
1598-
15991581
@cbook.deprecated("2.2")
16001582
def csv2rec(fname, comments='#', skiprows=0, checkrows=0, delimiter=',',
16011583
converterd=None, names=None, missing='', missingd=None,

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
frange,
236236
identity, ispower2, isvector, l1norm,
237237
l2norm, log2, movavg, norm_flat,
238-
rec_append_fields, rec_drop_fields, rms_flat,
238+
rec_append_fields, rms_flat,
239239
window_hanning, window_none)
240240

241241
from matplotlib import cbook, mlab, pyplot as plt

0 commit comments

Comments
 (0)