Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
Merged
Prev Previous commit
Next Next commit
Skip tests failed due to unimplemented df structure
  • Loading branch information
akharche committed May 29, 2020
commit 8ee9364e8fc0c345df75ad14831cbe12d642ca16
5 changes: 5 additions & 0 deletions sdc/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def test_impl(A, B, c):
c = 2
pd.testing.assert_frame_equal(hpat_func(A, B, c), test_impl(A, B, c))

@dfRefactoringNotImplemented
def test_create_without_column_names(self):
def test_impl():
df = pd.DataFrame([100, 200, 300, 400, 200, 100])
Expand Down Expand Up @@ -1404,6 +1405,7 @@ def test_impl():
sdc_func = sdc.jit(test_impl)
pd.testing.assert_frame_equal(sdc_func(), test_impl())

@dfRefactoringNotImplemented
def test_df_loc_str(self):
def test_impl(df):
return df.loc['c']
Expand All @@ -1415,6 +1417,7 @@ def test_impl(df):
"C": ['3.1', '8.4', '7.1', '3.2', '1']}, index=idx)
pd.testing.assert_frame_equal(sdc_func(df), test_impl(df))

@dfRefactoringNotImplemented
def test_df_loc_no_idx(self):
def test_impl(df):
return df.loc[2]
Expand Down Expand Up @@ -2655,6 +2658,7 @@ def test_impl():
self.assertTrue(isinstance(two, np.ndarray))
self.assertTrue(isinstance(three, np.ndarray))

@dfRefactoringNotImplemented
def test_df_len(self):
def test_impl(df):
return len(df)
Expand Down Expand Up @@ -2705,6 +2709,7 @@ def test_impl():
hpat_func = self.jit(test_impl)
pd.testing.assert_series_equal(hpat_func(), test_impl())

@dfRefactoringNotImplemented
def test_df_iterate_over_columns2(self):
""" Verifies iteration over unboxed df columns using literal unroll. """
from sdc.hiframes.api import get_nan_mask
Expand Down