We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b35ed9 + 1e9f88a commit 2b579a9Copy full SHA for 2b579a9
2 files changed
anyway/field_names.py
@@ -1,6 +1,7 @@
1
file_type_police = "SUG_TIK_MISHTARA"
2
file_type = "SUG_TIK"
3
new_file_type = "SemelSugTikLMS"
4
+new_accident_year = "ShnatTeuna"
5
settlement = "SemelYeshuv"
6
street1 = "REHOV1"
7
street2 = "REHOV2"
anyway/parsers/cbs/executor.py
@@ -832,7 +832,7 @@ def get_file_type_and_year(file_path):
832
df = pd.read_csv(file_path, encoding=CONTENT_ENCODING)
833
logging.debug(f"df: {df.columns}")
834
provider_code = df.iloc[0][field_names.new_file_type]
835
- year = df.loc[:, field_names.accident_year].mode().values[0]
+ year = df.loc[:, field_names.new_accident_year].mode().values[0]
836
return int(provider_code), int(year)
837
838
def recreate_table_for_location_extraction():
0 commit comments