問題タブ [jsonlines]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
121 問題
0
投票する
2
に答える
132
参照
python - KeyError Python になる Jsonlines ファイル
「sender_id」と呼ばれる特定のキーを介してフィルタリングするためにロードしているjsonファイルがあります。他のキーを介してフィルタリングするように見えますが、「sende_id」のフィルタリングに関しては、KeyError: 'sender_id' が発生します。
私のpythonスクリプトは次のとおりです。
以下のように私のjsonlinesファイルのサンプル: