This commit is contained in:
mattbk 2023-04-05 16:28:39 -05:00
commit 398bd8160f
3 changed files with 19 additions and 0 deletions

6
app.py Normal file
View File

@ -0,0 +1,6 @@
from flask import Flask
from flask_restful import Resource, Api, reqparse
import pandas as pd
import ast
app = Flask(__name__)
api = Api(app)

8
locations.csv Normal file
View File

@ -0,0 +1,8 @@
locationId,name,rating
1,Café de Flore,4.0
2,Café Tabac,4.6
3,Rosslyn Coffee,4.8
4,Three Wheels Coffee,4.6
5,Roasting Plant Coffee,4.4
6,Distrikt coffee,4.4
7,Westberlin,4.4
1 locationId name rating
2 1 Café de Flore 4.0
3 2 Café Tabac 4.6
4 3 Rosslyn Coffee 4.8
5 4 Three Wheels Coffee 4.6
6 5 Roasting Plant Coffee 4.4
7 6 Distrikt coffee 4.4
8 7 Westberlin 4.4

5
users.csv Normal file
View File

@ -0,0 +1,5 @@
userId,name,city,locations
a1b,Joe,Paris,"['0001', '0002', '0008']"
a2c,Jenny,London,"['0003', '0004']"
b1b,Jack,London,"['0003', '0005']"
b2c,Jill,Berlin,"['0006', '0007']"
1 userId name city locations
2 a1b Joe Paris ['0001', '0002', '0008']
3 a2c Jenny London ['0003', '0004']
4 b1b Jack London ['0003', '0005']
5 b2c Jill Berlin ['0006', '0007']