hsaest commited on
Commit
7543bd9
1 Parent(s): 4c97841

Delete tools/attractions/test.py

Browse files
Files changed (1) hide show
  1. tools/attractions/test.py +0 -17
tools/attractions/test.py DELETED
@@ -1,17 +0,0 @@
1
- from tools.attractions.apis import Attractions
2
- import pandas as pd
3
- import sys
4
- import os
5
- sys.path.append(os.path.abspath(os.path.join(os.getcwd(), "..")))
6
- os.chdir(os.path.dirname(os.path.abspath(__file__)))
7
- unique_cities = Attractions(path="..//home/user/app/database/attractions/attractions.csv").data['City'].unique()
8
- df = Attractions(path="..//home/user/app/database/attractions/attractions.csv").data
9
- print(len(df))
10
- citySet = open('..//home/user/app/database/background/citySet.txt','r').read().split('\n')
11
- cnt = 0
12
- for city in unique_cities:
13
- if city not in citySet:
14
- df = df[df['City'] != city]
15
- print(len(df))
16
-
17
- df.to_csv('..//home/user/app/database/attractions/attractions2.csv', index=False)