« first day (2779 days earlier)      last day (2159 days later) » 
00:00 - 19:0019:00 - 00:00

12:38 AM
@Arne The obvious answer to that is the - operator. While there is a type difference between the two args (e.g., in a-b, a can be a Timestamp and b can be a Timedelta, but not vice-versa), but you cannot represent that difference usefully in a genetic function in Scala, or even in Haskell.
And if you did twist yourself around to type them in Haskell, the right names would be something like a and subtrahend a, at which point you’re basically doing the same thing as calling the params value and subtrahend.
The end result is that Python has a very powerful type system because that’s dead easy to do with dynamic typing; Haskell has a very powerful type system, almost all of it available statically, because the whole language is designed around that. Scala is nowhere near as powerful as either, so it needs workarounds or cheats.
 
12:55 AM
cbg
 
 
2 hours later…
2:51 AM
I used matplotlib.image's imread to read a png file but when I did plt.show() the picture became just white
 
3:45 AM
tensorflowwww
why i can't post img here
 
You need to set the michael_jackson flag to False
 
lol
 
4:06 AM
 
4:17 AM
I have an tf.nn.conv2d modified img of shape (1, 203, 192, 1), but why plt.imshow() only accept shape of (203,192)? Why the channel dimension is excluded?
so i have to reshape it into (203, 192)...
 
 
1 hour later…
5:37 AM
cabbag
 
cbg
 
cbg
 
6:09 AM
any tips on where I should start trying to figure out how to mock up and test db connections. I'm about to start my google spree.
 
What db are you using?
 
ms sql
 
What is it currently deployed on?
 
linux
actually, I don't know what db's are on
my code is running on linux
Oh, yes I do. linux
 
Was the db deployed using docker?
 
6:13 AM
no
this is me being the defacto pythonista at my new place of work. I need to set up my code as goodly as possible
 
Hi, just a thought: the expression "two wrongs don't make a right" in programming terms is technically incorrect as negating a falsy value returns true...
 
@JacobSchneider that assumes wrong is the negation operator
 
and the boolean False, both at the same time
 
what if wrong is Falsey
 
neither False False nor not not makes True
 
6:16 AM
then two Falses makes a True for what operator
 
yes, but the falsey value is the first wrong
 
@piRSquared If you're just looking to test the database connection, I personally use sqlcmd
If you're looking for something with a gui, workbench is still the most popular I believe
 
@JacobSchneider False and False is False. False or False is False. False nor False is True. False xor False is False.
 
not False = True
 
@chrisz I'll look at sqlcmd
@JacobSchneider I don't see two wrongs there
 
6:21 AM
the 'not' operation is the second False
 
That is the equivalent of saying "in programming, two wrongs do make a right if you define 1 as wrong and 2 as right... 1 + 1 == 2
Why can't I edit my posts? Did the room change?
 
nope, still editable
 
Hmm, then something about me... weird
Wait a minute... testing
As soon as I post, it is 2 minutes old
Refreshed page and all fixed (-:
@wim There is no combination of 20,000 digits of pi that doesn't consist of digits that occur more than 20,000 times. I'd extend your argument and simply claim you've memorized all digits of pi.
 
6:59 AM
rbrb
 
7:24 AM
Has there been a feature request to show dupe hammerers a notification if the OP posts a comment on the closed question? I know they can ping me after I close their question, but they usually don't.
 
7:46 AM
Cabbage
 
Cbg
 
@Aran-Fey It sounds vaguely familiar, but the closest I could find is this old SE.Meta post
 
Guess I'll post a feature request later, thanks
 
8:10 AM
It would be a nice feature, but I think if they're going to do that they might as well give all close-voters the option of being notified of OP edits to on-hold questions. However, I suspect the response will be along the lines of: "If you want to see when on-hold questions are edited you should work the Close/Reopen Votes review queue".
 
I want to be notified by comments though. If I incorrectly closed a question because I misunderstood it, the OP doesn't necessarily have to edit it
 
"Nosy list" is a good idea for SO.
(like the Python issues tracker)
Or does the "favorite" button do exactly that? (I suppose it doesn't count all actions, only new answers?)
 
It definitely notifies you about more than just new answers
 
@Aran-Fey Ah, right. That sounds like a good idea. :)
 
But I don't want to favorite every post I hammer and then have to unfavorite it again if the OP doesn't respond within a few hours
Besides, favorites are where I store my useful-but-hard-to-find duplicates
 
8:21 AM
I know, I'm simply suggesting they can roll out a "nosy" based on the favorite feature, so not a full new feature per-say.
 
Ah, gotcha
 
If someone has enough time on their hands, maybe they can make a userscript to duplicate the favorite button, but this time, it will also add that question to a list of to-remove favs, so that you can keep your fav list clean.
 
"someone"? :P
 
Maybe even have a sidebar popup that can check periodically for updates to those nosy-fav list of questions so that you don't have to keep the question open in a tab.
@Aran-Fey :-p
 
In my currant state I need one of those.
 
8:29 AM
I want something like a SODeck, like Twitter had TweetDeck, you can have a feeds column, and the rest can be for different customizable tasks / queues
 
@Simon Are you a dried berry or grape? :)
 
