A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/12684 below:

date_range closed parameter not honoured in pandas 0.18.0 · Issue #12684 · pandas-dev/pandas · GitHub

The behaviour of the method date_range appears to have changed between version 17 and 19. the below example changes the starting bound of the index returned?

print pd.date_range(start=datetime.datetime(2016,3,18,0,0), end=datetime.datetime(2016,3,22,0,0), freq='D', tz='UTC', closed='right')

pandas 0.17.0 Output
DatetimeIndex(['2016-03-19', '2016-03-20', '2016-03-21', '2016-03-22'], dtype='datetime64[ns, UTC]', freq='D')

pandas 0.18.0 Output
DatetimeIndex(['2016-03-18', '2016-03-19', '2016-03-20', '2016-03-21', '2016-03-22'],
dtype='datetime64[ns, UTC]', freq='D')

python: 2.7.11.final.0


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4