Skip to content
Advertisement

Concatenate strings (‘not float’)

Hello I have 3 different dataframes whose values I want to add.

I have the following dataframes below and the code I used to add the values all together but I encountered an error. I would appreciate any help, thank you very much.

JavaScript

I used this code to add the values in the dataframes:

JavaScript

However I got this Error:

JavaScript

Here is an example of how I want the result will be:

Final DataFrame:

JavaScript

looks like this but the values are added together or subtracted.

Advertisement

Answer

Here is the pandas output:

JavaScript

Here is the csv output:

JavaScript

Here is the code:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement