We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e1ea81 commit a59cfa7Copy full SHA for a59cfa7
pandas/computation/align.py
@@ -95,8 +95,7 @@ def _align_core(terms):
95
term_axis_size = len(ti.axes[axis])
96
reindexer_size = len(reindexer)
97
98
- with np.errstate(divide='ignore'):
99
- ordm = np.log10(abs(reindexer_size - term_axis_size))
+ ordm = np.log10(max(1, abs(reindexer_size - term_axis_size)))
100
if ordm >= 1 and reindexer_size >= 10000:
101
warnings.warn('Alignment difference on axis {0} is larger '
102
'than an order of magnitude on term {1!r}, '
0 commit comments