cape_privacy.spark.transformations.rounding#
NumericRounding Objects#
class NumericRounding(base.Transformation)
Reduce the precision of a numeric series
Round each value in the series to the given number of digits.
Attributes:
dtypes
dtypes.Numerics - series type.precision
int - set the number of digits.
DateTruncation Objects#
class DateTruncation(base.Transformation)
Reduce the precision of a date series
Truncate each date in a series to the unit (year or month) specified by frequency.
Attributes:
frequency
string - expect to be 'year' or 'month'