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/12868 below:

Resample on empty Period-Indexed Series returns Datetime-Indexed Series · Issue #12868 · pandas-dev/pandas · GitHub

Code Sample, a copy-pastable example if possible

In [7]: pd.Series([], pd.period_range(start='2000', periods=0)).resample('W').mean().index Out[7]: DatetimeIndex([], dtype='datetime64[ns]', freq='W-SUN')

Expected Output

PeriodIndex([], dtype='int64', freq='W-SUN')

On pandas: 0.18.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