Find the unique indices for a database
special_snowflake的Python项目详细描述
因为数据集通常只提供很少的元数据,所以我想 不依赖于特殊的 信息。其中一种元数据是数据集的模式。
特殊雪花在任意数据集中查找唯一标识符。 像这样跑。
$ snowflake bus_stops.csv route.number, stop.id, n.students time, n.students, location route.name, n.students, location route.name, stop.id route.number, stop.id, time
默认情况下,您将获得最多三列的所有组合 在bus_stops.csv中,它作为 完整的电子表格。
或者从python调用它!
from special_snowflake import fromcsv from pprint import pprint with open('open-data-index.csv') as fp: pprint(fromcsv(csv.DictReader(fp), n_columns = 2, only_adjacent = False))
此程序查找一列或两列的所有组合 在open-data-index.csv中,它作为 完整的电子表格。