Skip to content
Advertisement

Tag: stock

Extract first available day for each month from a csv

Stock quotes obtained from yfinance don’t start the 1st of each month, so I need to extract the the Date and Close for the first available qupte for each month in a csv. So far I managed to only get the days starting with 0, but this is still not what I want: The following is an example of what

how to get dates from yahoo finance

I have a problem with getting the dates from yfinance into my matplotlib graph can somebody help/show me how to get the dates from yfinance into my matplotlib graph Answer Tested ✅ 🔰You could extract the date from ticker_history[observation] 🔰 It is a Pandas Series object, so here’s how I’d do it:

Advertisement