I get a Value Error when I try to read in the JSON files in this project. Any ideas?
You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility
When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer!
If you do not mind, post your code on how you’re accessing the json file.
I a trying but I keep getting a 403 error
Thanks for posting this. When you say you are getting an 403 Error, are you referring to a HTTP response?
If so, that is Forbidden Response, meaning the server understands the request but refuses to authorize it…
Are you making a request to a url to get these json files, Or are you just opening local json files?
On line 8, try removing the .icloud from yelp_business.json and run your code. I’m thinking that could be what’s triggering a 403 Error response. Let me know if that resolves your issue.
I was getting 403 errors when I posted my code to this forum. Not sure why. But when I posted the screenshot it did not give me a 403 error.
I do get the same Value error, with and without the .icloud in the file name. I think it must be my python or pandas but I can’t figure it out.
Thanks for your help