Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブルのクエリ中に単純にこれを試しました:
rows = [ x['title'] for x in table.where("""title[-11:] == 'string ends'""") ]
結果: TypeError: 'VariableNode' オブジェクトに属性 ' getitem 'がありません
Condition Syntax doc を読んでも、スライスについては言及されていません。
完全な文字列に対してのみクエリを実行できると結論付けるべきでしょうか?
ありがとう!
残念ながら、PyTables はクエリ内でインデックスを使用できません。これは、numexpr [1] でサポートされている操作の制限です。はい、今のところ完全な文字列のみをクエリできます。彼らはプルリクエストを歓迎すると確信しています。