{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/12333","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/12333/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/12333/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/12333/events","html_url":"https://github.com/pydata/pandas/issues/12333","id":133815699,"number":12333,"title":"API: behaviour of label indexing with floats on integer index","user":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","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},"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/Compat","name":"Compat","color":"0052cc"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Indexing","name":"Indexing","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/36","html_url":"https://github.com/pydata/pandas/milestones/0.18.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/36/labels","id":1214851,"number":36,"title":"0.18.0","description":"","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","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},"open_issues":10,"closed_issues":370,"state":"open","created_at":"2015-07-19T20:18:45Z","updated_at":"2016-02-17T14:29:42Z","due_on":"2016-02-25T05:00:00Z","closed_at":null},"comments":11,"created_at":"2016-02-15T21:02:04Z","updated_at":"2016-02-17T15:11:40Z","closed_at":null,"body":"from #12246 \r\n\r\n@jorisvandenbossche this looks odd\r\n```\r\nIn [11]: s = pd.Series([1,2,3])\r\n\r\nIn [12]: s.loc[0.0] = 10\r\n\r\nIn [13]: s.loc[0.0]\r\nTypeError: cannot do label indexing on <class 'pandas.indexes.range.RangeIndex'>\r\n with these indexers [0.0] of <type 'float'>\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/185245714","html_url":"https://github.com/pydata/pandas/issues/12333#issuecomment-185245714","issue_url":"https://api.github.com/repos/pydata/pandas/issues/12333","id":185245714,"user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T15:11:40Z","updated_at":"2016-02-17T15:11:40Z","body":"> I suppose this means we are reverting this as well.\r\n\r\n> In [3]: s[1.0:2]\r\n> TypeError: cannot do slice start value indexing on <class 'pandas.indexes.range.RangeIndex'>\r\n\r\nNo, that should still raise, as this is *positional* indexing (alas ..):\r\n\r\n```\r\nIn [84]: s = pd.Series([1,2,3,4], index=range(1,5))\r\n\r\nIn [85]: s\r\nOut[85]:\r\n1    1\r\n2    2\r\n3    3\r\n4    4\r\ndtype: int64\r\n\r\nIn [86]: s[1:3]\r\nOut[86]:\r\n2    2\r\n3    3\r\ndtype: int64\r\n\r\nIn [87]: s[1.0:3]\r\nTypeError: cannot do slice start value indexing on <class 'pandas.indexes.numeri\r\nc.Int64Index'> with these indexers [1.0] of <type 'float'>\r\n```\r\n\r\n"}}