@Simon Hahaha, the chucknorris question is great
 
@PM2Ring Lettuce
@Aran-Fey Yep. Only Microsoft could do that.
 
@Simon "currant" != "current" See google.com/search?q=definition+currant
@Aran-Fey I don't think that post or its response by shad0w_wa1k3r need to be on the starboard. Does anyone object if I remove them?
 
go ahead
 
8:35 AM
please do
 
Question: Why does some salad language include punctuation and the rest do not? For example "lettuce" or "lemon"
 
InvalidArgumentError (see above for traceback): Current implementation does not yet support strides in the batch and depth dimensions.
Help~
 
@Simon The question mark makes it more obvious that they're questions, I guess?
 
I'm trying tf.nn.conv2d() with strides=[_,_,_,2] and got this error
 
Unless I want to add something after lettuce then the question mark get's in the way :( @Aran-Fey
 
8:39 AM
it seems like i can't stride over channel dimension
 
8:51 AM
If anyone was interested in chat.stackoverflow.com/transcript/message/42607719#42607719 then I did find a solution stackoverflow.com/questions/50535102/… it is nessesary to use b"sound.wav"
Yep it took me only a week :p
 
@Simon Bizarre. Yet another reason that I'm glad I don't use Windows. :)
 
I found the solution first but Mark Tolonen did a much better job with the answer
@PM2Ring
25 mins ago, by Simon
@Aran-Fey Yep. Only Microsoft could do that.
Actually it probably makes sense if you read their "Long Pointer To String Blah Blah" rules in depth.
Speaking of ctypes the answer here stackoverflow.com/questions/10003489/cmd-full-screen seems to have all the details, but there is no code, should there be another answer demonstrating an example?
 
9:12 AM
@Simon That sounds like a good idea. Calling a DLL via ctypescan be a bit daunting, especially if you're not a C programmer, so a simple example could be very helpful.
 
Actually there is a better way. I will put that down in the meantime
 
9:31 AM
There, I will add code suggested by the other answer if I can get it working.
 
9:42 AM
Hmmm from that other answer I have:
import ctypes
kernal32 = ctypes.WinDLL('kernel32')
STD_OUTPUT_HANDLE = 11
out = kernal32.GetStdHandle(STD_OUTPUT_HANDLE)
kernal32.SetConsoleDisplayMode(out, 1)
But SetConsoleDisplayMode requires a third argument "A pointer to a COORD structure that receives the new dimensions of the screen buffer, in characters." I have no idea how to pass a COORD structure
 
@Simon Like the example POINT(Structure) here, except that the fields need to c_short.
 
Cool that looks like it.
 
9:58 AM
You may find my example of using ctypes with OpenSSL helpful: stackoverflow.com/a/26878137/4014959
 
10:44 AM
@jpp I kinda refuse to believe that you responded to my comment in 20 secs so I'm not sure what you're illustrating. If you did actually make that response in 20secs, I refuse to believe you're human :P
@jpp but the index still has type 'o'
 
@Simon *kernel32
 
Laurel that took some time before anyone noticed :D
 
