File tree 1 file changed +4
-4
lines changed
packages/python/plotly/plotly/tests/test_core/test_px
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 24
24
(lambda df : df ["A" ].hist (), lambda df : px .histogram (df ["A" ])),
25
25
],
26
26
)
27
- @pytest .mark .skipif (
28
- not hasattr (pd .options .plotting , "backend" ),
29
- reason = "Currently installed pandas doesn't support plotting backends." ,
30
- )
31
27
def test_pandas_equiv (pandas_fn , px_fn ):
32
28
pd .options .plotting .backend = "plotly"
33
29
df = pd .DataFrame (np .random .randn (100 , 4 ), columns = list ("ABCD" )).cumsum ()
34
30
assert pandas_fn (df ) == px_fn (df )
35
31
36
32
33
+ @pytest .mark .skipif (
34
+ not hasattr (pd .options .plotting , "backend" ),
35
+ reason = "Currently installed pandas doesn't support plotting backends." ,
36
+ )
37
37
def test_pandas_example ():
38
38
pd .options .plotting .backend = "plotly"
39
39
ts = pd .Series (np .random .randn (1000 ), index = pd .date_range ("1/1/2000" , periods = 1000 ))
You can’t perform that action at this time.
0 commit comments