| Store | Cart

Re: [C++-sig] Boost Python. access pandas columns in the same order as in python

From: Stefan Seefeld <ste...@seefeld.name>
Wed, 5 Oct 2016 12:31:49 -0400
On 04.10.2016 09:05, Vladimir Sakharuk wrote:
>> Hello All,>>> Trying to figure out how to c++ access pandas dataframe columns in the> same order as they exist in the python.>> in python:>

[...]

> ||> |    //outputs regardless of original order of column names.   > //index=0, colname=AAA    //index=1, colname=BBB    //index=2,> colname=CCC|>> As you can see pythons' order 'CCC','BBB','AAA' is not same as c++> 'AAA', 'BBB', 'CCC'. Looks like those order depend on object hasing.>>> How could I get those values in the original order of pandas dataframe> from C++?>

I can't reproduce that; I see the same order (['CCC', 'BBB', 'AAA'])
both in Python and in C++ with your code above.

FWIW,
        Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...

_______________________________________________
Cplusplus-sig mailing list
Cplu...@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Recent Messages in this Thread
Vladimir Sakharuk Oct 04, 2016 01:05 pm
Stefan Seefeld Oct 05, 2016 04:31 pm
Jim Bosch Oct 05, 2016 04:36 pm
Vladimir Sakharuk Oct 05, 2016 05:06 pm
Messages in this thread