def _format_axes(self):
if not self.obj.index.is_unique and self.orient in (<EOL>'<STR_LIT:index>', '<STR_LIT>'):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>".format(orient=self.orient))<EOL><DEDENT>if not self.obj.columns.is_unique and self.orient in (<EOL>'<STR_LIT:index>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>".format(orient=self.orient))<EOL><DEDENT>
Try to format axes if they are datelike.