On Sat, Mar 1, 2008 at 10:43 PM, Travis E. Oliphant
<[EMAIL PROTECTED]> wrote:
>
> Can you try:
>
> olddt.names = ['notfoo', 'notbar']
>
> on a recent SVN tree. This should now work
>
Thanks Travis, this works great!!
Sameer
___
Numpy-discussion
Travis E. Oliphant wrote:
> Sameer DCosta wrote:
>
>> Hi,
>>
>> I'm having trouble renaming record array fields if they contain object
>> arrays in them. I followed the solutions posted by Robert Kern and
>> Stefan van der Walt (Thanks again) but it doesn't look like this
>> method works in all
On Thu, Feb 28, 2008 at 2:11 PM, Robert Kern <[EMAIL PROTECTED]> wrote:
> On Thu, Feb 28, 2008 at 2:00 PM, Sameer DCosta <[EMAIL PROTECTED]> wrote:
> > was going to create a ticket for this, but I don't think I have
> > permissions to do this. Can someone who has the permissions, please
> >
On Thu, Feb 28, 2008 at 2:00 PM, Sameer DCosta <[EMAIL PROTECTED]> wrote:
> I think having a record array field renaming api is a good idea.. I
> was going to create a ticket for this, but I don't think I have
> permissions to do this. Can someone who has the permissions, please
> create it? Tha
I think having a record array field renaming api is a good idea.. I
was going to create a ticket for this, but I don't think I have
permissions to do this. Can someone who has the permissions, please
create it? Thanks.
Sameer
On Thu, Feb 28, 2008 at 10:48 AM, Travis E. Oliphant
<[EMAIL PROTECTED]
Sameer DCosta wrote:
> Hi,
>
> I'm having trouble renaming record array fields if they contain object
> arrays in them. I followed the solutions posted by Robert Kern and
> Stefan van der Walt (Thanks again) but it doesn't look like this
> method works in all cases. For reference:
> http://project
Hi,
I'm having trouble renaming record array fields if they contain object
arrays in them. I followed the solutions posted by Robert Kern and
Stefan van der Walt (Thanks again) but it doesn't look like this
method works in all cases. For reference:
http://projects.scipy.org/pipermail/numpy-discus
Hi Sameer
On Wed, Feb 20, 2008 at 03:10:16PM -0600, Sameer DCosta wrote:
> Is there a way to rename record array fields without making a copy of
> the whole record array?
>
> Thanks in advance for your replies.
Simply view the array as a new dtype:
In [2]: x
Out[2]:
array([(1, 2), (3, 4)],
On Wed, Feb 20, 2008 at 3:10 PM, Sameer DCosta <[EMAIL PROTECTED]> wrote:
> Is there a way to rename record array fields without making a copy of
> the whole record array?
Make a new dtype object with the new names. Use the .view() method on
arrays to get a view of the array with the new dtype.
Is there a way to rename record array fields without making a copy of
the whole record array?
Thanks in advance for your replies.
Sameer
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discus
10 matches
Mail list logo