Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • Thanks! this is helpful. the problem now may be that time is actually in datatime format so is not numeric. perhaps I should just add a column on ones as a workaround? Commented Apr 6, 2017 at 12:32
  • I think it is same problem. But I have idea how check this values, give me a sec. Commented Apr 6, 2017 at 12:33
  • pandas.core.base.DataError: No numeric types to aggregate is my current error. Unfortunatley i didnt put the correct data types in the example for Time its in the form '2016-12-12' Commented Apr 6, 2017 at 12:42
  • Ok, no problem. Main question is - do you need mean? Commented Apr 6, 2017 at 12:43
  • Or only first value? Commented Apr 6, 2017 at 12:44