{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10691","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10691/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10691/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10691/events","html_url":"https://github.com/pydata/pandas/pull/10691","id":97782950,"number":10691,"title":"Allow interpolate() to fill backwards as well as forwards","user":{"login":"lmjohns3","id":53048,"avatar_url":"https://avatars.githubusercontent.com/u/53048?v=3","gravatar_id":"","url":"https://api.github.com/users/lmjohns3","html_url":"https://github.com/lmjohns3","followers_url":"https://api.github.com/users/lmjohns3/followers","following_url":"https://api.github.com/users/lmjohns3/following{/other_user}","gists_url":"https://api.github.com/users/lmjohns3/gists{/gist_id}","starred_url":"https://api.github.com/users/lmjohns3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmjohns3/subscriptions","organizations_url":"https://api.github.com/users/lmjohns3/orgs","repos_url":"https://api.github.com/users/lmjohns3/repos","events_url":"https://api.github.com/users/lmjohns3/events{/privacy}","received_events_url":"https://api.github.com/users/lmjohns3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/API%20Design","name":"API Design","color":"AD7FA8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Missing-data","name":"Missing-data","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-28T19:26:37Z","updated_at":"2015-07-30T19:28:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/10691","html_url":"https://github.com/pydata/pandas/pull/10691","diff_url":"https://github.com/pydata/pandas/pull/10691.diff","patch_url":"https://github.com/pydata/pandas/pull/10691.patch"},"body":"**Edit: changed approach, see the rest of the thread**\r\n\r\nCurrently, interpolate() has a \"limit\" kwarg that, when set to n,\r\nprevents interpolated values from propagating more than n rows forward.\r\n\r\nThis change adds a \"backward_limit\" kwarg that, when set to n, prevents\r\ninterpolated values from propagating more than n rows backward.\r\n\r\nThe behavior prior to this change is as though \"backward_limit\" existed\r\nbut was always set to 0. That is, interpolated values never filled in\r\nNaNs immediately before a non-NaN value (unless those same NaNs happened\r\nto follow a different, non-NaN value within \"limit\" rows).\r\n\r\nIn this change the \"backward_limit\" kwarg has no effect if \"limit\" is\r\nnot specified (i.e., None).\r\n\r\nThis change is for issue #9218."},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/126447399","html_url":"https://github.com/pydata/pandas/pull/10691#issuecomment-126447399","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10691","id":126447399,"user":{"login":"lmjohns3","id":53048,"avatar_url":"https://avatars.githubusercontent.com/u/53048?v=3","gravatar_id":"","url":"https://api.github.com/users/lmjohns3","html_url":"https://github.com/lmjohns3","followers_url":"https://api.github.com/users/lmjohns3/followers","following_url":"https://api.github.com/users/lmjohns3/following{/other_user}","gists_url":"https://api.github.com/users/lmjohns3/gists{/gist_id}","starred_url":"https://api.github.com/users/lmjohns3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmjohns3/subscriptions","organizations_url":"https://api.github.com/users/lmjohns3/orgs","repos_url":"https://api.github.com/users/lmjohns3/repos","events_url":"https://api.github.com/users/lmjohns3/events{/privacy}","received_events_url":"https://api.github.com/users/lmjohns3/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T19:28:46Z","updated_at":"2015-07-30T19:28:46Z","body":"Any comments on this version of the change?"}}