腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
如何
切分
python
dataframe
中
的
列表
值
?
python-3.x
、
dataframe
我有一个关于
python
中
的
数据帧
的
问题。
浏览 26
提问于2019-07-13
得票数 0
2
回答
如何
向现有数据
中
添加新数据
python
、
pandas
、
dataframe
我已经创建了必须填充
的
空数据。d = {'A': [], 'B': [], 'C': []}然后,我分配这样
的
数据:
dataframe
['B'] = some_list_1b
dataframe
['C'] = some_li
浏览 6
提问于2022-11-28
得票数 0
3
回答
Python
:将熊猫
DataFrame
转换为
列表
切分
python
、
json
、
pandas
、
transformation
我需要转换这个
DataFrame
:123 2018-04-09T21:34:55.335Z[ 200 ]} 改变这种状况
的
最好方法是什么我尝试了使用不同
的
to.dict()
值
的
orient,但它并没有给我想要
的
。任何帮助
浏览 4
提问于2021-12-23
得票数 -1
1
回答
为什么使用list键初始化
列表
字典会影响
列表
附加
的
方式?
python
、
list
、
dictionary
使用不同
的
方法创建
列表
块d2 = dict.fromkeys(['foo','bar'],[])但是,将
值
追加到
列表</em
浏览 4
提问于2017-09-16
得票数 1
回答已采纳
1
回答
熊猫
的
SparseDataFrame从数据库
列表
python
、
numpy
、
pandas
我正在尝试将
Python
列表
转换为Pandas
DataFrame
。因为每个dict都有不同
的
键,所以占用了太多
的
内存。import pandas 这是可行
的
,但是占用了大量
的
内存,因为同时创建了一个0.667276, }, 'd':
浏览 8
提问于2014-10-29
得票数 7
回答已采纳
1
回答
Python
:根据特定列划分数据集
python
、
machine-learning
、
scikit-learn
、
classification
它是从TIMIT数据库中提取出来
的
,包含五种不同音素类别的数字化频率。频率在256个标有"x.1“- "x.256”
的
栏下,而音素类本身被标记为"g“。此外,还有一个“发言者”栏,列有不同
的
发言者。我
的
问题是,考虑到演讲者列,是否有可能将这个数据集分成50:50
的
培训和测试数据?事实上,我想把数据除以,使任何发言者都不在这两组
中
,这样我就不会用包含已经在培训数据
中
的
相同发言者
的
测试数据来验证经过训练<em
浏览 2
提问于2018-12-05
得票数 1
回答已采纳
1
回答
当数据帧
的
列与
列表
的
值
匹配时,搜索该列
中
的
特定
值
python
、
pandas
、
numpy
我有以下
列表
: a = [1, 1193, 1219, 1210, 2115, 1198, 1197, 1196, 1136, 3793] 我还有一个8570行×4列
的
Dataframe
。现在,当我
的
列表
'a‘
的
值
与
dataframe
的
第一列
的
值
匹配时,我希望获得
dataframe
的
第二列
的
所有
值
。我
如何</e
浏览 8
提问于2020-10-18
得票数 0
7
回答
检查
Python
中
的
可更改性?
python
、
python-3.x
、
immutability
、
python-2.x
、
hashable
.} # a is an dict with arbitrary contents
Python
2.x和
Python
3.x
的
行为有什么不同吗?
如何
检查类型在
Python</e
浏览 20
提问于2010-12-07
得票数 41
回答已采纳
1
回答
使用json.load读取JSON文件
python
我有一个简单
的
文件(username.json),如下所示:我使用以下代码读取该文件: dictionary = json.load(file_obj)但是,当我打印“名字”键
的
字典
值
时
浏览 1
提问于2017-11-21
得票数 0
回答已采纳
1
回答
熊猫聚集在所有栏上
python
、
pandas
Python
3和熊猫0.23data = pd.
DataFrame
({ 'b': np.random.normal(0, 2, 10: np.random.normal(0, 2, 10) \作品: data.aggregate(['min
浏览 2
提问于2018-07-10
得票数 2
回答已采纳
2
回答
Python
3.4,使用熊猫创建
DataFrame
时出错
python
、
pandas
、
dataframe
我正在尝试使用以下内容创建一个
DataFrame
:importnames,births)print (list(BabyDataSet)) #create the
DataFrame
df =
DataFrame
(BabyDataSet, columns = [&
浏览 3
提问于2014-08-05
得票数 1
回答已采纳
2
回答
根据条件选择pyrhon
中
的
列
python
、
python-3.x
我是
Python
新手!y=(p[i]>2)
浏览 6
提问于2022-05-16
得票数 0
回答已采纳
2
回答
公共数据结构与
DataFrame
python
、
dataframe
、
structure
据我所知,最常见
的
数据结构是:StacksLinked listsHash TablesGraph Data structures
DataFrame
DataFrame
是一个单独
的
数据结构,还是上面列出
的
一些数据
的
突变?
浏览 7
提问于2017-09-22
得票数 0
回答已采纳
4
回答
使用字符串参数进行
Python
列表
切片
python
可以像这样
切分
python
列表
:>>> list[0:1]但是,当将索引作为字符串传递时,会抛出错误:>>> listcall last):TypeError: list indic
浏览 0
提问于2016-04-01
得票数 0
1
回答
使用
Python
筛选Excel电子表格以获得单元格
值
python
、
excel
、
python-3.x
、
pandas
我有一个GUI (如下所示),使用它,我想从包含IP地址(~1200行)
的
Excel电子表格中提取特定
的
IP地址。我找不到
如何
搜索和筛选电子表格以实现我所需
的
示例。搜索E列,以查找我在GUI ie K11
中
输入
的
值
,这将将其缩小到10行。然后,我想在C列
中
搜索字符串“which”,将其缩小到2行。然后,我想提取B列
中
这2行
的
内容,并将它们分配给变量。我
浏览 0
提问于2018-08-09
得票数 0
回答已采纳
1
回答
在pandas
中
,
如何
将数据框一列
的
值
复制到其他数据框
的
另一列?
python
、
python-3.x
、
pandas
、
python-2.7
、
python-requests
在将字符串列
的
值
逐个复制到另一个
dataframe
列时,我得到了一个包含方括号
的
输出: chk.at[index,'StartLocation1'] = chkn['StartLocation1'].EndLocation1'].str.strip('[]').astype(str) 1 nan3 nan 4 nan 但是,我有nan
的
价值观看,这是我
浏览 149
提问于2020-09-11
得票数 1
1
回答
Python
/ Pandas -在Pandas
DataFrame
中放置一组数据集- dicts应该是列
python
、
pandas
、
dictionary
、
dataframe
我有一份有很多白痴
的
名单。每个Dict有5个键/
值
对。',}我
的
目标是一个具有以下顺序
的
DataFrame
。每一个在它自己
的
行上
的
切分
number name year style text 0001 Demetrius 1805 D Demetrius
浏览 1
提问于2018-07-28
得票数 1
回答已采纳
2
回答
有没有一种方法可以将字符串格式
的
字典
列表
转换为
Python
中
的
数据文件?
python
、
pandas
、
list
、
dictionary
、
beautifulsoup
我正在练习
如何
使用美丽
的
汤和目前在泡菜,因为我不能把结果转换成数据。希望能得到你
的
帮助。在这个例子
中
,我想要刮
的
页面可以使用以下方法获得:import requests[{“product_position”:0,"product_title":"TREPORT&
浏览 7
提问于2020-02-14
得票数 0
回答已采纳
2
回答
为“熊猫数据”列赋值
python
、
pandas
、
dataframe
、
slice
我有一个从更大
的
dataframe
切分
的
临时
dataframe
temp (如下图所示)。 注意:原始和更大
的
dataframe
包含一些具有不同型号和价格
的
相同品牌名称
的
品牌、价格和模型,因此我将这些相似的记录切片到temp数据格式
中
,并尝试为每条
浏览 2
提问于2021-08-28
得票数 0
回答已采纳
3
回答
数据帧表示、
列表
和文本条目的字典
python
、
pandas
、
string
、
dataframe
', 'Programming']我想要
的
输出是这样
的
: general-purpose programming language.programmers write clear,
浏览 0
提问于2021-01-25
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券