See this post here. Both sections apply to your post. Additionally, in regards to the second section about formatting, the traceback should also be posted as a code block on forums such as this.
Note that your post looks a lot like the StackOverflow post ‘Python pandas datareader no longer works for yahoo-finance changed url’. Or this StackOverflow post ‘Function from pandas_datareader doesn’t work’. Or this Python forum post ‘Problem with datareader’. When you find a pertinent place to post about this you’ll want to include what did you try in regards to them & point out exactly how your post differs from those.
Please read Getting good answers to your questions. Pay particular attention to the section ‘Search, and Research’ at How do I ask a good question? , linked at the bottom there.