def cluster_from_file(file, features, delim): x = fo.file_to_matrix(file, delim) x_clus = cluster(x, features) # we only care about data we can cluster x_clus = prune_no_cluster_data(x_clus) return x_clus
def analyze_file(file, delim, text_col, include_zero_polarity): x = fo.file_to_matrix(file, delim) x_sentiment = analyze(x, text_col, include_zero_polarity) return x_sentiment
def geojason_from_file(file, delim): x = fo.file_to_matrix(file, delim).astype(float) js_data = aggregate_matrix_data(x) js_data = normalize_geojson(js_data) js_string = create_geojson(js_data) return js_string