def convert_to_supported_type(variable) :
	"""
	Converts variables into types which are
	supported by MySQL.
	
	Types such as float64 are not supported
	by SQL. 
	
	Inspired by:
	https://stackoverflow.com/questions/17053435/mysql-connector-python-insert-python-variable-to-mysql-table
	
	"""
	
	if type(variable).__name__ == 'float64' :
		return float(variable)
		
	elif type(variable).__name__ == 'int64' :
		return int(variable)
		
	else :
		return variable