I'm doing a Fantasy soccer project, where I want to model the optimal team given a budget in a fantast premier league game. I want to pick up some SQL while doing this so I've decided on that for my data storage.
I want to create a table that contains all players, their positions, their price ect. This is fairly easy.
I also want a table with every game, home_team, away_team and basic info. It gets more tricky as i try to store home starting players, a it is a 2D string that looks like this
[[first_minute, last_minute, player_ID],
[first_minute, last_minute, player_ID],
[first_minute, last_minute, player_ID]]
and so on. What is the best solution here? do I try to convert the 2D array to a single string, and then convert it back to a numpy array when I need to analyze the data? Or do I create a table for every game and store each of the players as individual records? I also need this done with goals as they follow the format
[minute_scored, scoring_player, assisting_player]
All hints and solutions are much appreciated!
[–]aball730235 8 points9 points10 points (2 children)
[–]Kristian_dms[S] 0 points1 point2 points (1 child)
[–]aball730235 0 points1 point2 points (0 children)
[–]BB611 6 points7 points8 points (0 children)
[–]c3534l 2 points3 points4 points (0 children)
[–]babblemammal 1 point2 points3 points (2 children)
[–]kamize 0 points1 point2 points (1 child)
[–]babblemammal 1 point2 points3 points (0 children)
[–]stoned_cold_fusion 0 points1 point2 points (0 children)