MCPcopy Index your code
hub / github.com/catherinedevlin/ipython-sql / dict

Method dict

src/sql/run.py:142–144  ·  view source on GitHub ↗

Returns a dict built from the result set, with column names as keys

(self)

Source from the content-addressed store, hash-verified

140 raise KeyError('%d results for "%s"' % (len(result), key))
141 return result[0]
142 def dict(self):
143 "Returns a dict built from the result set, with column names as keys"
144 return dict(zip(self.keys, zip(*self)))
145
146 def DataFrame(self):
147 "Returns a Pandas DataFrame instance built from the result set."

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected