Skip to content

Tag: python

the speed of numpy sum of different axis

We know that numpy is C order stored so .sum(axis=1) should be faster that .sum(axis=0). But I find that But when the size change to 10000 Answer First of all, I cannot reproduce the effect with the last version of Numpy (dev) nor the version 1.21.5. I got respectively 30.5 ms and 36.5 ms (so the opposite beh…

How can i turn python to apk?

I am just a newbie on that things and I want to turn python to apk with android studio or whatever. I don’t really need anything to complex, I just want to open my codes output gui (I used turtle) when I open the app. Nothing else, thats all. It is probably complex process so you can just give me

My dataframe is adding columns instead of rows

I’m trying to build a dataframe using for loop, below start works perfectly: And I got the correct one: Then I tried to make my implemetation as below: But the result I got was a horizontal dataframe, not a vertical one Even the data in the main hedears got posted as NAN? I tried using enforced header t…