8000 Add comment · iskode/dataframe-api@2c4a846 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c4a846

Browse files
committed
Add comment
1 parent 58fee89 commit 2c4a846

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

protocol/pandas_implementation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ def get_offsets(self) -> Tuple[_PandasBuffer, Any]:
577577
ptr = 0
578578
offsets = [ptr]
579579
for v in values:
580+
# For missing values (in this case, `np.nan` values), we don't increment the pointer)
580581
if type(v) == str:
581582
b = v.encode(encoding="utf-8")
582583
ptr += len(b)

0 commit comments

Comments
 (0)
0