Skip to content

Commit 09456df

Browse files
jbrockmendelclaude
andcommitted
Fix CI: initialize Cython variable to silence --werror, sort whatsnew entries
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b3612f4 commit 09456df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

doc/source/whatsnew/v3.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ Performance improvements
123123
- Performance improvement in :func:`merge` with ``how="left"`` (:issue:`64370`)
124124
- Performance improvement in :func:`read_csv` with ``engine="c"`` when reading from binary file-like objects (e.g. PyArrow S3 file handles) by avoiding unnecessary ``TextIOWrapper`` wrapping (:issue:`46823`)
125125
- Performance improvement in :func:`read_html` and the Python CSV parser when ``thousands`` is set, fixing catastrophic regex backtracking on cells with many comma-separated digit groups followed by non-numeric text (:issue:`52619`)
126-
- Performance improvement in :func:`read_sas` for compressed SAS7BDAT files by reusing the decompression buffer instead of allocating per row (:issue:`47339`)
127126
- Performance improvement in :func:`read_sas` by reading page header fields directly in Cython instead of falling back to Python (:issue:`47339`)
127+
- Performance improvement in :func:`read_sas` for compressed SAS7BDAT files by reusing the decompression buffer instead of allocating per row (:issue:`47339`)
128128
- Performance improvement in :func:`util.hash_pandas_object` for PyArrow-backed string and binary types by using PyArrow's ``dictionary_encode`` instead of converting to NumPy for factorization (:issue:`48964`)
129129
- Performance improvement in :meth:`DataFrame.insert` when the number of blocks is small (:issue:`57641`)
130130
- Performance improvement in :meth:`DataFrame.loc` with non-unique masked index (:issue:`56759`)

pandas/_libs/sas.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ cdef class Parser:
411411
self.parser._current_row_in_file_index = self.current_row_in_file_index
412412

413413
cdef uint16_t read_uint16(self, int offset):
414-
cdef uint16_t val
414+
cdef uint16_t val = 0
415415
assert offset + 2 <= self.cached_page_len, "Out of bounds read"
416416
memcpy(&val, &self.cached_page[offset], sizeof(uint16_t))
417417
if self.need_byteswap:

0 commit comments

Comments
 (0)