round method throws error if DataFrame includes Int64Dtype ...
github.com › pandas-dev › pandasJan 30, 2020 · Code Sample, a copy-pastable example if possible. >>> import pandas as pd >>> s = pd. Series ( [ 1, 2, None ], dtype="Int64" ) >>> s. round ( 1 ) AttributeError: 'float' object has no attribute 'rint' The above exception was the direct cause of the following exception : Traceback ( most recent call last ): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.8/site-packages/pandas/core/series.py", line 2146, in round result = com. values_from_object ( self ). round ( decimals ) ...