tegge-classroom / STAT2984-2018

STAT 2984: Statistical Programming I - Spring 2018
1 stars 13 forks source link

Importing percent_bachelors_degrees_women_usa.csv #26

Open maxh95 opened 6 years ago

maxh95 commented 6 years ago

Hey folks, I've been trying to import the data for our visualization tomorrow. (3/15) After running the code below I received the error: 'file percent_bachelors_degrees_women_usa.csv not in cache; received HTTP Error 404: Not Found when trying to retrieve'

Has anyone had a similar problem and found any success?

import numpy as np import matplotlib.pyplot as plt from matplotlib.cbook import get_sample_data

fname = get_sample_data('percent_bachelors_degrees_women_usa.csv', asfileobj=False)

matter698no2 commented 6 years ago

Is the file in the same folder as you program you're trying to run?

If it isn't, try referencing the file's path directly, like "C:\Users[file path here]\percent_bachelors_degrees_women_usa.csv"

ategge commented 6 years ago

For those that had problems, I have added the data file and appropriate code to read in the data to the Examples folder in the class repository.