Error message upon running analysis

Good day,

Upon execution of the command
“ncov$ snakemake --profile <location of build, config, fasta and tsv files>-p”

I am met with the following lines of error:

Traceback (most recent call last):
File “scripts/diagnostic.py”, line 38, in
recent_sequences = metadata.date_submitted.apply(lambda x: datestr_to_ordinal(x)>recency_cutoff)
File “/home/artic/miniconda3/envs/nextstrain/lib/python3.8/site-packages/pandas/core/generic.py”, line 5465, in getattr
return object.getattribute(self, name)
AttributeError: ‘DataFrame’ object has no attribute ‘date_submitted’
[Tue Jul 6 20:55:45 2021]
Error in rule diagnostic:
jobid: 14
output: results/to-exclude_test.txt
log: logs/diagnostics_test.txt (check log file(s) for error message)
shell:

    python3 scripts/diagnostic.py             --metadata results/sanitized_metadata_test.tsv.xz             --clock-filter 20             --snp-clusters 1             --output-exclusion-list results/to-exclude_test.txt 2>&1 | tee logs/diagnostics_test.txt
    
    (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Logfile logs/diagnostics_test.txt:
Traceback (most recent call last):
File “scripts/diagnostic.py”, line 38, in
recent_sequences = metadata.date_submitted.apply(lambda x: datestr_to_ordinal(x)>recency_cutoff)
File “/home/artic/miniconda3/envs/nextstrain/lib/python3.8/site-packages/pandas/core/generic.py”, line 5465, in getattr
return object.getattribute(self, name)
AttributeError: ‘DataFrame’ object has no attribute ‘date_submitted’

Any assistance will be appreciated