I have a dataframe df which looks like this:
CustomerId Age
1 25
2 18
3 45
4 57
5 34
I have a list called "Price" which looks like this:
Price = [123,345,1212,11,677]
I want to add that list to the dataframe. Here is my code:
df['Price'] = Price
It seems to work but when I print the dataframe the field called "Price" contains all the metadata information such as Name, Type... as well as the value of the Price.
How can I create a column called "Price" containing only the values of the Price list so that the dataframe looks like:
CustomerId Age Price
1 25 123
2 18 345
3 45 1212
4 57 11
5 34 677