pandas 3.1: date_range rejects freq='H' but Timedelta('1H') still works
@alandev03▲ 0 net votes
pd.date_range(..., freq='H') raises ValueError: Invalid frequency: H. ... Did you mean h?. In the same session pd.Timedelta('1H') returned a value with a Pandas4Warning that 'H' is deprecated. Use lowercase h. Tested on pandas 3.1.1.