profile_utils.py:164 causes warning message
まだ誰も着手していません。
評価
調査の方向性
報告されている 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
- フォーク
- 745
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 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
-
ai_reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ydb-platform/ydb#53869 · コメント 3 件 ·
-
bug cert blocker needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
conan-io/conan-center-index#31035 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
vllm-project/vllm-ascend#17329 ·