from datetime import datetime


def str2datetime(s):

	"""
	Function that transforms a string datetime to a datetime object.

	Args:
		s: String datetime.

	Returns:
		A datetime object.
	"""
	return datetime.strptime(s, '%Y-%m-%d %H:%M:%S.%f')