s-leroux / fin

Set of tools for personal investment
MIT License
1 stars 0 forks source link

Renaming ternary columns doesn't work #44

Closed s-leroux closed 6 months ago

s-leroux commented 6 months ago

This fails on the print statement:

from fin.seq.serie import Serie
from fin.seq import fc

ser = Serie.create(
        (fc.named("T"), fc.range(10)),
        (fc.named("X"), "T"),
        (fc.named("Y"), fc.all, "X"),
    )
print(ser)

But that works as expected:

from fin.seq.serie import Serie
from fin.seq import fc

ser = Serie.create(
        (fc.named("T"), fc.range(10)),
        (fc.named("X"), "T"),
        (fc.all, "X"),
    )
print(ser)