Use 'return' instead of 'print' statement on dfs with nrow <100