Skip to content

Commit f850a13

Browse files
committed
linting
1 parent 2402e19 commit f850a13

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/nested_pandas/nestedframe/io.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ def read_parquet(
148148
# Convert to NestedFrame
149149
# not zero-copy, but reduce memory pressure via the self_destruct kwarg
150150
# https://arrow.apache.org/docs/python/pandas.html#reducing-memory-use-in-table-to-pandas
151-
df = NestedFrame(
152-
table.to_pandas(types_mapper=pd.ArrowDtype, split_blocks=True, self_destruct=True)
153-
)
151+
df = NestedFrame(table.to_pandas(types_mapper=pd.ArrowDtype, split_blocks=True, self_destruct=True))
154152
del table
155153
# Attempt to cast struct columns to NestedDTypes
156154
df = _cast_struct_cols_to_nested(df, reject_nesting)

tests/nested_pandas/e2e_tests/test_issue89.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Based on https://github.com/lincc-frameworks/nested-pandas/issues/89"""
2-
from pyarrow.dataset import partitioning
32

43
import nested_pandas as npd
54
import numpy as np

tests/nested_pandas/nestedframe/test_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
import pyarrow as pa
66
import pyarrow.parquet as pq
77
import pytest
8-
from upath import UPath
9-
108
from nested_pandas import read_parquet
119
from nested_pandas.datasets import generate_data
1210
from pandas.testing import assert_frame_equal
11+
from upath import UPath
1312

1413

1514
def test_read_parquet():

0 commit comments

Comments
 (0)