.rating.isin
时间: 2023-10-02 15:05:15 浏览: 91
这是 Pandas 库中 DataFrame 类的一个方法,用于筛选 DataFrame 中某一列中的值是否在给定的列表中。具体使用方法如下:
```python
df[df['column_name'].isin(list_of_values)]
```
其中,`df` 是一个 DataFrame 对象,`column_name` 是 DataFrame 中的某一列的名称,`list_of_values` 是一个包含要筛选的值的列表。该方法将返回一个新的 DataFrame 对象,其中只包含指定列中的值在给定列表中的行。
相关问题
RUHSOLD dataset.
RUHSOLD dataset is a publicly available dataset that contains Russian hotel reviews. It consists of 100,000 hotel reviews in Russian language and covers a wide range of hotels across Russia. The dataset is divided into two subsets: a training set with 80,000 reviews and a test set with 20,000 reviews. Each review is labeled with a rating on a scale of 1 to 5, where 1 is the lowest and 5 is the highest rating. The dataset can be used for sentiment analysis and other natural language processing tasks.
https://iftp.chinamoney.com.cn/english/bdInfo/ 1. 从链接页面获取公开数据 2. 需要获取数据的条件: Bond Type=Treasury Bond, Issue Year=2023 3. 解析返回表格数据,列名包括ISIN, Bond Code, Issuer, Bond Type, Issue Date, Latest Rating 3. 保存成有效csv文件,
好的,我会帮你完成这个任务。首先,我会访问提供的链接并从页面上获取公开数据。然后,我会应用条件来筛选出需要的数据,即债券类型为Treasury Bond,并且发行年份为2023年。接下来,我会解析返回的表格数据,并提取需要的列名,包括ISIN、Bond Code、Issuer、Bond Type、Issue Date和Latest Rating。最后,我会将这些数据保存成有效的CSV文件。请稍等片刻。