Fixed deprected dataframe method.