Re: Numpy Array printing algorithms
3 Jun
2014
3 Jun
'14
7:03 a.m.
On Tue, Jun 3, 2014 at 7:00 AM, Juan Nunez-Iglesias <jni.soma@gmail.com> wrote:
In [15]: lifio.parse_series_name(name2)[1][:5] Out[15]: array([ 63. , 63.5, 64. , 64.5, 65. ])
In [16]: lifio.parse_series_name(name2, 1)[1][:5] Out[16]: array([ 63., 64., 65., 66., 67.])
Numpy is lining up the decimals for you: In [15]: np.linspace(999, 1024, 13) Out[15]: array([ 999. , 1001.08333333, 1003.16666667, 1005.25 , 1007.33333333, 1009.41666667, 1011.5 , 1013.58333333, 1015.66666667, 1017.75 , 1019.83333333, 1021.91666667, 1024. ]) Stéfan
3851
Age (days ago)
3851
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stéfan van der Walt