Similarities between R and Pandas syntaxes