File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ pandas 0.9.0
194
194
such as lambdas, to GroupBy.aggregate
195
195
- Fix DataFrame.apply with axis=1 on a non-unique index (#1878)
196
196
- Proper handling of Index subclasses in pandas.unique (#1759)
197
+ - Set index names in DataFrame.from_records (#1744)
197
198
198
199
pandas 0.8.1
199
200
============
Original file line number Diff line number Diff line change @@ -374,10 +374,17 @@ def test_to_string_small_float_values(self):
374
374
df = DataFrame ({'a' : [1.5 , 1e-17 , - 5.5e-7 ]})
375
375
376
376
result = df .to_string ()
377
- expected = (' a\n '
378
- '0 1.500000e+00\n '
379
- '1 1.000000e-17\n '
380
- '2 -5.500000e-07' )
377
+ # sadness per above
378
+ if '%.4g' % 1.7e8 == '1.7e+008' :
379
+ expected = (' a\n '
380
+ '0 1.500000e+000\n '
381
+ '1 1.000000e-017\n '
382
+ '2 -5.500000e-007' )
383
+ else :
384
+ expected = (' a\n '
385
+ '0 1.500000e+00\n '
386
+ '1 1.000000e-17\n '
387
+ '2 -5.500000e-07' )
381
388
self .assertEqual (result , expected )
382
389
383
390
# but not all exactly zero
You can’t perform that action at this time.
0 commit comments