def test_delta_depth(self): df1 = pl.DataFrame({"depth": [0.0, 0.5, 1.0]}) v = geo.delta_depth(df1) df = pl.DataFrame({ "depth": [0.0, 0.5, 1.0], "delta_depth": [0.0, 0.5, 0.5] }) assert v.frame_equal(df, null_equal=True)
def test_delta_depth(self): df1 = pd.DataFrame({"depth": [0, 0.5, 1]}) v = geo.delta_depth(df1) df = pd.DataFrame({"depth": [0, 0.5, 1], "delta_depth": [0, 0.5, 0.5]}) assert_frame_equal(v, df)