Commit 48ad2f4
BUG: add check for infinity in __call__ of EngFormatter
EngFormatter throws an exception if passed 'inf' as below. This
patch checks for infinity and just returns 'inf' in that case.
xref #11981
Author: Johnny Gill <[email protected]>
Closes #14214 from swfiua/master and squashes the following commits:
f2348e7 [Johnny Gill] test EngFormatter with np.inf
83f4091 [Johnny Gill] add check for infinity in __call__ of EngFormatter1 parent f363236 commit 48ad2f4
File tree
3 files changed
+12
-1
lines changed- doc/source/whatsnew
- pandas
- formats
- tests/formats
3 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
1510 | | - | |
| 1510 | + | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2586 | 2586 | | |
2587 | 2587 | | |
2588 | 2588 | | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
2589 | 2592 | | |
2590 | 2593 | | |
2591 | 2594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4047 | 4047 | | |
4048 | 4048 | | |
4049 | 4049 | | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
4050 | 4058 | | |
4051 | 4059 | | |
4052 | 4060 | | |
| |||
0 commit comments