答案 0 :(得分:0)
我的笔记本电脑也面临着同样的问题。我所做的非常简单。在定义DataFrame时,我使用了br(这是长文本中的HTML换行标记)来破坏它们。
对于Ex-
concerns = pd.DataFrame({'Concerns':['Health and economic<br> impact on the<br> country',
'A member of my<br> family might contract<br> COVID-19',
'Cost-cutting measures<br> that might impact<br> my compensation'],
'Percentage':[72, 61, 40]
})