I have an existing data framework that needs to add an extra column that will contain the same value for each row.
Existing df:
Date, Open, High, Low, Close 01-01-2015, 565, 600, 400, 450
New df:
Name, Date, Open, High, Low, Close abc, 01-01-2015, 565, 600, 400, 450
I know how to add an existing series column / dataframe. But this is a completely different situation, because all I need to do is add a column βNameβ and set each row to the same value, in this case βabcβ.
I'm not quite sure how to do this.
python pandas
darkpool Apr 08 '15 at 14:09 2015-04-08 14:09
source share