👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
I am pulling a subset of data from a column based on conditions in another column being met.
I can get the correct values back but it is in pandas.core.frame.DataFrame. How do I convert that to list?
import pandas as pd tst = pd.read_csv("C:SomeCSV.csv") lookupValue = tst["SomeCol"] == "SomeValue" ID = tst[lookupValue][["SomeCol"]] #How To convert ID to a list
👻 Read also: what is the best laptop for engineering students?