{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/18430","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/18430/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/18430/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/18430/events","html_url":"https://github.com/pandas-dev/pandas/issues/18430","id":276137627,"number":18430,"title":"pd.rolling_corr produces wrong result","user":{"login":"byospe","id":33906491,"avatar_url":"https://avatars3.githubusercontent.com/u/33906491?v=4","gravatar_id":"","url":"https://api.github.com/users/byospe","html_url":"https://github.com/byospe","followers_url":"https://api.github.com/users/byospe/followers","following_url":"https://api.github.com/users/byospe/following{/other_user}","gists_url":"https://api.github.com/users/byospe/gists{/gist_id}","starred_url":"https://api.github.com/users/byospe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byospe/subscriptions","organizations_url":"https://api.github.com/users/byospe/orgs","repos_url":"https://api.github.com/users/byospe/repos","events_url":"https://api.github.com/users/byospe/events{/privacy}","received_events_url":"https://api.github.com/users/byospe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-22T16:49:59Z","updated_at":"2017-11-22T23:16:05Z","closed_at":null,"author_association":"NONE","body":"#### Code Sample, a copy-pastable example if possible\r\n\r\n```python\r\ns = pd.Series([1,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,7,0,0,0])\r\npd.rolling_corr(s,s,6)\r\n\r\n```\r\n#### Problem description\r\n\r\nrolling_corr is producing the wrong result:\r\n```\r\npython\r\npd.rolling_corr(s,s,6)\r\n```\r\n0     NaN\r\n1     NaN\r\n2     NaN\r\n3     NaN\r\n4     NaN\r\n5     1.0\r\n6     1.0\r\n7     1.0\r\n8     1.0\r\n9     0.0\r\n10    0.0\r\n11    0.0\r\n12    0.0\r\n13    0.0\r\n14    0.0\r\n15    0.0\r\n16    0.0\r\n17    0.0\r\n18    0.0\r\n19    0.0\r\n20    0.0\r\n21    0.0\r\n22    0.0\r\n23    0.0\r\n24    0.0\r\n25    0.0\r\n26    1.0\r\n27    1.0\r\n28    1.0\r\n29    1.0\r\n30    1.0\r\n31    1.0\r\n32    1.0\r\n33    1.0\r\n\r\nThis should have nan's instead of 0's for windows with static data.\r\n\r\n#### Expected Output\r\n\r\n#### Output of ``pd.show_versions()``\r\n\r\n<details>\r\n\r\n[paste the output of ``pd.show_versions()`` here below this line]\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.5.3.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 4.1.35-pv-ts2\r\nmachine: x86_64\r\nprocessor: \r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_US.UTF-8\r\nLOCALE: en_US.UTF-8\r\n\r\npandas: 0.20.3\r\npytest: 3.0.7\r\npip: 9.0.1\r\nsetuptools: 36.4.0\r\nCython: 0.25.2\r\nnumpy: 1.11.3\r\nscipy: 0.19.0\r\nxarray: None\r\nIPython: 5.3.0\r\nsphinx: 1.6.2\r\npatsy: 0.4.1\r\ndateutil: 2.6.0\r\npytz: 2017.2\r\nblosc: None\r\nbottleneck: None\r\ntables: 3.3.0\r\nnumexpr: 2.6.2\r\nfeather: None\r\nmatplotlib: 1.5.1\r\nopenpyxl: 2.4.8\r\nxlrd: 1.0.0\r\nxlwt: None\r\nxlsxwriter: 0.9.8\r\nlxml: None\r\nbs4: 4.5.3\r\nhtml5lib: 0.999\r\nsqlalchemy: 1.1.10\r\npymysql: None\r\npsycopg2: None\r\njinja2: 2.9.6\r\ns3fs: None\r\npandas_gbq: None\r\npandas_datareader: None\r\n\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/346498211","html_url":"https://github.com/pandas-dev/pandas/issues/18430#issuecomment-346498211","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/18430","id":346498211,"user":{"login":"jreback","id":953992,"avatar_url":"https://avatars2.githubusercontent.com/u/953992?v=4","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T23:16:05Z","updated_at":"2017-11-22T23:16:05Z","author_association":"CONTRIBUTOR","body":"@byospe want to try a PR to fix?"}}
{"actor":{"display_login":"jreback"}}