Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Did you mean "appending a new df" or just "appending a new row", as your code shows? Commented Dec 11, 2019 at 6:52
  • sorry my sentence wasn't clear. i've read other people solutions that concat/append a whole new dataframe with just a single row. but in my solution its just a single row in the existing dataframe no need for an additional dataframe to be created Commented Jan 15, 2020 at 19:15
  • OP wanted to insert a row at position 0. Your code overwrites whatever there is at position 0. Commented Dec 23, 2022 at 18:23