@@ -214,17 +214,12 @@ def make_block(self, values, placement=None, ndim=None):
214214
215215 return make_block (values , placement = placement , ndim = ndim )
216216
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 ):
219218 """ 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 )
224219 if placement is None :
225220 placement = self .mgr_locs
226221 return make_block (values , placement = placement , ndim = ndim ,
227- klass = self .__class__ , dtype = dtype )
222+ klass = self .__class__ )
228223
229224 def __repr__ (self ):
230225 # don't want to print out all of the items here
@@ -2246,13 +2241,6 @@ def is_view(self):
22462241 # check the ndarray values of the DatetimeIndex values
22472242 return self .values ._data .base is not None
22482243
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-
22562244 def get_values (self , dtype = None ):
22572245 """
22582246 Returns an ndarray of values.
@@ -3041,8 +3029,7 @@ def get_block_type(values, dtype=None):
30413029 return cls
30423030
30433031
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 ):
30463033 # Ensure that we don't allow PandasArray / PandasDtype in internals.
30473034 # For now, blocks should be backed by ndarrays when possible.
30483035 if isinstance (values , ABCPandasArray ):
@@ -3053,10 +3040,6 @@ def make_block(values, placement, klass=None, ndim=None, dtype=None,
30533040 if isinstance (dtype , PandasDtype ):
30543041 dtype = dtype .numpy_dtype
30553042
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 )
30603043 if klass is None :
30613044 dtype = dtype or values .dtype
30623045 klass = get_block_type (values , dtype )
0 commit comments