Exemple #1
0
 def get_all(self):
     all_df = table_to_frame(self.table)
     return all_df
Exemple #2
0
 def _getitem_framekey(self, key):
     where = "{0} == {1}".format(self.frame_key, key)
     df = table_to_frame(self.table, where=where)
     del df[self.frame_key]
     return df
Exemple #3
0
 def _getitem_query(self, query):
     where = str(query)
     df = table_to_frame(self.table, where=where)
     return df
     # return in a form that's more useful. considering outputting panel
     return df.pivot(df.index, self.frame_key).stack().to_panel()
Exemple #4
0
 def get_data(self, name):
     table = self.get_table(name)
     df = table_to_frame(table)
     return df
Exemple #5
0
 def get_all(self):
     all_df = table_to_frame(self.table)
     return all_df
Exemple #6
0
 def _getitem_query(self, query):
     where = str(query)
     df = table_to_frame(self.table, where=where)
     return df
     # return in a form that's more useful. considering outputting panel
     return df.pivot(df.index, self.frame_key).stack().to_panel()
Exemple #7
0
 def _getitem_framekey(self, key):
     where = "{0} == {1}".format(self.frame_key, key)
     df = table_to_frame(self.table, where=where)
     del df[self.frame_key]
     return df
Exemple #8
0
 def get_data(self, name):
     table = self.get_table(name)
     df = table_to_frame(table)
     return df