@Niing np.squeeze can get rid of singleton dimensions (I think it's even an array attribute)
 
11:01 AM
@Simon hammered
 
jpp
@roganjosh, The truth is I tried with the series I pasted and the integers came out as 1970...
I agree it's not usual to have a series with index [2014, '01/01/2014 00:00'], but it is possible.
object type, if I recall correctly, is just a bunch of pointers to any type.
 
There was no hope that a datetime question could be answered so simply. I'm not sure of the best debugging steps for the OP because I usually end up having to brute force it
 
jpp
@roganjosh, Yeh I usually ask for df.head().to_dict() to get the precise definition.
Otherwise we go round in circles not knowing what we are working with
 
Close as no mcve :P
 
jpp
@AndrasDeak, If we worked on that basis, 90% of pandas question would be closed.
 
11:11 AM
Exactly.
95% of all questions should be closed so seems fair
Then again that wouldn't give you rep :(
 
Pandas is just complicated. I was looking through the release notes of 0.23 yesterday and genuinely thinking "how can I stay on top of this?".
Since there was a question related to a breaking change that apparently fixed some other bug
 
jpp
The other day I was (re-) looking at the code for pd.Series.replace and was astounded at what it was trying to achieve.. there were checks for nested dictionaries (and some specific interpretation attached to them). At some point we need to go back to basics.
 
The last few weeks I've been moving towards the opinion that pandas is just broken. Removing agg to me is silly, I don't find the alternatives intuitive.
 
12:00 PM
If someone posts a question like "How do I drive a go-kart?" and they already figured out how to accelerate and decelerate, is it acceptable to close the question as a duplicate of "How do I steer?"
 
jpp
If it's reasonable to assume OP can make the connection, then yes. The "reasonable" part is subjective, which is why we have votes (except for gold tag holders, where we assume a certain level of expertise).
 
There are some comments making the connection, so I guess it's fine. Thanks.
 
Yup
when I thought I found an interesting problem turns out @DSM has already answered it :(
thanks
the answer could do with some denoising though
 
12:21 PM
@jpp "Are we sure OP has a numpy array?" Good point! Perhaps I was a bit hasty. But if not, that'll teach 'em not to call list an array. :)
But I'll add a comment.
 
12:38 PM
I seem to be answering a lot of Tkinter questions lately. This answer took a little longer than I was expecting. I guess I'm a little rusty with thinking about threads... stackoverflow.com/questions/50526451/…
Hey up, Fizzy!
 
<_<
>_>
\o/ Hey PM2!
 
@AndrasDeak OTOH, the OP is using list(map(max, ge)), so maybe they aren't using Numpy... or they're using it badly. :)
 
But soft, what light through yonder fractal breaks?
 
Have you been doing much actual physics lately?
 
@PM2Ring that line will never do what they want so ignore it
 
12:41 PM
I've written a plain Python answer, just in case.
 
Numpy would work anyway :P
 
@PM2Ring how strange, only a couple of hours ago I was thinking there are a lot more tkinter questions these days
 
@AndrasDeak Well sure. And it's probably faster than any plain Python solution. But not every system with Python has Numpy installed.
I just thought of a Python 2 solution that won't work in Python 3. :)
 
I would have thought it was going to fade out with the rise of web frameworks. I wonder what's happened recently to boost tkinter
 
indices = list(product(range(len(data)), range(len(data[0]))))
indices.sort(reverse=True, key=lambda (y,x): data[y][x])
 
12:54 PM
Why was that removed in py3? O.o
The lambda (y,x), that is
 
@Aran-Fey I have read the rationale, but I can't remember the exact details off-hand. Basically, it's rarely used, and it was a PITA to make it work properly.
 
"More trouble than they're worth", huh. Can't argue with that, I suppose
 
Wow, this question
> In the official documentation of str.split(), nothing is mentioned about maintaining the order of the tokens as they appeared in original text before splitting.
Does that even need mentioning?
 
hahahaha, that's great. I wonder which language that person is coming from?
 
Of course the output is completely random. It does not even have to come from the string itself @vaultah
 
1:04 PM
@vaultah True enough, I guess. But it's not practical for docs to mention everything. I mean, the docs for .upper() don't say that it preserves the order, either. :)
 
Yeah, exactly
 
Or that it doesn't reformat your harddrive.
 
@Aran-Fey I suspect they are programming green beans. No language I know of would ever do that
 
A green bean that reads the documentation? I'm doubtful :P
 
Order is always preserved
@Aran-Fey then I was never a green bean
If you put average in there somewhere I would agree
 
1:17 PM
@vaultah wow
@Aran-Fey surely C++ where everything that isn't in the standard is undefined behaviour
 
Has anyone seen this question. I actually find it quite puzzling how to achieve the behaviour OP wants in general.
 
1:48 PM
Interesting question, and it has me super confused
 
super().__confused__()
 
Hah. Would be nice if I could pass on my confusion to someone else like that :P
Oh, I get it now. Wonder if I should write an answer that explains what's going on
 
