@@ -202,30 +202,6 @@ def test_getattr_subframe_alias_access(self):
202202 assert "resid100" in adf_main .df .columns
203203 np .testing .assert_array_equal (result , df_sub ["residual" ] * 100 )
204204
205- def test_getattr_chained_subframe_access (self ):
206- df_main = pd .DataFrame ({"idx" : [0 , 1 , 2 ]})
207- df_sub = pd .DataFrame ({"idx" : [0 , 1 , 2 ], "x" : [5 , 6 , 7 ]})
208- adf_main = AliasDataFrame (df_main )
209- adf_sub = AliasDataFrame (df_sub )
210- adf_sub .add_alias ("cutX" , "x > 5" )
211-
212- adf_main .register_subframe ("sub" , adf_sub , index_columns = "idx" )
213- adf_sub .materialize_alias ("cutX" )
214-
215- # This should fail until we implement proper attribute forwarding
216- with self .assertRaises (AttributeError ):
217- _ = adf_main .sub .cutX
218-
219- def test_getattr_column_and_alias_access0 (self ):
220- df = pd .DataFrame ({"x" : np .arange (10 )})
221- adf = AliasDataFrame (df )
222- adf .add_alias ("y" , "x * 2" )
223- adf .materialize_alias ("y" )
224-
225- # Check column access
226- assert np .all (adf .x == df ["x" ]) # explicit value check
227- # Check alias access
228- assert np .all (adf .y == df ["x" ] * 2 ) # explicit value check
229205
230206
231207 def test_getattr_chained_subframe_access (self ):
0 commit comments