When are you able to specify the function after the dataframe and when must you specify the function before?
For example,
file = example.txt
file.readline()
This will work fine. But,
file = example.txt
file.type()
This will not work. You have to use type(file)
.
I'm confused by this syntax and when to use each.