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

Method DataFrame

src/sql/run.py:146–150  ·  view source on GitHub ↗

Returns a Pandas DataFrame instance built from the result set.

(self)

Source from the content-addressed store, hash-verified

144 return dict(zip(self.keys, zip(*self)))
145
146 def DataFrame(self):
147 "Returns a Pandas DataFrame instance built from the result set."
148 import pandas as pd
149 frame = pd.DataFrame(self, columns=(self and self.keys) or [])
150 return frame
151 def pie(self, key_word_sep=" ", title=None, **kwargs):
152 """Generates a pylab pie chart from the result set.
153

Callers 1

runFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected