@@ -619,7 +619,7 @@ def append_special_case(df_in, args_in, args_expect, df_expect):
619
619
)
620
620
621
621
# df has columns named after every special string
622
- df = pd .DataFrame (dict (variable = [1 , 2 ], index = [3 , 4 ], value = [5 , 6 ]), index = [7 , 8 ])
622
+ df = pd .DataFrame (dict (index = [1 , 2 ], value = [3 , 4 ], variable = [5 , 6 ]), index = [7 , 8 ])
623
623
append_special_case (
624
624
df_in = df ,
625
625
args_in = dict (x = None , y = None , color = None ),
@@ -628,7 +628,7 @@ def append_special_case(df_in, args_in, args_expect, df_expect):
628
628
dict (
629
629
_index = [7 , 8 , 7 , 8 , 7 , 8 ],
630
630
_value = [1 , 2 , 3 , 4 , 5 , 6 ],
631
- _variable = ["variable " , "variable " , "index " , "index " , "value " , "value " ],
631
+ _variable = ["index " , "index " , "value " , "value " , "variable " , "variable " ],
632
632
)
633
633
),
634
634
)
@@ -647,7 +647,7 @@ def append_special_case(df_in, args_in, args_expect, df_expect):
647
647
)
648
648
649
649
# everything is called value, OMG
650
- df = pd .DataFrame (dict (value = [1 , 2 ], b = [3 , 4 ]), index = [7 , 8 ])
650
+ df = pd .DataFrame (dict (b = [1 , 2 ], value = [3 , 4 ]), index = [7 , 8 ])
651
651
df .index .name = "value"
652
652
df .columns .name = "value"
653
653
append_special_case (
@@ -658,7 +658,7 @@ def append_special_case(df_in, args_in, args_expect, df_expect):
658
658
dict (
659
659
index = [7 , 8 , 7 , 8 ],
660
660
_value = [1 , 2 , 3 , 4 ],
661
- variable = ["value " , "value " , "b " , "b" ],
661
+ variable = ["b " , "b " , "value " , "value" , ],
662
662
)
663
663
),
664
664
)
0 commit comments