Hi All:
I have a huge table imported from other binary files to hdf, and I forgot
to multiply the data by a factor in one case. Is there an easy way to
multiply a column by a constant factor using pytables?
To modify it in place?
Thank you
--
Sasha
Hey Sasha,
You probably want to look at the Expr class [1] where you set out to be
the same as the original array.
Be Well
Anthony
1. http://pytables.github.io/usersguide/libref/expr_class.html
On Tue, Aug 27, 2013 at 11:44 AM, Oleksandr Huziy guziy.sa...@gmail.comwrote:
Hi All:
I have a
Thank you Anthony.
Cheers
2013/8/27 Anthony Scopatz scop...@gmail.com
Hey Sasha,
You probably want to look at the Expr class [1] where you set out to be
the same as the original array.
Be Well
Anthony
1. http://pytables.github.io/usersguide/libref/expr_class.html
On Tue, Aug 27,
On Tue, Aug 27, 2013 at 6:50 PM, Oleksandr Huziy guziy.sa...@gmail.comwrote:
Hi Again:
2013/8/27 Anthony Scopatz scop...@gmail.com
Hey Sasha,
You probably want to look at the Expr class [1] where you set out to be
the same as the original array.
Be Well
Anthony
1.
2013/8/27 Anthony Scopatz scop...@gmail.com
You are right that this loads the entire computed array into memory and is
therefore not optimal. I would do something like the following:
h = tb.open_file(path, mode=a)
varTable = h.get_node(/, var_name)
coef = 3 * 60 * 60 #output step
c =
Glad I could help!
On Tue, Aug 27, 2013 at 7:44 PM, Oleksandr Huziy guziy.sa...@gmail.comwrote:
2013/8/27 Anthony Scopatz scop...@gmail.com
You are right that this loads the entire computed array into memory and
is therefore not optimal. I would do something like the following:
h =