Cast input to DataFrame from Series before performing operations