I have a pandas data frame with mixed types
I would like to increase the floating point precision of the columns with float64 to 500 point precision.
Is there an easy solution using decimal library? I'm having some troubles with the current methods.
from decimal import * getcontext().prec = 500 df['floating'] = df['floating'].astype(Decimal) df['phred'] = -10 * np.log10(1-df['floating'])
AttributeError: 'float' object has no attribute 'log10