lite表,不是numpy或sqliteoperations上的depden,…查找、筛选、分组、排序、顶部、尾部..
ltable的Python项目详细描述
纯python表,操作find,filter,sort,group,top,tail…
theTable = SSTable() theTable.addIndex( "c_1", 'idx1' ); vCol = [ "c_1", "c_2" ] theTable.addIndex( vCol, 'idx2' ); theTable.addRow( dict( c_1 = 1, c_2 = 2 ) ) theTable.addRow( dict( c_1 = 1, c_2 = 2 ) ) theTable.addRow( dict( c_1 = 2, c_2 = 3 ) ) #search by index rs = theTable.findRow( "idx2", ( 1, 2 ) ) pprint( rs.top( 1 ).to_list() ) grs = rs.group( ("c_1") )
- 2014年6月3日
- 修复错误:移除后无法找到任何内容