if the existing answers don't do that you should
 
@OlivierMelançon Your solution to override __getattribute__ is correct, but it's really not obvious why it is correct. Care to add some explanation?
 
 
2:01 PM
@Aran-Fey I'm slowly adding an explanation, but I actually am unsure what it is correct, that's why I'm asking here
In other word: that question is getting me super confused even after I found a solution
I intially downvoted it as being unclear... then realized that it's really a subtle question that needed attention
 
So far, everything you've written is correct. The attribute lookup starts with __getattribute__, which calls the descriptor __get__ method. When the descriptor throws an AttributeError, it catches that error and calls __getattr__ instead.
 
I've been carefully working on that explanation for one hour now. I'm trying to explain why getattribute works now
 
@Simon lol
 
It's a bit of a questionable decision to catch AttributeErrors thrown in a descriptor, but that decision is made and documented
 
like their ears
 
2:06 PM
Martijn has written some excellent __getattribute__ / __getattr__ answers. Maybe you could "borrow" some explanation from him…
 
@Aran-Fey Based on many example of descriptors I have seen, it makes sense. If you use a single descriptor object for all your class instances, and make it look up the attribute in its own dict then you don't want the getattr protocol to interrupt if the instance was not in that dict
 
hello chat i have a question about tensorflow tf.nn.max_pool: if i have an img of shape [1,4,4,2] with pooling kernel of shape [1,4,4,1] and strides [1,1,1,1], padding='SAME' why the result is of shape [1,4,4,2]?
 
Oh, I figured it out! What fixes the problem is not using __getattribute__, it actually not having a __getattr__ method.
 
@OlivierMelançon I just realized that the code correctly throws AttributeError: 'A' object has no attribute 'moo' if you remove the __getattr__ and __getattribute__, which is pretty interesting. I guess the default implementation of __getattribute__ re-raises the error thrown in __get__ if it can't find a __getattr__
 
I guess we figured it out at the same time
 
2:11 PM
jinxed :(
 
Sorry :p
That was a super interesting question though
 
The best questions are the ones where the answerer learns more than the OP does. ;)
7
 
Totally agree
In conclusion, the actual weird thing here is that defining def __getattr_(self, name): raise AttributeError('...') actually changes the behaviour of the getattr protocol on your instances, despite looking like it just explicitly states what is usually being done
 
2:34 PM
It's not really that weird. If you have a property that throws an AttributeError and a __getattr__ method that throws an AttributeError, well, you have to pick one of the two to re-raise
 
Any tensorflow genius please help me: link
 
jpp
What's tensorflow? Has this got something to do with Python?
 
I agree with that logic, but still it is the core of what made this question originally so confusing
 
@jpp The main supported language of tensorflow is python. but where should i ask question about tensorflow? There is no room related to tensorflow more than this room...
 
jpp
@Niing, You can start one :).
 
2:49 PM
Sounds good to me. Most of the regulars here don't do tensorflow.
 
ok, i'm sorry
 
That's ok. We don't actually have an anti-tensorflow policy here.
 
I thought most genius use python, so i asked it here.
 
But I do think it would be good for tensorflow to have its own room. Of course, then you have the problem of getting people to use that room...
 
jpp
Yep, I just looked up the stats. tensorflow questions tend to have a much lower success rate in terms of being answered. Building a community via a chat room may kickstart participation. It won't guarantee anything, but it might help.
 
2:51 PM
I would call it tensoverflow if I have enough rep. to create one.
I was told that tensorflow is the best machine learning framework since it has the largest resources/community.
 
3:23 PM
@Niing Please remove the swear word from your profile.
 
3:41 PM
@PM2Ring done
 
Thanks.
 
@PM2Ring Sorry about that :p, I thought nobody would read my profile.
 
87 profile views look to your right.
 
3:58 PM
(then click left arrow immediately)
(left arrow)
 
4:08 PM
Hi, I want to create one regex in python which compares all combination of input regex.
For example: let's say I have 4 regexes a,b,c, and d and I want to match a pattern like a.b.c.d or b.c.d.a or a.b.d.c and many more (means all combinations), is there is any good way to do this instead of creating all combinations.
 
You can use this pattern: (?:(?!\1)()a|(?!\2)()b|(?!\3)()c|(?!\4)()d){4}
 
is this one compare all combinations of a.b.c.d
 
