rustat-python-api 0.4.5__tar.gz → 0.4.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rustat-python-api-0.4.5/rustat_python_api.egg-info → rustat-python-api-0.4.7}/PKG-INFO +1 -1
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api/parser.py +3 -3
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api/processing.py +6 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7/rustat_python_api.egg-info}/PKG-INFO +1 -1
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/setup.py +1 -1
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/LICENSE +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/README.md +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/pyproject.toml +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api/__init__.py +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api/config.py +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api/models_api.py +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api/urls.py +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api.egg-info/SOURCES.txt +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api.egg-info/dependency_links.txt +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api.egg-info/requires.txt +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api.egg-info/top_level.txt +0 -0
- {rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/setup.cfg +0 -0
|
@@ -86,9 +86,9 @@ class RuStatParser:
|
|
|
86
86
|
"team2_id": int(row["team2_id"]),
|
|
87
87
|
"team1_name": row["team1_name"],
|
|
88
88
|
"team2_name": row["team2_name"],
|
|
89
|
-
"round_name": row["round_name"],
|
|
90
|
-
"tournament_name": row["tournament_name"],
|
|
91
|
-
"season_name": row["season_name"]
|
|
89
|
+
"round_name": (row["round_name"] if "round_name" in row else None),
|
|
90
|
+
"tournament_name": (row["tournament_name"] if "tournament_name" in row else None),
|
|
91
|
+
"season_name": (row["season_name"] if "season_name" in row else None)
|
|
92
92
|
}
|
|
93
93
|
for row in data["data"]["row"]
|
|
94
94
|
}
|
|
@@ -21,6 +21,12 @@ def gluing(df: pd.DataFrame) -> pd.DataFrame:
|
|
|
21
21
|
df_gb['possession_number'] = df_gb['possession_number'].apply(
|
|
22
22
|
lambda x: max(x) if isinstance(x, list) else x
|
|
23
23
|
)
|
|
24
|
+
df_gb['pos_dest_x'] = df_gb['pos_dest_x'].apply(
|
|
25
|
+
lambda x: x[0] if isinstance(x, list) else x
|
|
26
|
+
)
|
|
27
|
+
df_gb['pos_dest_y'] = df_gb['pos_dest_y'].apply(
|
|
28
|
+
lambda x: x[0] if isinstance(x, list) else x
|
|
29
|
+
)
|
|
24
30
|
df_gb['pos_dest_nan'] = (df_gb['pos_dest_x'].isna() & df_gb['pos_dest_y'].isna()).astype(int)
|
|
25
31
|
df_gb = df_gb.sort_values(by=['half', 'second', 'possession_number', 'pos_dest_nan']).reset_index(drop=True)
|
|
26
32
|
return df_gb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.4.5 → rustat-python-api-0.4.7}/rustat_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|