"""Earthquake Trends"""
import csv
with open('thailand_earthquake_stat_database.csv', 'r') as database:
    data = csv.reader(database)
    #Get the data from database
    dict_city = {}
    for i in data:
        dict_city[i[0]] = dict_city.get(i[0], [])+[i[1::]]
    #print(dict_city)

    #Retrieval of data to use and Test data, Print detail follow input--Location
    city = input()
    detail = dict_city[city]
    for i in detail:
        lat_lon = [float(a) for a in i[1].split(', ')]
        lat, lon = lat_lon
        print('Location:', i[0])
        print('Epicenter: %s, %s' %(lat, lon))
        print('Date:', i[1])
        print('Time:', i[2])
        print('Magnitude/Intensity:', i[3])
        print('Detail:', i[4])
        print('')

@@ -513,16 +513,191 @@
 lat_lon%0A
+        popup1 = %22%22%22City: %25s %3Cbr%3E %5C%0ALatitude: %25s, Longitude: %25s %3Cbr%3E %5C%0ADate: %25s %3Cbr%3E %5C%0ATime: %25s %3Cbr%3E %5C%0AM/I: %25s %3Cbr%3E %5C%0ADetail: %25s%22%22%22 %25 (i%5B0%5D, lat, lon, i%5B1%5D, i%5B2%5D, i%5B3%5D, i%5B4%5D)%0A
         
@@ -919,8 +919,221 @@
 int('')%0A
+    #Create map from latitude and longtitude%0A    map_osm = folium.Map(location=%5Blat, lon%5D, zoom_start=5)%0A    map_osm.simple_marker(location=%5Blat, lon%5D, popup=popup1)%0A    map_osm.create_map(path='thailandmap.html')

Create map