My current dataframe is as such:
Index M0 M2 M3
0 121 2520 -3
4 121 2521 -3
5 161 2321 -2
...
Currently, I have no index 1, 2, and so on. I would like to make this available by creating empty records. The end result is like this:
Index M0 M2 M3
0 121 2520 -3
1 0 0 0
2 0 0 0
3 0 0 0
4 121 2521 -3
5 161 2321 -2
...
I believe this is achievable by usual programming, but I would like to know if I can perform such operation using pandas
library.