def format_date(self, data):
        if self.datetime_formatting == 'rfc-2822':
            return format_date(data)

        return data.isoformat()
Fit estimator and compute scores for a given dataset split.
dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/serializers.py/Serializer.format_date--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/model_selection/_validation.py/_fit_and_score