Skip to content

Commit a5719e8

Browse files
CLN: misc cleanups from LGTM
1 parent 041dc44 commit a5719e8

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

pandas/_testing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,16 +248,10 @@ def write_to_compressed(compression, path, data, dest="test"):
248248
ValueError : An invalid compression value was passed in.
249249
"""
250250
if compression == "zip":
251-
import zipfile
252-
253251
compress_method = zipfile.ZipFile
254252
elif compression == "gzip":
255-
import gzip
256-
257253
compress_method = gzip.GzipFile
258254
elif compression == "bz2":
259-
import bz2
260-
261255
compress_method = bz2.BZ2File
262256
elif compression == "xz":
263257
compress_method = _get_lzma_file(lzma)

pandas/core/frame.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8216,7 +8216,6 @@ def blk_func(values):
82168216
result = result.iloc[0].rename(None)
82178217
return result
82188218

8219-
data = self
82208219
if numeric_only is None:
82218220
data = self
82228221
values = data.values

pandas/core/series.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ def __init__(
276276
"Cannot construct a Series from an ndarray with "
277277
"compound dtype. Use DataFrame instead."
278278
)
279-
pass
280279
elif isinstance(data, ABCSeries):
281280
if index is None:
282281
index = data.index

0 commit comments

Comments
 (0)