Skip to content

Commit 53a206b

Browse files
committed
BUG: iloc back to values for assignment. Closes #6602.
1 parent 45009f0 commit 53a206b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/util/testing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -973,15 +973,15 @@ def makeMissingCustomDataframe(nrows, ncols, density=.9, random_state=None,
973973
r_idx_type=r_idx_type)
974974

975975
i, j = _create_missing_idx(nrows, ncols, density, random_state)
976-
df.iloc[i, j] = np.nan
976+
df.values[i, j] = np.nan
977977
return df
978978

979979

980980
def makeMissingDataframe(density=.9, random_state=None):
981981
df = makeDataFrame()
982982
i, j = _create_missing_idx(*df.shape, density=density,
983983
random_state=random_state)
984-
df.iloc[i, j] = np.nan
984+
df.values[i, j] = np.nan
985985
return df
986986

987987

0 commit comments

Comments
 (0)