Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

テーブルを外部から読み込む機能の実装を検討する #132

Open
Rindrics opened this issue Jul 5, 2019 · 4 comments
Open
Labels

Comments

@Rindrics
Copy link
Owner

Rindrics commented Jul 5, 2019

そこで,rebel に,テーブルを外部から読み込む機能の実装を検討中.

Originally posted by @kikirinrin in https://github.com/JK-junkin/stockdbr/issues/14#issuecomment-508719912

@Rindrics Rindrics changed the title そこで,rebel に,テーブルを外部から読み込む機能の実装を検討中. テーブルを外部から読み込む機能の実装を検討する Jul 5, 2019
@Rindrics
Copy link
Owner Author

Rindrics commented Jul 5, 2019

これは恐らく unmerge_vert() の機能.
普通のセル結合には外部テーブルなしで素手で戦い,
だめなやつには,外部テーブルを武器として戦う.

@Rindrics
Copy link
Owner Author

Rindrics commented Jul 5, 2019

まともなセル結合のデータに対する戦い方

vertical

  • 各行について,最右のデータの列位置を取得.(各行のデータ数ではだめ)
  • カテゴリ数(>=2)が判明する
  • category1, category2, ... として値を格納

@Rindrics
Copy link
Owner Author

Rindrics commented Jul 5, 2019

だめなセル結合に対する戦い方

vertical

  • まともなセル結合のテーブルを用意しておく
  • unmerge_vert() がそれを読み込み,リストに展開
  • 各行の最右データをリストから探し,カテゴリを付与

@Rindrics
Copy link
Owner Author

まる2 日の戦いの末,完全敗北したので一旦頭を冷やす.

rowhead や colhead を矩形で切り出して始めるのはやめたほうがいい.
idael のシートもload_alldataで読み込み,range の範囲についてまるまるコピー.
そこから普通の整形を始める

@Rindrics Rindrics added the UI label Jul 26, 2019
@Rindrics Rindrics added this to ICEBOX in Sprint Board Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Sprint Board
  
ICEBOX
Development

No branches or pull requests

1 participant