Spaces:
Sleeping
Sleeping
File size: 521 Bytes
d804135 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import pandas as pd
import os
from os import path
from rd2l_pred.training_data_prep import list_format, modification, league_money, df_gen
if __name__ == "__main__":
os.chdir("rd2l_pred/")
data_type = "prediction"
draft, captains = list_format("input")
money = league_money(captains, data_type)
result_money = money[list(money.keys())[0]]
season = list(money.keys())[0]
result_money.index.name = season
os.chdir("../")
result_money.to_csv("result_money.csv")
print("Saved?")
|