Code Monkey home page Code Monkey logo

python_folium_example's Introduction

Python Folium/Leaflet.js Example

Example showing how to generate a map with markers, custom markers, circle markers, vega visualizations, Geojson and choropleth maps

Quick Start

# Install dependencies
pip install folium
pip install pandas

# Generate maps
python map.py
python map2.py

python_folium_example's People

Contributors

bradtraversy avatar hcoleman1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

python_folium_example's Issues

In MAP2 code FileNotFoundError

I got the error below when creating the data frame.
The joint path for unemployement_data was OK (so the csv file was ok).
Not sure what is the problem with pd.read_csv?
Best,
Francisco

FileNotFoundError: [Errno 2] No such file or directory: 'data\us_unemployment.csv'

import folium
import pandas as pd
import os

states = os.path.join('data', 'us-states.json')
unemployement_data = os.path.join('data', 'us_unemployment.csv')
state_data = pd.read_csv(unemployement_data)

FileNotFoundError Traceback (most recent call last)
in
----> 1 state_data = pd.read_csv(unemployement_data)

~\anaconda3\lib\site-packages\pandas\io\common.py in get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text, errors, storage_options)
640 errors = "replace"
641 # Encoding
--> 642 handle = open(
643 handle,
644 ioargs.mode,

FileNotFoundError: [Errno 2] No such file or directory: 'data\us_unemployment.csv'

< Analytics Copy Look Up Share... + = 100% 0003.1... ("crashreporter_key":"9689ae21c00778e385bea55d851c380a553c893","bug_type" "211'" timestamp': 2023-06-07 17:17:02.00 -0700', o_version' :"iPhone OS 14.8.1 (18H107) incident id': D8C321BF-D5CA-4205-A907-B24F46752F9B" ("_marker":!"<metadata>"/"_preferredUserinterfaceLanguage":"en- US*'"-_userinterfaceLanguage":"en""_userSetRegionFormat"'"US" "configParentUuid": 7b23a67e-13e-464e-a7ce-dcf29138f2be"', " configUuid"="58515259-c285-41c3-8af1-2312a5780c9"/"device Capacity":32,"startTimestamp""2023-06-07T 00:00:03Z" "version": "2.1"} ['message": {" BogusFieldNotActuallyEverUsed":null,"Count":10,"daily_total_BogusMeasureNotActua llyEverUsed ":null), "name": "StabilityHeartBeatCount5", "sampling":100,"uuid™* #3c8f638f -d492-465e-927-546a163beac9_2"} _marker':"<end-of-file>"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.