Repository navigation
Phase 4: データ取り込み(ドラッグ&ドロップ・貼り付け・シート・読込設定・日時軸・複数ファイル) - #4
Merged
Merged
Conversation
…hecks _decode_escapes ignored every warning while decoding delimiter escapes. Only the DeprecationWarning for invalid escape sequences is actually raised there, so ignore just that one and document it in AGENTS.md §8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der and generated read section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…note to the UI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd consistency tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ted scripts
Adds string-date recognition (fixed year-first formats, 100-value sample and
90% rules, strip/UTC handling), column kinds in the load result, datetime X
handling in dataprep and codegen, and drops set_xscale("linear") for string X
in favour of category tick labels with thinning above 25 categories.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g) with E2E and consistency tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t 100 values Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rce resolution, per-source plan and generated read blocks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ile list, preview switch, drop zones Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le loads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in skip-rows error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…real loads, show batch notes once, keep series cards when columns are unchanged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m sticking when dragleave has no types Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
要件定義書9章の Phase 4(データ取り込み。D1–D6)を実装しました。あわせて、Phase 2 で決めた「X が数値でない列のときは
ax.set_xscale("linear")を入れる」扱いを、D5(日時軸)に合わせて見直しています。変更内容
ドラッグ&ドロップと貼り付け(D1)
#pasteArea)に貼り付けて読み込む。データが無いときは、ページ上での Ctrl/Cmd+V でも読み込む。読込済みのときは、データを確認なしで置き換えないよう、欄に貼るよう案内する。pasted_data.tsvというファイルとして扱う。生成コードはこのファイルを読み、「貼り付けたデータを保存」で同じ内容を保存できる(データはスクリプトに埋め込まない)。これに合わせて.tsvを対応する拡張子に加えた。シートの選択(D2)
ExcelFileは同じファイルの間だけ使い回し、切り替えを速くした。sheet_name="…"と、ファイル内のシートの一覧(コメント)を書く。ヘッダより前の読み飛ばし行数(D3)
桁区切り・小数点・コメント記号(D4)
thousands/decimal/commentで読む。生成コードの読込部は、すべての読込引数を1行に1つ、既定値も含めて明記する形にした(loader と同じ引数の定義から作る)。1,234などが数値に変換できずに除外されたときの警告に、「桁区切りをカンマに」などのヒントを添える。小数点と区切り文字が同じ記号のときと、区切り文字の指定漏れが疑われるとき(1列しか読めない)も警告する。日時の列と日時軸(D5)
2026-01-31、2026/01/31 13:45、2026年1月31日、ISO 8601 のタイムゾーン付きなど)の列を、自動で日時と認識する。数値の列、A-001のような ID、月日の順が曖昧な書式などは認識しない。読めない値は欠損にして警告する。Excel の日付セルは常に日時として扱う。pd.to_datetime(..., format=...)を書く。AutoDateLocatorとConciseDateFormatter)か、指定した書式(DateFormatter。例%m月%d日)。棒グラフでは日時を表示書式の文字列にして並べる。ax.set_xscale("linear")をやめた。 日時の列は日時軸にする(今までは Excel の日付が日数の数値で表示されていた)。それ以外の文字列の列は、目盛に値を出す(25個を超えるときは間引く)。複数ファイル(D6)
DATA_FILE/df。2つ以上なら、使うファイルだけをDATA_FILE_1/df1… と書く。そのほか
DeprecationWarning(invalid escape sequence)だけに絞った(AGENTS.md §8)。計測値(
docs/PERFORMANCE.md「Phase 4 後」)既存の項目で悪くなったものは無い。10,000 行 × 5 系列で設定変更から 1 秒以内という要件は、X が日時でも満たしている。
オーナーが決めたこと(2026-10-08。AGENTS.md §13.3、要件定義書 §2.4 に記録)
parseDatesを false にする。貼り付けたデータはpasted_data.tsvとして保存してもらい、.tsvを対応する拡張子に加える。"1,5"は読めるため)。ページ上の貼り付けは、読込済みのデータを置き換えない。最後のファイルを削除したら、画面を初期状態に戻す。テスト
uv run pytest)uv run pytest tests/e2e)assert_frame_equalで確認した注意点
🤖 Generated with Claude Code