Python Forum

Full Version: ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long long'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am new to Python. I got the error message in the title which is meaningless to me when my program got to the following line:
dfTemp = pd.concat([tenderers, newTenderer], axis=1) 
I am trying to join two dataframes on the vertical axis. Could someone either tell me what I am doing wrong or if there is another way of achieving my goal, please?
What data frames are defined under tenderers and newTenderer ? tenderers.info()?
To do vertical concatenation you need to pass axis=0 instead:
# short example
import pandas as pd
x = pd.DataFrame(pd.np.random.rand(10,10))
pd.concat([x, x], axis=0)
scidam,
Thank you very much! That seems to have fixed my problem. I can now move on to my next one. Big Grin