我想用macports安裝py-tables。我以前用fortran安裝過hdf5。某處似乎出現了錯誤。當我嘗試運行: port install py-tables +fortran
我得到的錯誤: Error: +fortran requires a fortran compiler to be selected 我有在路徑的Fortran編譯器。我如何告訴macports選擇使用端口安裝的
是否可以從PyTable中的表中選擇行並將類Numexpr表達式應用於輸出?例如,如果我有表 import tables as tb
class Event(tb.IsDescription):
x = tb.Float32Col()
y = tb.Float32Col()
z = tb.Float32Col()
我想的"x+y"其中"z > 10.0"陣列。
考慮下面的代碼: import os
import numpy as np
import tables as tb
# Pass the field-names and their respective datatypes as
# a description to the table
dt = np.dtype([('doc_id', 'u4'), ('word', 'u4'),