diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2017-05-18 13:58:42 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2017-05-18 13:58:42 -0400 |
| commit | 5e9acdf6c9a7946ed60426a0463aaa154dd8da2a (patch) | |
| tree | 32715b308f9b5eb86b4a2f1ba3ced27bad4eb023 | |
| parent | 99142814d1110cea40ac336952047c3aaedbecc7 (diff) | |
| download | pyisda-5e9acdf6c9a7946ed60426a0463aaa154dd8da2a.tar.gz | |
fix series name
| -rw-r--r-- | pyisda/curve.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 3789ef0..c2624c2 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -106,8 +106,8 @@ cdef class Curve(object): for i in range(n): h[i] = it[i].fRate d[i] = it[i].fDate -134774 - return pd.Series(h, index=d.view('M8[D]'), name='hazard_rates' \ - if self.ticker else self.ticker) + return pd.Series(h, index=d.view('M8[D]'), name=self.ticker \ + if self.ticker else 'hazard_rates') def __iter__(self): cdef: |
