Skip to content

Instantly share code, notes, and snippets.

@ShayanRiyaz
Created April 24, 2020 10:35
Show Gist options
  • Save ShayanRiyaz/82c62150fd5840f1e5f8ec4f2a9bb6ea to your computer and use it in GitHub Desktop.
Save ShayanRiyaz/82c62150fd5840f1e5f8ec4f2a9bb6ea to your computer and use it in GitHub Desktop.
import numpy as np # library to handle data in a vectorized manner
import pandas as pd # library for data analsysis
import json # library to handle JSON files
from geopy.geocoders import Nominatim # convert an address into latitude and longitude values
import requests # library to handle requests
from pandas.io.json import json_normalize # tranform JSON file into a pandas data frame
# Matplotlib and associated plotting modules
import matplotlib.cm as cm
import matplotlib.colors as colors
# import k-means from clustering stage
from sklearn.cluster import KMeans
import folium # map rendering library
from bs4 import BeautifulSoup
import re
print('Libraries imported.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment