In many other python tools e.g. matplotlib they prefer writing the full word 
'linear' and
'nearest'
and in that way you can reduce the time that a user needs to understand what this function does.