max_data_len = 0
for label, _ in data:
if len(label) > max_data_len:
max_data_len = len(label)
fmt = "{0:%d} {1}\n" % max_data_len
for label, value in data:
// Padding is extended by 1 to account for the extra space after
// longest tag string
fh.write(fmt.format(label, value))
def _check_positional_metadata(df, data_type):
// Asserts positional metadata feature names are unique