2013-02-08 4 views

ответ

14

Вы можете установить ignore_index=True когда append -ную:

In [1]: df = pd.DataFrame([[1,2],[3,4]]) 

In [2]: row = pd.Series([5,6]) 

In [3]: df.append(row, ignore_index=True) 
Out[3]: 
    0 1 
0 1 2 
1 3 4 
2 5 6 
Смежные вопросы