-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
works for flat pflines, nested not yet
- Loading branch information
Alina Voilova
committed
Feb 20, 2024
1 parent
788a8d0
commit ebd4bce
Showing
2 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import pandas as pd | ||
import portfolyo as pf | ||
from portfolyo import tools | ||
from portfolyo.core.shared import concat | ||
|
||
pfl = pf.dev.get_nestedpfline() | ||
pfl2 = pf.dev.get_nestedpfline() | ||
pfls = [pfl, pfl2] | ||
children_names_sets = [{name for name in pfl.children} for pfl in pfls] | ||
start_of_day = tools.startofday.get(pfl.index, "str") | ||
print(pfl) | ||
index = pd.date_range("2020", "2024", freq="QS", inclusive="left") | ||
index2 = pd.date_range("2024", "2025", freq="QS", inclusive="left") | ||
pfl = pf.dev.get_nestedpfline(index) | ||
pfl2 = pf.dev.get_nestedpfline(index2) | ||
|
||
concat.general(pfl, pfl2) | ||
|
||
# print(index) | ||
# print(index2) | ||
# print(pfl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters