-
Notifications
You must be signed in to change notification settings - Fork 91
Description
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'