permutations, technically
 
Can you please explane me it's working
 
It (ab)uses capture groups to remember which pattern has already matched. For example, when the a pattern matches, the capture group () right in front of it also matches. Once that's happened, the same pattern can't match again because of the negative assertion (?!\1)
 
4:15 PM
Wow COOL man
 
Don't forget to wrap the patterns in parentheses though: (?:(?!\1)()(?:a)|(?!\2)()(?:b)|(?!\3)()(?:c)|(?!\4)()(?:d)){4}
 
@Niing It doesn't worry me. I hang out on xkcd, where even the mods swear. ;) But it's against Stack Exchange policy, and it doesn't look very professional.
 
Umm, what do we do about this typo question with a misleading title? I don't know why, but it's heavily upvoted... Though the upvote/view ratio is pretty low
Close as dupe of this and edit the title to be more relevant to the problem?
 
@jpp the question has python code in it. Doesn't get more on topic than that.
 
4:30 PM
@Aran-Fey Even SO's primitive syntax highlighting makes the error obvious. :) In my opinion, you should leave the title alone, even though it doesn't address the cause of the OP's error. The question's ancient, and most of the answers focus on telling the OP how to do the if test that they actually want to do. And don't hammer it, but feel free to link it to your dupe target. But that's just my opinion, others may disagree.
 
Huh, I already edited the title because I thought nobody was going to object to that. I guess I'll rollback if others agree...
 
I don't mind the edit now that it's done
Then again I didn't read runner-up answers
 
That title makes the question look weird. If the OP knew that the backslash was the cause of the problem they wouldn't have asked the question. At least, they wouldn't have asked it like that.
 
How about "How do I compare a value to a backslash?"
 
Depends on what you want to do with it. If it's a backslash dupe target, fix the title
 
4:36 PM
They'd have said "The backslash is giving me a syntax error, and I can't figure out how to make a string ending in a backslash." or something similar.
@Aran-Fey Yeah, ok.
 
If it's not a target nobody will read the title and the rest anyway
 
IME, title reading is culture-dependent. Indians seem to be quite fond of asking the question in the title and then assiduously avoiding any further mention of it in the question body.
 
Austrians read the title and then immediately forget about it as soon as they click the question. Sample size: 1 (me)
 
Austro–Hungarians
 
You guys should get together and form an empire. Oh, wait…
3
 
That must be a record I've got through about 20 close votes today.
 
@AndrasDeak Now closed. But I figure it's ok that the OP got a full answer to explain their confusion.
I decided to put that recursive knight's tour generator into a class. gist.github.com/PM2Ring/238ea0acc14fed849e708fa904beead8
 
5:03 PM
Today is full of off-topic questions, that's the second in the past 15mins
 
if "that" is what I linked: typos are on topic
 
Nah what I've been voting on as fast as they have been pouring in.
I don't only cover the Python tag so it amount's to a lot of spam :/
 
5:19 PM
Spam shouldn't consume close votes
 
What should I do with it then?
 
Flag as spam
 
Play minesweeper with it.
 
@AndrasDeak OK, I'll do that in future, thanks I've learnt something new.
 
But make sure it's legit spam and not a misguided user. 6 spam flags (or so) delete the post and give -100 rep to the poster. Not to be taken lightly
 
5:24 PM
No trust me I know job recruitment when I see them :(
 
@Simon "spam" has a specific meaning on SO: off-topic stuff designed to direcltly make money, or at least solicit page hits on other sites in order to make money for the site owner or raise the site's search engine profile. The penalties for spamming are rather severe, so please don't use the term lightly.
 
And nor am I going to use the flags lightly. @PM2Ring Thanks for suggesting I take cv/spam lightly
 
Nobody attacked you, no need to be defensive
We were merely giving you a heads-up
 
@Simon I wasn't suggesting that! I was saying don't use the term "spam" lightly. Many people use that term in a generic sense to describe stuff that isn't commercial spam. And I was simply pointing out that that's not a good idea on SO.
 
@AndrasDeak It's OK I'm not, when I get defensive I breathe fire :p
 
5:35 PM
*breathe :P
 
*when
 
heh
 
:breathing in:
 
Pink Floyd - Breathe
 
Nice. I'm not going to post anything my end, I still remember what everyone thought last time
 
5:49 PM
After all why not: youtube.com/watch?v=usBHyWEBGnA :p
 
Not bad. I just wish it wasn't for those weird sounds starting at 1:04
 
1:03 actually. Fancy another one? No need to ask! Here you go youtube.com/watch?v=3wLnJqXhYBE
 
The real name is Bangarang, I don't get why people reupload official YouTube videos
 
That one's too hyper for my taste
 
@vaultah probably because they don't like watching children stealing ice cream.
 
6:00 PM
Why do that when you can watch adults stealing videos!
 
6:29 PM
Does Python ignore extra + and -?
 
@Simon No, but it may sometimes look like it does. ;)
 
