I was trying to obtain a formatted list of dates Pandas date_range and obtained an extra null string. This is using Pandas v2.2.2.
>>> import pandas as pd
>>> pd.date_range('2000-01-01','2000-01-03').format('%Y-%m-%d')
<stdin>:1: FutureWarning: DatetimeIndex.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead.
['', '2000-01-01', '2000-01-02', '2000-01-03']
strftimeinstead:pd.date_range('2000-01-01','2000-01-03').strftime('%Y-%m-%d').tolist(). To understand a correct (but unnecessary) use offormatin this case, see here.