@@ -214,17 +214,12 @@ def make_block(self, values, placement=None, ndim=None):
214
214
215
215
return make_block (values , placement = placement , ndim = ndim )
216
216
217
- def make_block_same_class (self , values , placement = None , ndim = None ,
218
- dtype = None ):
217
+ def make_block_same_class (self , values , placement = None , ndim = None ):
219
218
""" Wrap given values in a block of same type as self. """
220
- if dtype is not None :
221
- # issue 19431 fastparquet is passing this
222
- warnings .warn ("dtype argument is deprecated, will be removed "
223
- "in a future release." , FutureWarning )
224
219
if placement is None :
225
220
placement = self .mgr_locs
226
221
return make_block (values , placement = placement , ndim = ndim ,
227
- klass = self .__class__ , dtype = dtype )
222
+ klass = self .__class__ )
228
223
229
224
def __repr__ (self ):
230
225
# don't want to print out all of the items here
@@ -2246,13 +2241,6 @@ def is_view(self):
2246
2241
# check the ndarray values of the DatetimeIndex values
2247
2242
return self .values ._data .base is not None
2248
2243
2249
- def copy (self , deep = True ):
2250
- """ copy constructor """
2251
- values = self .values
2252
- if deep :
2253
- values = values .copy ()
2254
- return self .make_block_same_class (values )
2255
-
2256
2244
def get_values (self , dtype = None ):
2257
2245
"""
2258
2246
Returns an ndarray of values.
@@ -3041,8 +3029,7 @@ def get_block_type(values, dtype=None):
3041
3029
return cls
3042
3030
3043
3031
3044
- def make_block (values , placement , klass = None , ndim = None , dtype = None ,
3045
- fastpath = None ):
3032
+ def make_block (values , placement , klass = None , ndim = None , dtype = None ):
3046
3033
# Ensure that we don't allow PandasArray / PandasDtype in internals.
3047
3034
# For now, blocks should be backed by ndarrays when possible.
3048
3035
if isinstance (values , ABCPandasArray ):
@@ -3053,10 +3040,6 @@ def make_block(values, placement, klass=None, ndim=None, dtype=None,
3053
3040
if isinstance (dtype , PandasDtype ):
3054
3041
dtype = dtype .numpy_dtype
3055
3042
3056
- if fastpath is not None :
3057
- # GH#19265 pyarrow is passing this
3058
- warnings .warn ("fastpath argument is deprecated, will be removed "
3059
- "in a future release." , FutureWarning )
3060
3043
if klass is None :
3061
3044
dtype = dtype or values .dtype
3062
3045
klass = get_block_type (values , dtype )
0 commit comments