Skip to content

Commit d755d08

Browse files
committed
Add comment on default row names
1 parent be97c4c commit d755d08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rdata/conversion/to_r.py

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def dataframe_constructor(
126126
if isinstance(index, pd.RangeIndex):
127127
assert isinstance(index.start, int)
128128
if index.start == 1 and index.stop == data.shape[0] + 1 and index.step == 1:
129+
# Construct default row names stored as [R_INT_NA, -len]
129130
row_names = np.ma.array(
130131
data=[R_INT_NA, -data.shape[0]],
131132
mask=[True, False],

0 commit comments

Comments
 (0)