Every line of 'pandas date format' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
528 def _convert_date_format(frame, date_format=None): 529 if date_format is not None: 530 531 def _convert(col): 532 if col.dtype.name == "datetime64[ns]": 533 return col.apply(lambda x: x.strftime(date_format)) 534 return col 535 536 frame = frame.apply(_convert) 537 return frame
114 def date_to_str(x): 115 d = datetime.utcfromtimestamp(x).date() 116 return self.x_value_formatter(d)