Not sure it'll be a 5 element list, but frankly, to me with an OOP origin, some aspects of the Pandas multi-index support feel extremely ridiculous.
For instance this one.
Obviously, there may be consistency urges stemming from other areas (which?) but I would primarily expect a multi-index to allow for picking a subset of a data frame by reference.
Then it could be useful, at the very least for the sake of elegance ('data hiding') make it possible to subject that to data processing that has no reason to look elsewhere.
And so I wouldn't get confused when debugging etc.
Such as:
process_stuff1(df.stuff1_columns)
or at least, if it's a copy on 'read' reference
df.stuff1_columns = process_stuff1(df.stuff1_columns)
(I prefer the . notation over the indexer [""] for code completion purposes.)
And yes, no. Neither works. No, memorize.
I do wonder though how many find these not being "the approach" intuitive?
(Those finding the SO entry probably not.)
Well, I can live with it. (There's the can do = compromising attitude :) )
UPDATE: #2
Drop rows based on condition #20944
It's mid-2019 now. No comment.
UPDATE: #3
When aggregating a Pandas data frame, you may choose to specify a dictionary that assigns functions to columns. Say you aggregate a column of numbers by adding them up, but another column - you may wish to see the maximum value.
They may receive odd column names in the end - like it can be obscure to name the total value column as that of the values being tallied up.
So you'd change the names, intuitively (df.columns = [...]).
Now, if you think the order is granted, you're wrong.
Python dictionaries by default are unordered, and so the order in which you defined their elements may get lost along the way.
So just generally don't do that, or specify an order, or whatever ... the intuitive road is, anyway, blocked :\
Friday, 14 June 2019
Saturday, 1 June 2019
(So many of) my days with Python in a visualization

P.S.: yes, it's charting.
Wednesday, 1 May 2019
Working capital cycle and agile/lean
Just realized how much the short feedback loop and the working capital cycle relate. What better proof of a useful feature than when it's sold?
To me it's very interesting, though now that I think about it, it would be completely normal to find a lot more of these - maybe not perfectly, but still, analogous concepts having evolved in parallel and to coexist.
To me it's very interesting, though now that I think about it, it would be completely normal to find a lot more of these - maybe not perfectly, but still, analogous concepts having evolved in parallel and to coexist.
Monday, 18 March 2019
The Daily Fail
Someday you check back on things, and they've failed. Oh, no. Well, so you aren't alone. Or well, you only don't fail "if you don't innovate" ;)
A few silent fails in 2018
Well, in a way the whole competition failed.
"But this does not mean at all that it failed: in the contrary, it fulfilled the promise of catalyzing the process of the birth of a cislunar economy."
Another good silent fail:
I guess though it could be as interesting to crash analyse these as getting into the details of very successful pathways. The exceptional few. The lucky few... the random few?
Question of whether to place our bets on working out what not to do or what to do. Both are likely useful, whilst perhaps the world's attention is a bit "stratified". Well, I suppose it mostly is.
Update:
... please continue :)
A few silent fails in 2018
Puli Space
"It is official now, what we expected: the Google Lunar XPRIZE ends without a winner."Well, in a way the whole competition failed.
"But this does not mean at all that it failed: in the contrary, it fulfilled the promise of catalyzing the process of the birth of a cislunar economy."
Another good silent fail:
Jibo
sad sh..ooot, although there simply were bigger names in the game I suppose.I guess though it could be as interesting to crash analyse these as getting into the details of very successful pathways. The exceptional few. The lucky few... the random few?
Question of whether to place our bets on working out what not to do or what to do. Both are likely useful, whilst perhaps the world's attention is a bit "stratified". Well, I suppose it mostly is.
Update:
MySpace
... has carefully lost about 13 years of uploads ..... please continue :)
Wednesday, 6 March 2019
"Usury"
Just reading about medieval finance - "due to the prohibition on usury imposed by the Roman Catholic Church".
Hm, forgot about that bit, I typically find it to be difficult for me to even try to force my mind to be pro-catholicism these days... and yet, I guess that was a nice thing then (except if an attempt towards monopoly - remember the alleged very successful banking activities of the templars - up till and I guess possibly ending around Montsegur "lol")?
Not necessarily, idelogoism and wise thinking ... eh, not necessarily the same:
"The first of the scholastic Christian theologians, Saint Anselm of Canterbury, led the shift in thought that labeled charging interest the same as theft. Previously usury had been seen as a lack of charity." (Wikipedia)
And then the end:
"The Roman Catholic Church has always condemned usury, but in modern times, with the rise of capitalism and the disestablishment of the Catholic Church in majority Catholic countries, this prohibition on usury has not been enforced." (Wikipedia)
Okay then ... kind of the "I was wrong in saying 0 but I'd rather be silent and unenforcing than to admit it" is also a practice that I'm not the only one to apply... and maybe not so wrong, given people are mostly like gas, and will try to fill and expand any limits, as well as bend any sort of rules given enough time. So even an enforced zero isn't zero in practice.
Note that in case of a strengthening currency, no interest is profit too :) So typocal.
Hm, forgot about that bit, I typically find it to be difficult for me to even try to force my mind to be pro-catholicism these days... and yet, I guess that was a nice thing then (except if an attempt towards monopoly - remember the alleged very successful banking activities of the templars - up till and I guess possibly ending around Montsegur "lol")?
Not necessarily, idelogoism and wise thinking ... eh, not necessarily the same:
"The first of the scholastic Christian theologians, Saint Anselm of Canterbury, led the shift in thought that labeled charging interest the same as theft. Previously usury had been seen as a lack of charity." (Wikipedia)
And then the end:
"The Roman Catholic Church has always condemned usury, but in modern times, with the rise of capitalism and the disestablishment of the Catholic Church in majority Catholic countries, this prohibition on usury has not been enforced." (Wikipedia)
Okay then ... kind of the "I was wrong in saying 0 but I'd rather be silent and unenforcing than to admit it" is also a practice that I'm not the only one to apply... and maybe not so wrong, given people are mostly like gas, and will try to fill and expand any limits, as well as bend any sort of rules given enough time. So even an enforced zero isn't zero in practice.
Note that in case of a strengthening currency, no interest is profit too :) So typocal.
Tuesday, 5 March 2019
A lightweight dark PDF viewer for Ubuntu
Simple
sudo apt install xpdf
alias xpdf='xpdf -rv'
Then use xpdf to open the files.
sudo apt install xpdf
alias xpdf='xpdf -rv'
Then use xpdf to open the files.
Sunday, 3 March 2019
Subscribe to:
Posts (Atom)
