Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Merge c298806 into ab89dd3
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav-Smirnov committed Aug 8, 2019
2 parents ab89dd3 + c298806 commit 28ab567
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions hpat/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def inner_get_column(df):

class TestDataFrame(unittest.TestCase):

@unittest.skip('Error - fix needed\n')
def test_create1(self):
def test_impl(n):
df = pd.DataFrame({'A': np.ones(n), 'B': np.random.ranf(n)})
Expand Down Expand Up @@ -131,7 +130,6 @@ def test_impl(n):
np.testing.assert_allclose(dist_sum(hres.A.sum()), res.A.sum())
np.testing.assert_allclose(dist_sum(hres.B.sum()), res.B.sum())

@unittest.skip('Error - fix needed\n')
def test_len1(self):
def test_impl(n):
df = pd.DataFrame({'A': np.ones(n, np.int64), 'B': np.random.ranf(n)})
Expand All @@ -154,7 +152,6 @@ def test_impl(n):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_column_getitem1(self):
def test_impl(n):
df = pd.DataFrame({'A': np.ones(n), 'B': np.random.ranf(n)})
Expand Down Expand Up @@ -472,7 +469,6 @@ def test_impl(n):
self.assertEqual(count_array_REPs(), 0)
self.assertEqual(count_parfor_REPs(), 0)

@unittest.skip('Error - fix needed\n')
def test_df_apply(self):
def test_impl(n):
df = pd.DataFrame({'A': np.arange(n), 'B': np.arange(n)})
Expand All @@ -483,7 +479,6 @@ def test_impl(n):
hpat_func = hpat.jit(test_impl)
np.testing.assert_almost_equal(hpat_func(n), test_impl(n))

@unittest.skip('Error - fix needed\n')
def test_df_apply_branch(self):
def test_impl(n):
df = pd.DataFrame({'A': np.arange(n), 'B': np.arange(n)})
Expand All @@ -494,7 +489,6 @@ def test_impl(n):
hpat_func = hpat.jit(test_impl)
np.testing.assert_almost_equal(hpat_func(n), test_impl(n))

@unittest.skip('Error - fix needed\n')
def test_df_describe(self):
def test_impl(n):
df = pd.DataFrame({'A': np.arange(0, n, 1, np.float32),
Expand Down Expand Up @@ -582,6 +576,7 @@ def test_impl(df):
hpat_func = hpat.jit(test_impl)
self.assertTrue((hpat_func(df) == sorted_df.B.values).all())

@unittest.skip('Error - fix needed; issue is related to __pycache__\n')
def test_sort_parallel_single_col(self):
# create `kde.parquet` file
ParquetGenerator.gen_kde_pq()
Expand All @@ -604,6 +599,7 @@ def test_impl():
# restore global val
hpat.hiframes.sort.MIN_SAMPLES = save_min_samples

@unittest.skip('Error - fix needed; issue is related to __pycache__\n')
def test_sort_parallel(self):
# create `kde.parquet` file
ParquetGenerator.gen_kde_pq()
Expand Down Expand Up @@ -789,7 +785,6 @@ def test_impl(n):
n = 11
pd.testing.assert_series_equal(hpat_func(n), test_impl(n))

@unittest.skip('Error - fix needed\n')
def test_count1(self):
# TODO: non-numeric columns should be ignored automatically
def test_impl(n):
Expand Down Expand Up @@ -948,7 +943,6 @@ def test_impl(df):
df = pd.DataFrame({'A': np.arange(n), 'B': np.arange(n)**2})
pd.testing.assert_frame_equal(hpat_func(df), test_impl(df))

@unittest.skip('Error - fix needed\n')
def test_append1(self):
def test_impl(df, df2):
return df.append(df2, ignore_index=True)
Expand Down

0 comments on commit 28ab567

Please sign in to comment.