Files
Alessandro Colace c3db565d09 Preserve Date/Datetime index name in yf.download() output
reindex_dfs() rebuilt the combined index via sorted(set(...)) +
pd.to_datetime, dropping the index name set by history.py ('Date' for
daily, 'Datetime' for intraday). After concat, data.index.name was
None, so users doing data.stack().reset_index() got a 'level_0' column
instead of 'Date' / 'Datetime'.

Use Index.union, which preserves the name natively when sources agree.

Drive-by: narrow data.columns to MultiIndex before swaplevel to silence
a pyright attribute warning.
2026-05-25 22:20:29 +02:00
..
2025-05-14 21:41:17 +01:00
2026-04-29 18:04:01 -05:00
2026-04-29 18:04:01 -05:00
2026-04-29 18:04:01 -05:00
2025-04-27 20:39:20 +02:00
2026-05-23 14:46:39 +01:00
2026-05-23 14:46:39 +01:00
2025-01-03 00:35:53 +01:00