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.

Required fields*

2
  • 2
    I really do not understand, why this is not the preferred answer. In case you have a pd.Series, the tolist() command might be helpful. Commented May 23, 2019 at 16:01
  • The OP have a Series e and the way of add a column to a df is different than add list. the above answers explain well what to do in that case especially the @firelynx answer. The below answers mostly are not aware about that.... Commented Jan 26, 2022 at 21:46