@@ -274,13 +274,16 @@ def test_encode_customdata_datetime_series(self):
274274 )
275275
276276 def test_encode_customdata_datetime_homogenous_dataframe (self ):
277- df = pd .DataFrame (dict (
278- t1 = pd .to_datetime (["2010-01-01" , "2010-01-02" ]),
279- t2 = pd .to_datetime (["2011-01-01" , "2011-01-02" ]),
280- ))
277+ df = pd .DataFrame (
278+ dict (
279+ t1 = pd .to_datetime (["2010-01-01" , "2010-01-02" ]),
280+ t2 = pd .to_datetime (["2011-01-01" , "2011-01-02" ]),
281+ )
282+ )
281283 # 2D customdata
282284 fig = Figure (
283- Scatter (x = df ["t1" ], customdata = df [["t1" , "t2" ]]), layout = dict (template = "none" )
285+ Scatter (x = df ["t1" ], customdata = df [["t1" , "t2" ]]),
286+ layout = dict (template = "none" ),
284287 )
285288 fig_json = _json .dumps (
286289 fig , cls = utils .PlotlyJSONEncoder , separators = ("," , ":" ), sort_keys = True
@@ -294,10 +297,9 @@ def test_encode_customdata_datetime_homogenous_dataframe(self):
294297 )
295298
296299 def test_encode_customdata_datetime_inhomogenous_dataframe (self ):
297- df = pd .DataFrame (dict (
298- t = pd .to_datetime (["2010-01-01" , "2010-01-02" ]),
299- v = np .arange (2 ),
300- ))
300+ df = pd .DataFrame (
301+ dict (t = pd .to_datetime (["2010-01-01" , "2010-01-02" ]), v = np .arange (2 ),)
302+ )
301303 # 2D customdata
302304 fig = Figure (
303305 Scatter (x = df ["t" ], customdata = df [["t" , "v" ]]), layout = dict (template = "none" )
@@ -337,8 +339,8 @@ def test_numpy_datetime64(self):
337339 j1 = _json .dumps (a , cls = utils .PlotlyJSONEncoder )
338340 assert (
339341 j1 == '["2011-07-11T00:00:00.000000000", '
340- '"2011-07-12T00:00:00.000000000", '
341- '"2011-07-13T00:00:00.000000000"]'
342+ '"2011-07-12T00:00:00.000000000", '
343+ '"2011-07-13T00:00:00.000000000"]'
342344 )
343345
344346 def test_pil_image_encoding (self ):
0 commit comments