Hey there, hoping I'm doing something obviously wrong that someone can help me identify.
I download multiple ticker stock and dividend data in a for loop, but I only care about the date column having a "YYYY-MM-DD" value not the full "YYYY-MM-DD 00:00:00-05:00" that includes time and timezone.
I use this code to download each ticker dividend data and save to CSV:
But the output is something like:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
Hey there, hoping I'm doing something obviously wrong that someone can help me identify.
I download multiple ticker stock and dividend data in a for loop, but I only care about the date column having a "YYYY-MM-DD" value not the full "YYYY-MM-DD 00:00:00-05:00" that includes time and timezone.
I use this code to download each ticker dividend data and save to CSV:
But the output is something like: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Date | Dividends -- | -- 2017-12-26 00:00:00-05:00 | 0.189 2018-12-26 00:00:00-05:00 | 1.123 2019-12-27 00:00:00-05:00 | 0.457 2020-12-17 00:00:00-05:00 | 1.512 2021-12-16 00:00:00-05:00 | 3.483 2022-12-15 00:00:00-05:00 | 0.196 2023-12-14 00:00:00-05:00 | 0.255 2023-12-28 00:00:00-05:00 | 0.042