@Simon closing as unclear/no mcve
 
>>> ++3
3
 
@Simon Depends. +x calls x.__pos__() and -x calls x.__neg__(). If those two methods don't do anything, then I guess you can call that "ignored"
 
unless it's the binary a+b, c-d
 
6:31 PM
Take >>> 5 ++++++++++++++ 6 as an example
 
that's 5 (+) (++++++++++++++++++6) I believe
 
And 5 (+) (+++----)3 I presume? for 5 ++++---- 3
 
Unary plus must be one of the most useless operators in any language. But I guess it's traditional to support it.
 
(+++----)3 is nonsense
 
It can't be since it gives 8 :/
 
6:33 PM
@PM2Ring in matlab you can coerce a char array (that's really just an array of ord()s) to the corresponding numeric array with unary plus :)
@Simon you parenthesization is nonsense
 
Ok. And in JavaScript, it's commonly used to convert a numeric string to a number.
 
(beyond the fact that parenthesizing operators is forbidden anyway)
 
I think my example was the wrong way around maybe
 
you just should've written (+++----3) where pairwise unary minuses cancel and the unary pluses are no-ops
 
3 I get it.
 
6:36 PM
What Andras said. 5 ++++---- 3 is valid. It's just a dumb way of writing 5+3. And 5 ++++--- 3 is equivalent to 5 + -3, i.e. 5 - 3
 
cabbag
 
user8177336
Hey guys I just saw this piece of code and i was wondering what exactly it does? Here: it string1, string2, string3 = '', 'Trondheim', 'Hammer Dance'
 
user8177336
non_null = string1 or string2 or string3
 
user8177336
when non_null is printed it prints string2, why is this?
 
6:38 PM
there's a good post in the matter ^
 
user8177336
thanks guys i was looking for it but couldnt find it
 
actually, I was thinking of PM's similar post but any of these will work
 
user8177336
alright thanks.
 
Scroll down to the examples :)
 
6:40 PM
Here's my answer that Andras mentioned: stackoverflow.com/a/36551857/4014959
 
Ah, that's the one. All it needs is a python 3 facelift ;)
 
user8177336
thanks everyone. i finally understand. stackoverflow.com/a/47007761/… really helped
 
Hey @Simon. Here's a little puzzle for you. Define f so that f() is valid, and so is f()() and f()()(), etc. That is, f can be followed by any number of pairs of parentheses. Hint: it can be done in 10 chars.
 
OK.
 
oh wow you're right, it's exactly 10 characters without the punctuation
 
6:44 PM
If you follow pep8 it's 13 chars
 
was waiting for that
 
recbg
 
cbg
 
@PM2Ring you should edit your answer there to use repr
or preferably just a repl session :D
@coldspeed without whitespace
 
6:54 PM
@AnttiHaapala I thought about that, but I didn't want to confuse the newbies. And repr would make the code less clear, although it would improve the output.
 
so a repl session
 
sorry, I meant that :D
 
@AnttiHaapala I guess that would work. And I could update it to Python 3. I'll put it on my To Do list. ;)
@Aran-Fey Or 16 chars if we're being strictly PEP-8 conformant.
 
cbg
 
@PM2Ring Got it f=lambda: f
 
6:58 PM
Huh. How do you get 16?
 
a named def is 16 though without whitespace after :
 
that's strictly pep-8 conformant?
 
Does pandas groupby destroy ordering or records? I'm getting confused between python implementations of dicts and what pandas does
 
@Simon Very good.
 
@Aran-Fey maybe not, I'm not sure what PM meant
 
6:59 PM
@Simon welcome the world of lambda calculus
 
@roganjosh stdlib groupby needs sorting beforehand, perhaps pandas sorts on its own
 
Since I'm now using P 3.6, dicts have an order, but not guaranteed
 
00:00 - 19:0019:00 - 00:00

« first day (2779 days earlier)      last day (2159 days later) »