DEV Community

Nilotpal Choudhury
Nilotpal Choudhury

Posted on

Answer: Adding new column to existing DataFrame in Python pandas

I would like to add a new column, 'e', to the existing data frame and do not change anything in the data frame. (The series always got the same length as a dataframe.)

I assume that the index values in e match those in df1.

The easiest way to…

Top comments (0)