根据列表["Python","C","Scala","Java","GO","Scala","SQL","PHP","Python"]创建一个变量名为language的Series
时间: 2023-07-03 21:33:52 浏览: 546
基于Python Java Scala语言的MapReduce及Spark分词及词频统计效率对比
好的,以下是创建Series的代码:
```python
import pandas as pd
lst = ["Python","C","Scala","Java","GO","Scala","SQL","PHP","Python"]
language = pd.Series(lst)
```
这样就成功创建了一个变量名为`language`的Series,其中包含了列表中的所有元素。
阅读全文