Skip to content

Commit ee06b49

Browse files
committed
black
1 parent a037099 commit ee06b49

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/python/plotly/plotly/figure_factory/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
def create_choropleth(*args, **kwargs):
3636
raise ImportError("Please install pandas to use `create_choropleth`")
37+
3738
def create_hexbin_mapbox(*args, **kwargs):
3839
raise ImportError("Please install pandas to use `create_hexbin_mapbox`")
3940

packages/python/plotly/plotly/figure_factory/_hexbin_mapbox.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ def zoom(mapPx, worldPx, fraction):
5353

5454
return min(latZoom, lngZoom, ZOOM_MAX)
5555

56-
def _compute_hexbin(
57-
x, y, x_range, y_range, color, nx, agg_func, min_count
58-
):
56+
57+
def _compute_hexbin(x, y, x_range, y_range, color, nx, agg_func, min_count):
5958
"""
6059
Computes the aggregation at hexagonal bin level.
6160
Also defines the coordinates of the hexagons for plotting.
@@ -214,6 +213,7 @@ def _compute_hexbin(
214213

215214
return hxs, hys, centers, agreggated_value
216215

216+
217217
def _compute_wgs84_hexbin(
218218
lat=None,
219219
lon=None,
@@ -273,7 +273,7 @@ def _compute_wgs84_hexbin(
273273

274274
hxs, hys, centers, agreggated_value = _compute_hexbin(
275275
x, y, x_range, y_range, color, nx, agg_func, min_count
276-
)
276+
)
277277

278278
# Convert back to lat-lon
279279
hexagons_lats, hexagons_lons = _project_wgs84_to_latlon(hxs, hys)
@@ -426,6 +426,7 @@ def create_hexbin_mapbox(
426426
height=height,
427427
)
428428

429+
429430
create_hexbin_mapbox.__doc__ = make_docstring(
430431
create_hexbin_mapbox,
431432
override_dict=dict(
@@ -435,5 +436,5 @@ def create_hexbin_mapbox(
435436
"Numpy array aggregator, it must take as input a 1D array",
436437
"and output a scalar value.",
437438
],
438-
)
439+
),
439440
)

0 commit comments

Comments
 (0)