Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebook/参考答案.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
}
],
"source": [
"L_full = [i+' '+j if i!=j else i for i in df['Type 1'].unique() for j in df['Type 1'].unique()]\n",
"L_full = [i+' '+j if not isinstance(j, float) else i for i in df['Type 1'].unique() for j in df['Type 2'].unique()]\n",
"L_part = [i+' '+j if not isinstance(j, float) else i for i, j in zip(df['Type 1'], df['Type 2'])]\n",
"res = set(L_full).difference(set(L_part))\n",
"len(res) # 太多,不打印了"
Expand Down