We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed5896 commit 2335d10Copy full SHA for 2335d10
pandas/tests/test_frame.py
@@ -1327,6 +1327,11 @@ def test_irow_icol_duplicates(self):
1327
xp = df.ix[:, [0]]
1328
assert_frame_equal(rs, xp)
1329
1330
+ def test_icol_sparse_propegate_fill_value(self):
1331
+ from pandas.sparse.api import SparseDataFrame
1332
+ df=SparseDataFrame({'A' : [999,1]},default_fill_value=999)
1333
+ self.assertTrue( len(df['A'].sp_values) == len(df.icol(0).sp_values))
1334
+
1335
def test_iget_value(self):
1336
for i, row in enumerate(self.frame.index):
1337
for j, col in enumerate(self.frame.columns):
0 commit comments