def load_django_(self, query: "django query") -> "Ds":
        """Returns a DataSwim instance from a django orm query

        :param query: django query from a model
        :type query: django query
        :return: a dataswim instance with data from a django query
        :rtype: Ds

        :example: ``ds2 = ds.load_django_(Mymodel.objects.all())``
        """
        try:
            df = self._load_django(query)
            return self.clone_(df)
        except Exception as e:
            self.err(e, "Can not load data from query")
def load_django_ ( self , query : "django query" ) -> "Ds" : try : df = self . _load_django ( query ) return self . clone_ ( df ) except Exception as e : self . err ( e , "Can not load data from query" )
Returns a DataSwim instance from a django orm query

        :param query: django query from a model
        :type query: django query
        :return: a dataswim instance with data from a django query
        :rtype: Ds

        :example: ``ds2 = ds.load_django_(Mymodel.objects.all())``