Sorry - I was focused on getting the arguments, not syntax. The code below is running perfectly on the titanic dataset from Kaggle - tdf is my dataframe. However, I would like to know what options/arguments are all available with a predefined function like loc.
print(tdf.loc[5])
print(tdf.loc[5, ['Pclass', 'Name']])
print(tdf.loc[7:9])
Clearly, since all the code above works fine for me, I have something like:
loc[start= : end= , columns = [ ]] (Just guessing here, and there must be more to it)
But if I hadn't guessed this from snippets here and there, how would I know? I'm trying to find documentation on all options/arguments for a given python function, in a general way, just using loc for example.
If I use shift+tab with something like
tdf.index() I immediately get the following docstring:
String form: RangeIndex(start=0, stop=891, step=1)
This is very helpful - how do I get something like this for loc?