Update 特征汇总

pull/2/head
benjas 4 years ago
parent 14ede880ff
commit 26a039fae5

@ -5548,7 +5548,8 @@
"metadata": {},
"outputs": [],
"source": [
"sorted_link = np.sort(df2['link_ID_en'].unique())"
"sorted_link = np.sort(df2['link_ID_en'].unique())\n",
"df2['link_ID_en'] = df2['link_ID_en'].map(lambda x: np.argmin(x >= sorted_link))"
]
},
{
@ -5556,7 +5557,18 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"df2.head()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df2.to_csv('com_trainning.txt',header=True,index=None,sep=';',mode='w')"
]
}
],
"metadata": {

Loading…
Cancel
Save