86ee5d290906f342a8b0f6f3461cb109bdc4c71d,scattertext/ScatterChart.py,ScatterChart,to_dict,#ScatterChart#Any#Any#Any#Any#Any#,65
Before Change
bg_terms = bg_terms.reset_index()
bg_terms.columns = ["term" if x == "index" else x for x in bg_terms.columns]
json_df = pd.merge(json_df, bg_terms, on="term", how="left")
json_df["bg"] = json_df["bg"].fillna(0)
category_terms = list(json_df.sort_values("s")["term"][:10])
not_category_terms = list(json_df.sort_values("s")["term"][:10])
After Change
df["not cat freq"] = df[[x for x in other_categories]].sum(axis=1)
json_df = df[["x", "y", "term"]]
if self.term_significance:
json_df["p"] = df["p"]
self._add_term_freq_to_json_df(json_df, df, category)
json_df["s"] = percentile_min(df["color_scores"])
json_df["os"] = df["color_scores"]
json_df["bg"] = self._get_corpus_characteristic_scores(json_df)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: JasonKessler/scattertext
Commit Name: 86ee5d290906f342a8b0f6f3461cb109bdc4c71d
Time: 2017-03-01
Author: jason.kessler@gmail.com
File Name: scattertext/ScatterChart.py
Class Name: ScatterChart
Method Name: to_dict
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 9ed54295701c9207c1f777a3f5fa9ede51c96a14
Time: 2017-09-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/data_fq.py
Class Name:
Method Name: QA_data_make_hfq
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 9ed54295701c9207c1f777a3f5fa9ede51c96a14
Time: 2017-09-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/data_fq.py
Class Name:
Method Name: QA_data_make_qfq