Skip to content

Commit

Permalink
Generate stations_mini.csv with suggestable stations only
Browse files Browse the repository at this point in the history
  • Loading branch information
alxch- committed Jun 1, 2019
1 parent bcdc5ca commit a3b60f6
Show file tree
Hide file tree
Showing 2 changed files with 1,873 additions and 5,377 deletions.
4 changes: 2 additions & 2 deletions build_station_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
csv_content = requests.get(_STATIONS_CSV_FILE).content
df = pd.read_csv(io.StringIO(csv_content.decode('utf-8')),
sep=';', index_col=0, low_memory=False)

df = df[df.is_suggestable == 't']
df_mini = df.name.str.lower()
df_mini.to_csv("stations_mini.csv", sep=';', encoding='utf-8')
df_mini.to_csv("stations_mini.csv", sep=';', encoding='utf-8', header=False)
Loading

0 comments on commit a3b60f6

Please sign in to comment.