list = {"评论":text1,"时间":text2} df = pd.DataFrame(list)
时间: 2023-05-28 15:07:27 浏览: 142
As an AI language model, I cannot see the full context and purpose of your code. However, based on the syntax you provided, it seems like you are trying to create a pandas dataframe using two variables (text1 and text2) and assigning them to two columns ('评论' and '时间').
To create a pandas dataframe, you need to first import the pandas library:
``` python
import pandas as pd
```
Then, you can create a dictionary with your data:
``` python
data = {"评论": text1, "时间": text2}
```
Finally, you can use the pandas DataFrame() function to create the dataframe:
``` python
df = pd.DataFrame(data)
```
This will create a dataframe with two columns ('评论' and '时间') and as many rows as there are elements in text1 and text2.
阅读全文