<jupyter_start><jupyter_text>去除多余列<jupyter_code>data.drop(data.columns[3],axis=1,inplace=True)<jupyter_output><empty_output><jupyter_text>将编号列作为索引<jupyter_code>data.set_index('编号', inplace = True)
data.replace({'强烈反对': -2, '反对':- 1, '同意':1, '强烈同意':2}, inplace = True)
data.head()
data.corrwith(data[[-3]])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.208955223880597, 'fraction_numerical': 0.020895522388059702, 'mean_word_length': 13.0, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '6023', 'license': 'MIT', 'n_tokens_mistral': 171, 'n_tokens_neox': 176, 'n_words': 13, 'path': 'Untitled.ipynb', 'repo_name': 'KylinDC/Analysis-to-Chinese-political-coordinates-test', 'size': '335'}