I'm trying to do a very simple thing - to get a pandas dataframe column and use it as a vector. I'm new to python. In R, using dplyr, I'd do:
my_data_frame %>% pull(my_favourite_column)
How to achieve this in Python? I tried these:
import pandas as pd
test = pd.read_csv(os.path.join(PATH_TO_FILE, 'test.csv'))
my_col = as.vector(test['my_column'])
my_col = test[['my_column']]
my_col = test.my_column.to_string()
but no success.