Skip to content

Commit 385f6d3

Browse files
committed
Merge branch 'sparsedepr' of https://github.com/Dr-Irv/pandas into sparsedepr
2 parents ea7b959 + def8d28 commit 385f6d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,17 @@ def __getattr__(self, item):
322322
datetime = __Datetime().datetime
323323

324324
class __SparseArray(pandas.core.arrays.sparse.SparseArray):
325-
326325
def __warnSparseArray(self):
327326
import warnings
327+
328328
warnings.warn(
329329
"The pandas.SparseArray class is deprecated "
330330
"and will be removed from pandas in a future version. "
331331
"Use pandas.arrays.SparseArray instead.",
332332
FutureWarning,
333333
stacklevel=3,
334334
)
335-
335+
336336
def __init__(
337337
self,
338338
data,
@@ -345,10 +345,10 @@ def __init__(
345345
):
346346
self.__warnSparseArray()
347347
super().__init__(data, sparse_index, index, fill_value, kind, dtype, copy)
348-
348+
349349
def __getattr__(self, name):
350350
return super().__getattribute__(name)
351-
351+
352352
SparseArray = __SparseArray
353353

354354
# module level doc-string

0 commit comments

Comments
 (0)