profile_utils.py:164 causes warning message
还没有人认领这个 Issue。
评估
调研方向
首先使用报告的 Python 3.10.6 和 Pandas 1.5.3 版本运行 python3 profile_utils.py <your onednn verbose log file>。检查 profile_utils.py:164 并复现 SettingWithCopyWarning。当命令完成且控制台输出中没有该警告时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Summary
The profile_utils.py causes following annoying warning messages. Please figure out a way to eliminate it.
profile_utils.py:164: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
data['time'] = data['time'].astype(float)
Version
Python 3.10.6
Pandas 1.5.3
Environment
Ubuntu 22.04.1 LTS
Steps to reproduce
python3 profile_utils.py
Observed behavior
The annoying warning messages presented above
Expected behavior
No warning messages presented in the console output
- 主要语言
- C++
- 星标
- 1.2k
- 派生
- 746
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oneapi-src/oneAPI-samples 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 45/100
oneapi-src/oneAPI-samples#2764 ·
-
难度 4/5 3-5 天 新手友好度 35/100
oneapi-src/oneAPI-samples#2748 ·
-
难度 5/5 一周以上 新手友好度 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face未关闭question
难度 4/5 3-5 天 新手友好度 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
oneapi-src/oneAPI-samples#2705 ·
查看 oneapi-src/oneAPI-samples 的全部 Issue
相似的 Issue
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31098 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
ml-explore/mlx-c#136 ·
-
bug chart-audit
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复