Skip to content

Commit 97bd19b

Browse files
committed
One more linting error
1 parent 89677b0 commit 97bd19b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/core/sparse/frame.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
import pandas.core.ops as ops
2929
import pandas.core.common as com
3030

31-
from collections import Counter
32-
3331
_shared_doc_kwargs = dict(klass='SparseDataFrame')
3432

3533

@@ -75,9 +73,6 @@ def __init__(self, data=None, index=None, columns=None, default_kind=None,
7573
if columns is None:
7674
raise Exception("cannot pass a series w/o a name or columns")
7775
data = {columns[0]: data}
78-
elif isinstance(data, BlockManager):
79-
if default_fill_value is None:
80-
default_fill_value, _ = Counter([b.fill_value for b in data.blocks]).most_common(1)[0]
8176

8277
if default_fill_value is None:
8378
default_fill_value = np.nan

0 commit comments

Comments
 (0)