Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

From row to column vector for a specific condition in python ?

From row to column vector for a specific condition in python ?

You can use this:

 values = [[x] for x in values] 

and make it a numpy array like this:

 values = Flux[Flux >= 0]
values = np.array([[x] for x in values])
print("positive values =",[values])

7 0

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online