Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import os
import zipfile

import gdown
import pandas as pd
from tqdm import tqdm
from scipy.io import loadmat
import pandas as pd
import gdown
import zipfile
import os
from tqdm import tqdm


class Basketball_space_data:
def __init__(self,data_provider,data_path, *args, **kwargs):
self.data_provider = data_provider
self.data_path = data_path


def preprocessing(self, nb_process_game):
def preprocessing(self, nb_process_game='ALL'):

if self.data_provider == "SportVU_NBA":

Expand Down Expand Up @@ -159,4 +159,5 @@ def download_data(self):

os.remove(output_zip_path)
print("delete the unecessary zip file")
return print("Data downloaded finish") print("delete the unecessary zip file")
return print("Data downloaded finish")
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def preprocessing(self):
os.path.splitext(os.path.basename(tracking_path_i))[0]
)[0]
match_tracking_df = pd.read_csv(tracking_path_i)
print(match_tracking_df)

# Create intermediate DataFrame with all required columns
intermidiate_df = create_intermediate_file(match_tracking_df)

Expand Down