DOC/BUG: Fix documentation for `infer_datetime_format` #6073

Fix formatting typos and ensure the "foo.csv" ipython processing works.
Merge pull request #6078 from danbirken/infer-dt-doc-fix

DOC/BUG: Fix documentation for `infer_datetime_format` #6073