|
@@ -41,7 +41,7 @@ def actuals(period):
|
|
|
df["YTDQ"] = np.where(df["Bookkeep_Period"] <= period, df["CYQ"], 0)
|
|
|
df["FC"] = df["YTD"] * 12 / month_no
|
|
|
df["FCQ"] = df["YTDQ"] * 12 / month_no
|
|
|
- df.drop(columns=["Menge", "Betrag"], inplace=True)
|
|
|
+ df.drop(columns=["Menge", "Betrag", "Jahr", "Bookkeep_Period"], inplace=True)
|
|
|
|
|
|
# df2 = pd.pivot_table(df, values='Betrag', index=['Konto Nr', 'Betrieb Nr'],
|
|
|
# columns=['Jahr'], aggfunc=np.sum, fill_value=0.0)
|
|
@@ -60,7 +60,7 @@ def actuals(period):
|
|
|
|
|
|
@plac.pos("year", "", type=str)
|
|
|
def planning_prev(year):
|
|
|
- base_dir = Path.cwd().parent
|
|
|
+ base_dir = Path.cwd() # .parent
|
|
|
print(base_dir)
|
|
|
df1 = pd.read_csv(
|
|
|
base_dir / f"data/Planner_{year}_V1_Plan.csv",
|