{"action":"created","issue":{"url":"https://api.github.com/repos/geopandas/geopandas/issues/324","repository_url":"https://api.github.com/repos/geopandas/geopandas","labels_url":"https://api.github.com/repos/geopandas/geopandas/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/geopandas/geopandas/issues/324/comments","events_url":"https://api.github.com/repos/geopandas/geopandas/issues/324/events","html_url":"https://github.com/geopandas/geopandas/issues/324","id":155560172,"number":324,"title":"BUG: implementation under pandas 15.2 not preserving geometry attribute under loc","user":{"login":"nickeubank","id":9683693,"avatar_url":"https://avatars3.githubusercontent.com/u/9683693?v=3","gravatar_id":"","url":"https://api.github.com/users/nickeubank","html_url":"https://github.com/nickeubank","followers_url":"https://api.github.com/users/nickeubank/followers","following_url":"https://api.github.com/users/nickeubank/following{/other_user}","gists_url":"https://api.github.com/users/nickeubank/gists{/gist_id}","starred_url":"https://api.github.com/users/nickeubank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickeubank/subscriptions","organizations_url":"https://api.github.com/users/nickeubank/orgs","repos_url":"https://api.github.com/users/nickeubank/repos","events_url":"https://api.github.com/users/nickeubank/events{/privacy}","received_events_url":"https://api.github.com/users/nickeubank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-05-18T17:38:02Z","updated_at":"2017-03-09T07:49:34Z","closed_at":null,"body":"We could fix, or we could just drop support for 15.2...\n\n```\nos.chdir('/users/nick/github/geopandas/geopandas/tests')\nfrom util import unittest, download_nybb\n\nnybb_filename, nybb_zip_path = download_nybb()\npolydf = read_file(nybb_zip_path, vfs='zip://' + nybb_filename)[['geometry', 'BoroName', 'BoroCode']]\npolydf = polydf.rename(columns={'geometry':'myshapes'})\npolydf = polydf.set_geometry('myshapes')\n\n# subset\nmanhattan_bronx = polydf.loc[3:4,]\n\n\nmanhattan_bronx.geometry\nTraceback (most recent call last):\n\n  File \"<ipython-input-8-3803180ba64f>\", line 1, in <module>\n    manhattan_bronx.geometry\n\n  File \"/Users/Nick/anaconda/envs/py2_gp/lib/python2.7/site-packages/pandas/core/generic.py\", line 1947, in __getattr__\n    (type(self).__name__, name))\n\nAttributeError: 'GeoDataFrame' object has no attribute 'geometry'\n```\n\nI assume not noticed because most tests still work if geometry column named geometry (not to harp, but #294)...\n"},"comment":{"url":"https://api.github.com/repos/geopandas/geopandas/issues/comments/285279361","html_url":"https://github.com/geopandas/geopandas/issues/324#issuecomment-285279361","issue_url":"https://api.github.com/repos/geopandas/geopandas/issues/324","id":285279361,"user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars1.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":"2017-03-09T07:49:34Z","updated_at":"2017-03-09T07:49:34Z","body":"Closed by #413"}}
{"actor":{"display_login":"jorisvandenbossche"}}