Is there a way to set a parameter to automatically increase the pandas.DataFrame index when adding new rows or define a function to control the creation of new indexes?
You can set ignore_index=True when append -ing:
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