Skip to content

Commit 1b0bd56

Browse files
committed
Import pandas in test_sling_class.py for Arrow streaming tests
1 parent 59546c1 commit 1b0bd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sling/tests/test_sling_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from decimal import Decimal
77
from datetime import datetime
88
from pathlib import Path
9+
import pandas as pd
910
from sling.bin import SLING_BIN
1011
from sling import Sling, SlingError, JsonEncoder, Mode
1112

@@ -677,7 +678,6 @@ def test_roundtrip_arrow_file_to_stream(self, temp_dir, sample_data):
677678
@pytest.mark.skipif(not HAS_PANDAS, reason="Pandas is not installed")
678679
def test_stream_arrow_from_pandas_input(self, temp_dir, sample_data):
679680
"""Test writing pandas DataFrame to a file and streaming it back as Arrow"""
680-
import pandas as pd
681681
df = pd.DataFrame(sample_data)
682682

683683
# Write pandas DataFrame to a temporary Arrow file

0 commit comments

Comments
 (0)