We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfe07ef commit 351241cCopy full SHA for 351241c
1 file changed
tests/test_roc.py
@@ -45,8 +45,11 @@ def test_roc_iglu_r_compatible(scenario):
45
46
# accommodating R implementation format
47
result_df.drop(columns=["time"], inplace=True)
48
- if result_df.shape[0] < expected_df.shape[0]:
49
- expected_df = expected_df.iloc[: result_df.shape[0]]
+ # drop all nan values from both dataframes to remove dependencies on CGMS2DayByDay "last day" error
+ result_df = result_df.dropna().reset_index(drop=True)
50
+ expected_df = expected_df.dropna().reset_index(drop=True)
51
+ # if result_df.shape[0] < expected_df.shape[0]:
52
+ # expected_df = expected_df.iloc[: result_df.shape[0]]
53
54
# Compare DataFrames with precision to 0.001 for numeric columns
55
pd.testing.assert_frame_equal(
0 commit comments