{"action":"opened","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/20317","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/20317/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/20317/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/20317/events","html_url":"https://github.com/pandas-dev/pandas/issues/20317","id":304566046,"number":20317,"title":"Cannot access callable attribute 'groupby' of 'DataFrameGroupBy' objects","user":{"login":"ymhiri","id":37225237,"avatar_url":"https://avatars3.githubusercontent.com/u/37225237?v=4","gravatar_id":"","url":"https://api.github.com/users/ymhiri","html_url":"https://github.com/ymhiri","followers_url":"https://api.github.com/users/ymhiri/followers","following_url":"https://api.github.com/users/ymhiri/following{/other_user}","gists_url":"https://api.github.com/users/ymhiri/gists{/gist_id}","starred_url":"https://api.github.com/users/ymhiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymhiri/subscriptions","organizations_url":"https://api.github.com/users/ymhiri/orgs","repos_url":"https://api.github.com/users/ymhiri/repos","events_url":"https://api.github.com/users/ymhiri/events{/privacy}","received_events_url":"https://api.github.com/users/ymhiri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-12T22:39:31Z","updated_at":"2018-03-12T22:39:31Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm newbie in Panda. I want to groupby my dataframe poll_df by Start Date. I get this error. How can I fix it?\r\n\r\nThanks for your help\r\n\r\n#### Code Sample, a copy-pastable example if possible\r\n\r\n```python\r\npoll_df = poll_df.groupby(['Start Date'],as_index=False)\r\n\r\n```\r\n#### Problem description\r\n\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-71-7b0b7b361e4b> in <module>()\r\n----> 1 poll_df = poll_df.groupby(['Start Date'])\r\n      2 poll_df.head()\r\n\r\nC:\\ProgramData\\Anaconda2\\lib\\site-packages\\pandas\\core\\groupby.pyc in __getattr__(self, attr)\r\n    671             return self[attr]\r\n    672         if hasattr(self.obj, attr):\r\n--> 673             return self._make_wrapper(attr)\r\n    674 \r\n    675         raise AttributeError(\"%r object has no attribute %r\" %\r\n\r\nC:\\ProgramData\\Anaconda2\\lib\\site-packages\\pandas\\core\\groupby.pyc in _make_wrapper(self, name)\r\n    685                    \"using the 'apply' method\".format(kind, name,\r\n    686                                                      type(self).__name__))\r\n--> 687             raise AttributeError(msg)\r\n    688 \r\n    689         # need to setup the selection\r\n\r\nAttributeError: Cannot access callable attribute 'groupby' of 'DataFrameGroupBy' objects, try using the 'apply' method\r\n\r\n\r\n#### Expected Output\r\n\r\n#### Output of ``pd.show_versions()``\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 2.7.14.final.0\r\npython-bits: 64\r\nOS: Windows\r\n\r\npandas: 0.22.0\r\npytest: 3.3.2\r\npip: 9.0.1\r\nsetuptools: 38.4.0\r\nCython: 0.27.3\r\nnumpy: 1.14.0\r\nscipy: 1.0.0\r\npyarrow: None\r\nxarray: None\r\nIPython: 5.4.1\r\nsphinx: 1.6.6\r\npatsy: 0.5.0\r\ndateutil: 2.6.1\r\npytz: 2017.3\r\nblosc: None\r\nbottleneck: 1.2.1\r\ntables: 3.4.2\r\nnumexpr: 2.6.4\r\nfeather: None\r\nmatplotlib: 2.1.2\r\nopenpyxl: 2.4.10\r\nxlrd: 1.1.0\r\nxlwt: 1.3.0\r\nxlsxwriter: 1.0.2\r\nlxml: 4.1.1\r\nbs4: 4.6.0\r\nhtml5lib: 1.0.1\r\nsqlalchemy: 1.2.1\r\npymysql: None\r\npsycopg2: None\r\njinja2: 2.10\r\ns3fs: None\r\nfastparquet: None\r\npandas_gbq: None\r\npandas_datareader: 0.6.0"}}
{"actor":{"display_login":"ymhiri"}}