Skip to content

Commit b7de358

Browse files
committed
flake8 fixes
1 parent ea87a7f commit b7de358

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

doc/source/whatsnew/v0.18.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Deprecations
248248
Performance Improvements
249249
~~~~~~~~~~~~~~~~~~~~~~~~
250250

251-
- Improved speed of SAS reader (PR 12656)
251+
- Improved speed of SAS reader (:issue:`12656`)
252252

253253
- Improved performance of ``DataFrame.to_sql`` when checking case sensitivity for tables. Now only checks if table has been created correctly when table name is not lower case. (:issue:`12876`)
254254

pandas/io/sas/sas7bdat.py

-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ def _process_columntext_subheader(self, offset, length):
413413
self.column_names_strings.append(cname)
414414

415415
if len(self.column_names_strings) == 1:
416-
column_name = self.column_names_strings[0]
417416
compression_literal = ""
418417
for cl in const.compression_literals:
419418
if cl in cname_raw:

pandas/io/sas/sas_constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
encoding_names = {29: "latin1", 20: "utf-8", 33: "cyrillic", 60: "wlatin2",
102102
61: "wcyrillic", 62: "wlatin1", 90: "ebcdic870"}
103103

104+
104105
class index:
105106
rowSizeIndex = 0
106107
columnSizeIndex = 1

pandas/io/tests/sas/test_sas7bdat.py

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_12659():
103103
df0 = df0.astype(np.float64)
104104
tm.assert_frame_equal(df, df0)
105105

106+
106107
def test_airline():
107108
dirpath = tm.get_data_path()
108109
fname = os.path.join(dirpath, "airline.sas7bdat")

0 commit comments

Comments
 (0)