'Inserting new data to dataframe with Date index

I have a DF like below with Date value as Index

enter image description here

I have the 6 values in an array and i have added 6 more values to the same array like: enter image description here

Now i need to append the whole 12 values to the same array with new Date index value like below:

enter image description here

When i try to set the value using test['value'] = new_values , it is giving the below error:

ValueError: Length of values (18) does not match length of index (12)

Please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source