summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2017-05-18 13:58:42 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2017-05-18 13:58:42 -0400
commit5e9acdf6c9a7946ed60426a0463aaa154dd8da2a (patch)
tree32715b308f9b5eb86b4a2f1ba3ced27bad4eb023
parent99142814d1110cea40ac336952047c3aaedbecc7 (diff)
downloadpyisda-5e9acdf6c9a7946ed60426a0463aaa154dd8da2a.tar.gz
fix series name
-rw-r--r--pyisda/curve.pyx4
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: