Does df contain a field called date with the correct format? Can you provide a reproducible example with a minimal dataset the reproduces that problem?
Does df contain a field called date with the correct format? Can you provide a reproducible example with a minimal dataset the reproduces that problem?