I have a variable target_test (for machine learning) and I'd like to display just one element of target_test.
type(target_test) print the following statement on the terminal :
class 'pandas.core.series.Series'
If I do print(target_test) then I get the entire 2 vectors that are displayed.
But I'd like to print just the second element of the first column for example.
So do you have an idea how I could do that ?
I convert target_test to frame or to xarray but it didn't change the error I get.
When I write something like : print(targets_test[0][0])
I got the following output :
TypeError: 'instancemethod' object has no attribute '__getitem__'
target_test.iloc[1]?targets_test[0]should do the trick. (ortargets_test.iloc[0]if you have a custom index).