/dports/textproc/py-agate/agate-1.6.3/tests/test_table/ |
H A D | __init__.py | 53 table2 = Table([], self.column_names, self.column_types) 69 table = Table(self.rows, column_types=column_types) 82 column_types = dict(zip(self.column_names, self.column_types)) 83 table = Table(self.rows, column_names=self.column_names, column_types=column_types) 90 column_types = dict(zip(self.column_names[:2], self.column_types[:2])) 91 table = Table(self.rows, column_names=self.column_names, column_types=column_types) 115 Table(self.rows, column_names, self.column_types) 121 Table(self.rows, self.column_names, column_types) 129 Table(self.rows, column_names, self.column_types) 297 self.column_types, [all …]
|
H A D | test_merge.py | 22 self.column_types = [self.number_type, self.number_type, self.text_type] 25 table_a = Table(self.rows, self.column_names, self.column_types) 36 table_a = Table(self.rows, self.column_names, self.column_types) 40 table_b = Table(self.rows, column_names, self.column_types) 54 table_a = Table(self.rows, self.column_names, self.column_types) 58 table_b = Table(self.rows, column_names, self.column_types) 72 table_a = Table(self.rows, self.column_names, self.column_types) 74 column_types = [self.number_type, self.text_type, self.text_type] 76 table_b = Table(self.rows, self.column_names, column_types) 82 table_a = Table(self.rows, self.column_names, self.column_types, row_names='three') [all …]
|
H A D | test_from_csv.py | 27 self.column_types = [ 32 table1 = Table(self.rows, self.column_names, self.column_types) 41 table1 = Table(self.rows, self.column_names, self.column_types) 50 table1 = Table(self.rows, self.column_names, self.column_types) 59 table1 = Table(self.rows, self.column_names, self.column_types) 79 table = Table.from_csv('examples/test.csv', column_types=tester) 86 table = Table.from_csv('examples/test.csv', column_types=tester) 114 table1 = Table(self.rows, self.column_names, self.column_types) 135 table1 = Table(self.rows[1:], column_types=self.column_types) 149 table1 = Table(self.rows[1:], column_types=self.column_types) [all …]
|
H A D | test_print_bars.py | 26 self.column_types = [ 33 table = Table(self.rows, self.column_names, self.column_types) 40 table = Table(self.rows, self.column_names, self.column_types) 49 table = Table(self.rows, self.column_names, self.column_types) 58 table = Table(self.rows, self.column_names, self.column_types) 63 table = Table(self.rows, self.column_names, self.column_types) 75 table = Table(rows, self.column_names, self.column_types) 85 table = Table(rows, self.column_names, self.column_types) 89 table = Table(self.rows, self.column_names, self.column_types) 95 table = Table(self.rows, self.column_names, self.column_types)
|
H A D | test_pivot.py | 36 table = Table(self.rows, self.column_names, self.column_types) 53 table = Table(self.rows, self.column_names, self.column_types) 68 table = Table(self.rows, self.column_names, self.column_types) 83 table = Table(self.rows, self.column_names, self.column_types) 89 table = Table(self.rows, self.column_names, self.column_types) 102 table = Table(self.rows, self.column_names, self.column_types) 118 table = Table(self.rows, self.column_names, self.column_types) 134 table = Table(self.rows, self.column_names, self.column_types) 158 table = Table(self.rows, self.column_names, self.column_types) 175 table = Table(self.rows, self.column_names, self.column_types) [all …]
|
H A D | test_normalize.py | 22 self.column_types = [self.number_type, self.text_type, self.number_type, self.text_type] 25 table = Table(self.rows, self.column_names, self.column_types) 40 table = Table(self.rows, self.column_names, self.column_types) 42 normalized_table = table.normalize('one', 'three', column_types=[Text(), Text()]) 55 table = Table(self.rows, self.column_names, self.column_types) 57 …normalized_table = table.normalize('one', 'three', column_types=TypeTester(force={'value': Text()}… 70 table = Table(self.rows, self.column_names, self.column_types) 88 table = Table(self.rows, self.column_names, self.column_types) 106 table = Table(self.rows, self.column_names, self.column_types)
|
H A D | test_denormalize.py | 22 self.column_types = [self.text_type, self.text_type, self.text_type, self.text_type] 25 table = Table(self.rows, self.column_names, self.column_types) 40 table = Table(self.rows, self.column_names, self.column_types) 54 table = Table(self.rows, self.column_names, self.column_types) 70 table = Table(self.rows, self.column_names, self.column_types) 85 table = Table(self.rows, self.column_names, self.column_types) 87 … normalized_table = table.denormalize(None, 'property', 'value', column_types=[Text(), Number()]) 99 table = Table(self.rows, self.column_names, self.column_types) 102 normalized_table = table.denormalize(None, 'property', 'value', column_types=type_tester)
|
H A D | test_to_json.py | 27 self.column_types = [ 32 table = Table(self.rows, self.column_names, self.column_types) 45 table = Table(self.rows, self.column_names, self.column_types) 58 table = Table(self.rows, self.column_names, self.column_types) 71 table = Table(self.rows, self.column_names, self.column_types) 84 table = Table(self.rows, self.column_names, self.column_types) 97 table = Table(self.rows, self.column_names, self.column_types) 105 table = Table(self.rows, self.column_names, self.column_types) 113 table = Table(self.rows, self.column_names, self.column_types) 128 table = Table(self.rows, self.column_names, self.column_types) [all …]
|
H A D | test_rename.py | 23 self.column_types = [self.number_type, self.number_type, self.text_type] 26 table = Table(self.rows, self.column_names, self.column_types) 36 table = Table(self.rows, self.column_names, self.column_types, row_names=['a', 'b', 'c']) 46 table = Table(self.rows, self.column_names, self.column_types) 56 table = Table(self.rows, self.column_names, self.column_types) 66 table = Table(self.rows, self.column_names, self.column_types) 76 table = Table(self.rows, self.column_names, self.column_types) 87 table = Table(self.rows, self.column_names, self.column_types) 101 table = Table(self.rows, column_names, self.column_types) 115 table = Table(self.rows, self.column_names, self.column_types, row_names=strings)
|
H A D | test_print_table.py | 26 self.column_types = [ 34 table = Table(self.rows, self.column_names, self.column_types) 44 table = Table(self.rows, self.column_names, self.column_types) 54 table = Table(self.rows, self.column_names, self.column_types) 71 column_types = [ 76 table = Table(rows, column_names, column_types) 103 table = Table(rows, column_names, self.column_types) 118 table = Table(self.rows, self.column_names, self.column_types) 130 table = Table(self.rows, self.column_names, self.column_types)
|
H A D | test_bins.py | 20 self.column_types = [self.number_type] 28 new_table = Table(rows, self.column_names, self.column_types).bins('number') 56 new_table = Table(rows, self.column_names, self.column_types).bins('number', 10, start=-100) 71 new_table = Table(rows, self.column_names, self.column_types).bins('number') 86 new_table = Table(rows, self.column_names, self.column_types).bins('number') 98 … table_one = Table(rows, self.column_names, self.column_types).bins('number', start=1, end=11) 99 … table_two = Table(rows, self.column_names, self.column_types).bins('number', start=-1, end=9) 110 new_table = Table(rows, self.column_names, self.column_types).bins('number') 136 new_table = Table(rows, self.column_names, self.column_types).bins('number')
|
H A D | test_to_csv.py | 26 self.column_types = [ 31 table = Table(self.rows, self.column_names, self.column_types) 46 table = Table(self.rows, self.column_names, self.column_types) 65 table = Table(self.rows, self.column_names, self.column_types) 78 table = Table(self.rows, self.column_names, self.column_types) 94 table = Table(self.rows, self.column_names, self.column_types)
|
/dports/databases/py-agate-sql/agate-sql-0.5.8/tests/ |
H A D | test_agatesql.py | 27 self.column_types = [ 45 self.assertIsInstance(table.column_types[1], agate.Text) 47 self.assertIsInstance(table.column_types[3], agate.Date) 55 column_types = [agate.Number(), agate.Text()] 65 table1 = agate.Table(rows1, column_names, column_types) 66 table2 = agate.Table(rows2, column_names, column_types) 178 column_types = [agate.Number(), agate.Text()] 192 column_types = [agate.Number(), agate.Text()] 206 column_types = [agate.Number(), agate.Text()] 217 column_types = [agate.Number(), agate.Text()] [all …]
|
/dports/textproc/py-agate/agate-1.6.3/agate/table/ |
H A D | __init__.py | 96 if column_types is None: 97 column_types = TypeTester() 98 elif isinstance(column_types, dict): 99 for v in column_types.values(): 103 column_types = TypeTester(force=column_types) 105 for column_type in column_types: 109 if isinstance(column_types, TypeTester): 112 self._column_types = tuple(column_types) 210 def column_types(self): member in Table 270 if column_types is None: [all …]
|
H A D | denormalize.py | 20 column_types=None): argument 129 key_column_types = [self.column_types[self.column_names.index(name)] for name in key] 131 if column_types is None or isinstance(column_types, TypeTester): 132 tester = TypeTester() if column_types is None else column_types 139 new_column_types = key_column_types + list(column_types)
|
H A D | normalize.py | 9 def normalize(self, key, properties, property_column='property', value_column='value', column_types… argument 87 if column_types is None or isinstance(column_types, TypeTester): 88 tester = TypeTester() if column_types is None else column_types 95 new_column_types = key_column_types + list(column_types)
|
H A D | merge.py | 41 column_type = table.column_types[i] 50 column_types = tuple(new_columns.values()) 56 if table.column_names == column_keys and table.column_types == column_types: 67 return Table(rows, column_keys, column_types, row_names=row_names, _is_fork=True)
|
/dports/devel/py-cli-helpers/cli_helpers-2.2.0/tests/tabular_output/ |
H A D | test_preprocessors.py | 96 column_types = (float, float) 98 results = align_decimals(data, headers, column_types=column_types) 107 column_types = () 109 results = align_decimals(data, headers, column_types=column_types) 118 column_types = (float, float) 120 results = align_decimals(data, headers, column_types=column_types) 266 data, headers, column_types=(int,), integer_format=",", float_format="," 279 data, headers, column_types=(float,), integer_format=",", float_format="," 292 data, headers, column_types=(float,), integer_format=",", float_format="," 304 data, headers, column_types=(int, float), integer_format="," [all …]
|
/dports/textproc/py-agate/agate-1.6.3/agate/tableset/ |
H A D | aggregate.py | 19 …column_names, column_types, nested_output, row_name_columns = _aggregate(nested_tableset, aggregat… 27 column_types.insert(0, self._key_type) 32 column_types = [self._key_type] 37 column_types.append(aggregation.get_aggregate_data_type(self._sample_table)) 51 return column_names, column_types, output, row_name_columns 73 column_names, column_types, output, row_name_columns = _aggregate(self, aggregations) 81 return Table(output, column_names, column_types, row_names=row_names)
|
H A D | from_json.py | 15 def from_json(cls, path, column_names=None, column_types=None, keys=None, **kwargs): argument 49 … tables[name] = Table.from_json(filepath, keys[i], column_types=column_types, **kwargs) 51 tables[name] = Table.from_json(filepath, column_types=column_types, **kwargs) 61 tables[key] = Table.from_object(value, column_types=column_types, **kwargs)
|
/dports/textproc/py-agate/agate-1.6.3/tests/ |
H A D | test_columns.py | 32 self.column_types = [self.number_type, self.number_type, self.text_type] 34 self.table = Table(self.rows, self.column_names, self.column_types) 51 table = Table(self.rows, self.column_names, self.column_types, row_names='three') 58 table = Table(self.rows, self.column_names, self.column_types, row_names='three') 83 table = Table(self.rows, self.column_names, self.column_types, row_names='three') 92 table = Table(self.rows, self.column_names, self.column_types, row_names='three') 113 table = Table(rows, self.column_names, self.column_types) 127 table = Table(rows, self.column_names, self.column_types)
|
/dports/textproc/py-agate/agate-1.6.3/tests/test_tableset/ |
H A D | __init__.py | 43 self.column_types = [self.text_type, self.number_type] 46 ('table1', Table(self.table1, self.column_names, self.column_types)), 47 ('table2', Table(self.table2, self.column_names, self.column_types)), 48 ('table3', Table(self.table3, self.column_names, self.column_types)) 60 ('table3', Table(self.table3, ['foo', 'bar'], self.column_types)) 87 ….assertSequenceEqual([type(t) for t in tableset1.column_types], [type(t) for t in tableset2.column… 128 ….assertSequenceEqual([type(t) for t in tableset1.column_types], [type(t) for t in tableset2.column… 151 [type(t) for t in tableset1.column_types], 152 [type(t) for t in tableset2.column_types], 153 [type(t) for t in tableset3.column_types] [all …]
|
/dports/finance/grisbi/grisbi-2.0.5/src/ |
H A D | custom_list.c | 199 custom_list->column_types[0] = G_TYPE_STRING; /* col 0 ( check by default) */ in custom_list_init() 200 custom_list->column_types[1] = G_TYPE_STRING; /* col 1 ( date by default) */ in custom_list_init() 201 custom_list->column_types[2] = G_TYPE_STRING; /* col 2 ( payee by default) */ in custom_list_init() 202 custom_list->column_types[3] = G_TYPE_STRING; /* col 3 ( P/R by default) */ in custom_list_init() 203 custom_list->column_types[4] = G_TYPE_STRING; /* col 4 ( debit by default) */ in custom_list_init() 206 custom_list->column_types[7] = GDK_TYPE_RGBA; /* col 7 ( color of bg ) */ in custom_list_init() 208 custom_list->column_types[9] = G_TYPE_STRING; /* col 9 ( color of amount ) */ in custom_list_init() 211 custom_list->column_types[12] = G_TYPE_INT; /* col 12 ( what is line ) */ in custom_list_init() 212 custom_list->column_types[13] = G_TYPE_STRING; /* col 12 ( font ) */ in custom_list_init() 346 return CUSTOM_LIST(tree_model)->column_types[index]; in custom_list_get_column_type() [all …]
|
/dports/x11-toolkits/p5-Gtk2-Ex-Simple-List/Gtk2-Ex-Simple-List-0.50/lib/Gtk2/Ex/Simple/ |
H A D | List.pm | 17 our %column_types; 18 *column_types = \%Gtk2::Ex::Simple::TiedCommon::column_types; 52 . join(", ", keys %column_types) 53 unless exists $column_types{$typekey}; 54 my $type = $column_types{$typekey}{type}; 64 rtype => $column_types{$_[$i+1]}{renderer}, 65 attr => $column_types{$_[$i+1]}{attr},
|
/dports/devel/py-cli-helpers/cli_helpers-2.2.0/cli_helpers/tabular_output/ |
H A D | output_formatter.py | 138 column_types=None, argument 164 if column_types is None: 166 column_types = self._get_column_types(data) 168 data, headers = f(data, headers, column_types=column_types, **fkwargs) 169 return formatter(list(data), headers, column_types=column_types, **fkwargs)
|