featurebyte.Target.log¶
log( ) -> FrozenSeriesT
Description¶
Computes the natural logarithm of each element.
Returns¶
- FrozenSeriesT
Column or Feature with natural logarithm values
Examples¶
Compute natural logarithm values for a Column in a View:
>>> view = catalog.get_view("GROCERYINVOICE")
>>> view["AmountLog"] = view["Amount"].log()
>>> view.preview(5).filter(regex="Amount")
Amount AmountLog
0 10.68 2.368373
1 38.04 3.638638
2 1.99 0.688135
3 37.21 3.616578
4 1.20 0.182322
Compute natural logarithm values for a Feature: