Python Forum

Full Version: How to combine two float64 column vector?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All

I've 2 float64 column vector with same row and i would like to combine them as a one float64 matrix.

I tried df.replace from pandas and it gives me an error like this:

Error:
X_test= df.replace(to_replace=X_test[:,2799], value=result[:,0]) Traceback (most recent call last): File "<ipython-input-68-b1967d57b9e4>", line 1, in <module> X_test= df.replace(to_replace=X_test[:,2799], value=result[:,0]) NameError: name 'df' is not defined
can someone tell me where I'm doing wrong? or is there an alternative way to do this?
You haven't shown the code that df is defined in and the error is saying that it hasn't been defined.