Skip to content

Instantly share code, notes, and snippets.

# snippet to create circles on map
coords_belgium=[50.5039, 4.4699]
pollution_map = folium.Map(location=coords_belgium, control_scale=True, zoom_start=8)
for i in range(0,len(loc_df)):
folium.Circle(location=[loc_df.iloc[i]['Latitude'], loc_df.iloc[i]['Longitude']]
, popup=loc_df.iloc[i]['SamplingPoint']
, radius=500
, color='blue'
, fill=True
@bertcarremans
bertcarremans / img_train_test_split.py
Last active November 5, 2021 09:49
Split images randomly over train or validation folder
# Copyright 2014-2017 Bert Carremans
# Author: Bert Carremans <bertcarremans.be>
#
# License: BSD 3 clause
import os
import random
from shutil import copyfile