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

Fix formatting typos and ensure the "foo.csv" ipython processing works.

Fixes #6073