Force R not to use exponential notation (e.g. e+10)?

This is a bit of a grey area. You need to recall that R will always invoke a print method, and these print methods listen to some options. Including ‘scipen’ — a penalty for scientific display. From help(options): ‘scipen’: integer. A penalty to be applied when deciding to print numeric values in fixed or exponential … Read more

Format / Suppress Scientific Notation from Pandas Aggregation Results

Granted, the answer I linked in the comments is not very helpful. You can specify your own string converter like so. In [25]: pd.set_option(‘display.float_format’, lambda x: ‘%.3f’ % x) In [28]: Series(np.random.randn(3))*1000000000 Out[28]: 0 -757322420.605 1 -1436160588.997 2 -1235116117.064 dtype: float64 I’m not sure if that’s the preferred way to do this, but it works. … Read more