Skip to content

Commit

Permalink
Rename test_pandas to test_pandas_compat to enable breakpoint in PyCh…
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Oct 9, 2024
1 parent c66f12e commit ef24960
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ def test_table_from_frame(self):
self.assertEqual(names, ['index', '1', '2'])
self.assertEqual(types, [DiscreteVariable, ContinuousVariable, TimeVariable])

dvar = DiscreteVariable('x', values=tuple("dacb"))
cvar = ContinuousVariable('y')
table = table_from_frame(df, variables=[dvar, cvar, None])
self.assertIs(table.domain[0], dvar)
self.assertIs(table.domain[1], cvar)
self.assertIsInstance(table.domain[3], TimeVariable)

def test_table_from_frame_keep_ids(self):
""" Test if indices are correctly transferred to Table"""
df = OrangeDataFrame(Table('iris')[:6])
Expand Down

0 comments on commit ef24960

Please sign in to comment.