I have a pandas series df (dates = index):
2015-09-10 58
2015-09-11 40
2015-09-12 33
2015-09-13 42
2015-09-14 22
2015-09-15 88
2015-09-16 99
2015-09-17 124
I'd like to drop the dates from 2015-09-11 to 2015-09-15, so my df would look like:
2015-09-10 58
2015-09-16 99
2015-09-17 124
I've tried using df.drop["2015-09-11":"2015-09-15"], but i get an error:
TypeError: 'instancemethod' object has no attribute '__getitem__'
Any advices?
Thanks!