File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/python/plotly/plotly/tests/test_core/test_px Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424 (lambda df : df ["A" ].hist (), lambda df : px .histogram (df ["A" ])),
2525 ],
2626)
27- @pytest .mark .skipif (
28- not hasattr (pd .options .plotting , "backend" ),
29- reason = "Currently installed pandas doesn't support plotting backends." ,
30- )
3127def test_pandas_equiv (pandas_fn , px_fn ):
3228 pd .options .plotting .backend = "plotly"
3329 df = pd .DataFrame (np .random .randn (100 , 4 ), columns = list ("ABCD" )).cumsum ()
3430 assert pandas_fn (df ) == px_fn (df )
3531
3632
33+ @pytest .mark .skipif (
34+ not hasattr (pd .options .plotting , "backend" ),
35+ reason = "Currently installed pandas doesn't support plotting backends." ,
36+ )
3737def test_pandas_example ():
3838 pd .options .plotting .backend = "plotly"
3939 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