Skip to content

Commit 24df602

Browse files
authored
CLN: clean up pandas core arrays (#36569)
1 parent f34a56b commit 24df602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/sparse/array.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def from_spmatrix(cls, data):
452452

453453
return cls._simple_new(arr, index, dtype)
454454

455-
def __array__(self, dtype=None, copy=True) -> np.ndarray:
455+
def __array__(self, dtype=None) -> np.ndarray:
456456
fill_value = self.fill_value
457457

458458
if self.sp_index.ngaps == 0:
@@ -1515,7 +1515,7 @@ def _formatter(self, boxed=False):
15151515
SparseArray._add_unary_ops()
15161516

15171517

1518-
def make_sparse(arr: np.ndarray, kind="block", fill_value=None, dtype=None, copy=False):
1518+
def make_sparse(arr: np.ndarray, kind="block", fill_value=None, dtype=None):
15191519
"""
15201520
Convert ndarray to sparse format
15211521

0 commit comments

Comments
 (0)