可以使用以下代码从 Python Pandas DataFrame 中提取名为 'Close_Price' 的特定列并将其赋值给变量 x:

x = dataframe['Close_Price']

其中,dataframe 指的是你的数据框对象,'Close_Price' 是你要取出的列名。通过这行代码,你可以将该列的值赋给 x 变量。

Python Pandas: 如何提取 DataFrame 中的特定列 ('Close_Price')

原文地址: https://www.cveoy.top/t/topic/ocfE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录