I am working on a dataset to visualize basic plots in python. I use seaborn and matplotlib
. Up until yesterday, the packages worked perfectly fine until this error showed up:
stars = sns.load_dataset(vcsfeatures)
sns.boxplot(stars)
plt.xlim(-100, 8000, 500)
plt.show()
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/seaborn/utils.py", line 424, in load_dataset
urlretrieve(full_path, cache_path)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 248, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
I searched on this platform and all answers came from-out the intention to utilize a url or to get access to a web api.
This error occurs when i use simple plot code:
pd.DataFrame.boxplot(vcsfeatures)
pd.DataFrame.boxplot(userfeatures)
plt.ylim(-100, 1800)
plt.show()
also with fake data as data = [1, 2, 3]
I get this error whenever i try to call for a plotting library.
This used to work yesterday. Also with seaborn, pandas and numpy the error comes up.
What am I missing here in finding the solution?
If there is a question like this already, please redirect me as I am not able to find it.