#NEWLINE# def test_3dskims( data ) : #NEWLINE# #INDENT# skims = skim . Skims ( ) #NEWLINE# skims . set_keys ( 'taz_l' , 'taz_r' ) #NEWLINE# sk = skim . Skim ( data ) #NEWLINE# sk2 = skim . Skim ( data ) #NEWLINE# skims . set_3d ( 'SOV' , 'AM' , sk ) #NEWLINE# skims . set_3d ( 'SOV' , 'PM' , sk2 ) #NEWLINE# skims3d = skim . Skims3D ( skims , 'period' ) #NEWLINE# df = pd . DataFrame ( { #NEWLINE# #INDENT# 'taz_l' : [ 1 , 9 , 4 ] , #NEWLINE# 'taz_r' : [ 2 , 3 , 7 ] , #NEWLINE# 'period' : [ 'AM' , 'PM' , 'AM' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# skims3d . set_df ( df ) #NEWLINE# pdt . assert_series_equal ( skims3d [ 'SOV' ] , pd . Series ( [ 12 , 93 , 47 ] , index = [ 0 , 1 , 2 ] ) , check_dtype = False )