Skip to content

Commit 2c54c35

Browse files
author
Scott Sanderson
committed
ENH: Show fx()-conversion info in BoundColumn repr.
1 parent 232c506 commit 2c54c35

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

zipline/pipeline/data/dataset.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,13 @@ def metadata(self):
290290

291291
@property
292292
def qualname(self):
293+
"""The fully-qualified name of this column.
293294
"""
294-
The fully-qualified name of this column.
295-
296-
Generated by doing '.'.join([self.dataset.__name__, self.name]).
297-
"""
298-
return '.'.join([self.dataset.qualname, self.name])
295+
out = '.'.join([self.dataset.qualname, self.name])
296+
conversion = self._currency_conversion
297+
if conversion is not None:
298+
out += '.fx({!r})'.format(conversion.currency.code)
299+
return out
299300

300301
@property
301302
def latest(self):

0 commit comments

Comments
 (0)