Let's say you have a data frame:
df = pd.DataFrame(columns = ['item'], index = ['datetime'])
You can add an item on a specific date index:
df.loc[pd.datetime(2015, 1, 15)] = 23
Is there any way I can add/append new items on the same index?
Disclaimer: I understand that the index is supposed to be unique and what I'm asking is not very panda-stic. But for some applications, especially with multiple indexes it provides an easy way to select chunks of data.
EDIT: Meanwhile I've found the append()
function and it seems to do exactly that although it's kinda cumbersome.
Look also here.