Skip to content

Commit bad9d3e

Browse files
committed
closes #24353
1 parent 14c33b0 commit bad9d3e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v0.24.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ Other Enhancements
372372
- :meth:`DataFrame.to_stata` and :class:`pandas.io.stata.StataWriter117` can write mixed sting columns to Stata strl format (:issue:`23633`)
373373
- :meth:`DataFrame.between_time` and :meth:`DataFrame.at_time` have gained the an ``axis`` parameter (:issue:`8839`)
374374
- :class:`IntervalIndex` has gained the :attr:`~IntervalIndex.is_overlapping` attribute to indicate if the ``IntervalIndex`` contains any overlapping intervals (:issue:`23309`)
375+
- :meth:`eval()` now supports use of `floor` and `ceil` in the expression
375376

376377
.. _whatsnew_0240.api_breaking:
377378

pandas/core/computation/ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
_unary_math_ops = ('sin', 'cos', 'exp', 'log', 'expm1', 'log1p',
2525
'sqrt', 'sinh', 'cosh', 'tanh', 'arcsin', 'arccos',
26-
'arctan', 'arccosh', 'arcsinh', 'arctanh', 'abs', 'log10')
26+
'arctan', 'arccosh', 'arcsinh', 'arctanh', 'abs', 'log10', 'floor', 'ceil')
2727
_binary_math_ops = ('arctan2',)
2828
_mathops = _unary_math_ops + _binary_math_ops
2929

0 commit comments

Comments
 (0)