jypyter notebook数据清洗

问题遇到的现象和发生背景

img


在jupyter notebook上读取txt文件,不知道怎么数据清洗

问题相关代码,请勿粘贴截图

from pyecharts.charts import Map
import pyecharts.options as opts,requests,json,pandas as pd
import re
import pandas as pd
import numpy as np

df = pd.read_csv("city.txt",encoding="utf-8",)
df

运行结果及报错内容

img

我的解答思路和尝试过的方法
我想要达到的结果

img


想在jupyter notebook要变成这种样子。

img


这是我txt文档的样子。