def to_csv(self, path): """ Same as ``all``, but the results of the query are output to the specified path as a CSV file. """ save_results( self.corpus.execute_cypher(self.cypher(), **self.cypher_params()), path)
def to_csv(self, path): """ writes the query to csv Parameters ---------- path : str where the csv is to be written """ write = True for q in self.split_queries(): if self.stop_check is not None and self.stop_check(): return r = self.corpus.execute_cypher(q.cypher(), **q.cypher_params()) if write: save_results(r, path, mode='w') write = False else: save_results(r, path, mode='a')
def to_csv(self, path): """ writes the query to csv Parameters ---------- path : str where the csv is to be written """ write = True for q in self.split_queries(): if self.stop_check is not None and self.stop_check(): return r = self.corpus.execute_cypher(q.cypher(), **q.cypher_params()) if write: save_results(r, path, mode = 'w') write = False else: save_results(r, path, mode = 'a')
def to_csv(self, path): """ Same as ``all``, but the results of the query are output to the specified path as a CSV file. """ save_results(self.corpus.execute_cypher(self.cypher(), **self.cypher_params()), path)
def to_csv(self, path): save_results(self, path)