Is there any intuition behind why some functions are instance vs. class?
For instance, if I have a DataFrame df
and import pandas/Numpy then:
df.head() # works
df.head # doesn't work
pd.head(df) # doesn't work
df.columns # works
df.columns() # doesn't work
pd.columns(df) # doesn't work
Is it pure memorization why the things that work work, and the things that don't work don't work, or is there some intuition?