Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd

In [1]: df = pd.DataFrame([1,1,1,1])

In [2]: pd.rolling_window(df, window=[1,1], mean=False)

C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\start_ipython_kernel.py:1: FutureWarning: pd.rolling_sum is deprecated for DataFrame and will be removed in a future version, replace with

DataFrame.rolling(window=[1, 1],center=False,axis=0).sum()

-- coding: utf-8 --

Traceback (most recent call last):

File "", line 1, in

pd.rolling_window(pd.DataFrame([1,1,1,1]), window=[1,1], mean=False)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\stats\moments.py", line 657, in rolling_window

**kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\stats\moments.py", line 240, in ensure_compat

result = getattr(r, name)(_args, *_kwds)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 789, in sum

return super(Rolling, self).sum(**kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 552, in sum

return self._apply('roll_sum', **kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 487, in _apply

result = np.apply_along_axis(calc, self.axis, values)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\numpy\lib\shape_base.py", line 91, in apply_along_axis

res = func1d(arr[tuple(i.tolist())], _args, *_kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 484, in calc

return func(x, window, min_periods=self.min_periods)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 471, in func

window, minp, **kwargs)

File "pandas\algos.pyx", line 901, in pandas.algos.roll_sum (pandas\algos.c:28213)

TypeError: an integer is required

In [3]: df.rolling(window=[1, 1],center=False,axis=0).sum()

Traceback (most recent call last):

File "", line 1, in

df.rolling(window=[1, 1],center=False,axis=0).sum()

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 789, in sum

return super(Rolling, self).sum(**kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 552, in sum

return self._apply('roll_sum', **kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 487, in _apply

result = np.apply_along_axis(calc, self.axis, values)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\numpy\lib\shape_base.py", line 91, in apply_along_axis

res = func1d(arr[tuple(i.tolist())], _args, *_kwargs)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 484, in calc

return func(x, window, min_periods=self.min_periods)

File "C:\Users\login\AppData\Local\Continuum\Anaconda3\lib\site-packages\pandas\core\window.py", line 471, in func

window, minp, **kwargs)

File "pandas\algos.pyx", line 901, in pandas.algos.roll_sum (pandas\algos.c:28213)

TypeError: an integer is required

Expected Output

[NA, 2, 2, 2]

output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.5.1.final.0

python-bits: 64

OS: Windows

OS-release: 7

machine: AMD64

processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel

byteorder: little

LC_ALL: None

LANG: en_US

pandas: 0.18.0

nose: 1.3.7

pip: 8.1.1

setuptools: 20.3

Cython: 0.23.4

numpy: 1.10.4

scipy: 0.17.0

statsmodels: 0.6.1

xarray: None

IPython: 4.1.2

sphinx: 1.3.1

patsy: 0.4.0

dateutil: 2.5.1

pytz: 2016.2

blosc: None

bottleneck: 1.0.0

tables: 3.2.2

numexpr: 2.5

matplotlib: 1.5.1

openpyxl: 2.3.2

xlrd: 0.9.4

xlwt: 1.0.0

xlsxwriter: 0.8.4

lxml: 3.6.0

bs4: 4.4.1

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.0.12

pymysql: None

psycopg2: None

jinja2: 2.8

boto: 2.39.0

Issue 2:
xref #12765. Let's pick up this as a test case and give a more meaningful error message. e.g. for Window the win_type is missing, so this should be the error.

In [15]: pd.DataFrame(np.arange(10)).rolling(2., center=True).median()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-15-73c4e557093d> in <module>()
----> 1 pd.DataFrame(np.arange(10)).rolling(2., center=True).median()

/usr/lib/python3.5/site-packages/pandas/core/window.py in median(self, **kwargs)
811 @Appender(_shared_docs['median'])
812 def median(self, **kwargs):
--> 813 return super(Rolling, self).median(**kwargs)
814
815 @Substitution(name='rolling')

/usr/lib/python3.5/site-packages/pandas/core/window.py in median(self, how, **kwargs)
592 if self.freq is not None and how is None:
593 how = 'median'
--> 594 return self._apply('roll_median_c', how=how, **kwargs)
595
596 _shared_docs['std'] = dedent("""

/usr/lib/python3.5/site-packages/pandas/core/window.py in _apply(self, func, window, center, check_minp, how, **kwargs)
473 # calculation function
474 if center:
--> 475 offset = _offset(window, center)
476 additional_nans = np.array([np.NaN] * offset)
477

/usr/lib/python3.5/site-packages/pandas/core/window.py in _offset(window, center)
1356 def _offset(window, center):
1357 if not com.is_integer(window):
-> 1358 window = len(window)
1359 offset = (window - 1) / 2. if center else 0
1360 try:

TypeError: object of type 'float' has no len()

Note that pd.DataFrame(np.arange(10)).rolling(2.).median() works fine.

pandas 0.18.0.