Skip to content

Commit b2cffb4

Browse files
committed
Remove redundant functions
1 parent c8bfe66 commit b2cffb4

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

pandas/core/algorithms.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -909,18 +909,12 @@ def checked_add_with_arr(arr, b, arr_mask=None, b_mask=None):
909909
------
910910
OverflowError if any x + y exceeds the maximum or minimum int64 value.
911911
"""
912-
def _broadcast(arr_or_scalar, shape):
913-
"""
914-
Helper function to broadcast arrays / scalars to the desired shape.
915-
"""
916-
return np.broadcast_to(arr_or_scalar, shape)
917-
918912
# For performance reasons, we broadcast 'b' to the new array 'b2'
919913
# so that it has the same size as 'arr'.
920-
b2 = _broadcast(b, arr.shape)
914+
b2 = np.broadcast_to(b, arr.shape)
921915
if b_mask is not None:
922916
# We do the same broadcasting for b_mask as well.
923-
b2_mask = _broadcast(b_mask, arr.shape)
917+
b2_mask = np.broadcast_to(b_mask, arr.shape)
924918
else:
925919
b2_mask = None
926920

pandas/plotting/_core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,9 +1154,6 @@ def _plot(cls, ax, x, y, style=None, column_num=None,
11541154
res = [rect]
11551155
return res
11561156

1157-
def _add_legend_handle(self, handle, label, index=None):
1158-
LinePlot._add_legend_handle(self, handle, label, index=index)
1159-
11601157
def _post_plot_logic(self, ax, data):
11611158
LinePlot._post_plot_logic(self, ax, data)
11621159

0 commit comments

Comments
 (0)