« first day (2900 days earlier)      last day (2273 days later) » 
05:00 - 19:0019:00 - 00:00

19:00
I can't remember what "regular" means in the context of regular expressions so I just forge forward with only ignorance as my shield
I believe it's the strongest shield of them all, for a time
If I'm not trying to match parentheses with an arbitrarily deep level of nesting, I'm good to go
You can do a shocking amount with regex. Though depending on the case sometimes I wonder if it's worth it
with these new regex flavours, it goes up to 1826 volts
If you trace back the etymology of any word or expression, you'll eventually reach the same root question of "why does(do) that(those) sound(s) mean that thing?"
19:03
there's a small niche along the lines of "find these two strings separated by two or more of THIS"
or just "find two or more of THIS" come to think of it
@piRSquared because bouba and kiki already meant something, so we had to make new sounds for the new thing
4
DSM
DSM
@WayneWerner: interesting. Indeed, I agree that the rounder one should be "b" and the sharper one "k".
my brother first introduced me to that, and it's been surprisingly relevant at times throughout my life
I'm pretty sure this is a chicken-and-egg problem. Did languages evolve this way because people are prone to associating these shapes with these sounds, or do we associate these shapes with these sounds because some old proto-language evolved this way, affecting current languages?
and the most meta of all (or teenager of them all): does it even matter?
19:13
next you'll tell me that all sorts of eggs have been here way longer than chickens
Pondering about evolution, at some point something decided that it was going to mutate to laying eggs for survival, but that thing didn't come from an egg, so would it actually be the same species as its offspring?
where do you draw the line?
Richard Dawkins tried to clarify this and didn't make it clear at all
The one time I've seen his evolution arguments break down a bit
Quick! Let's clone a Richard Feynman and get him interested in Biology instead!
One could theoretically say that the egg always came first because the thing that laid it was 99.999% chicken
Is a smooth transition via "egg -> egg incubated inside -> no egg" unlikely?
19:18
But then, all species have a broad gene pool so I guess there just isn't a clear line
hmm, nevermind, that's something else
define "egg"
Tasty orange and white thing, good fried
are all eggs female reproductive matter? /notsure
What is "reproductive matter"?
something required to make a genetic copy of yourself. Although I suppose arguably it's actually a repository for genetic material of another of your species to create a genetic combination of both of you
19:22
A thousand grains of sand is a pile of sand. One grain of sand is not a pile of sand. There is no clear delineation where you can say "X-1 grains of sand is not a pile of sand, and X grains is a pile of sand". And yet the concept of "pile of sand" is still a useful way of describing sand.
hopefully with the most fit characteristics
Is a placenta "reproductive matter"?
wim
wim
junior dev knows how to use regex. senior dev knows when to use regex.
The egg is not part of the chick, it's just an enclosed placenta
Not in this case - it grows as part of the reproductive process... I think.
19:23
It doesn't, as far as I know, carry any genetic information, it's just proteins
unless it's actually part of the parent
@wim ninja-dev writes html parsers
I'm not entirely up on my biology :D
Only like hair and finger nails are part of the parent
You wouldn't consider ear wax to be part of your body
Weird fact: Your daughters eggs were created by your mother-in-law. Unless you are a female, in which case, your mother.
19:24
I think the answer is about as meaning as whether Pluto is a planet
PLUTO IS A PLANET
@piRSquared #toosoon
wim
wim
guy on my team has this t-shirt "back in my day, we had 9 planets"
Tell that "{descriptor}-planet" to clear it's orbit then we'll talk.
@WayneWerner huh? You're starting to lose coherence
19:26
@WayneWerner what's far weirder is that mitochondria, which you could not possibly exist without, are actually alien bodies. They have completely different genetic code to you
You inherit them from your mother but they are not human. They also can be traced back to a "mitochondrial Eve"
Mitochondrial dna is passed down the matriarchal line exclusively. Much as the y chromosome is passed down the patriarchal line exclusively
I'd wouldn't say they are not human.
Do different species have substantially different mitochondria?
Human cells are the result of a symbiotic relationship that became... permanent.
Do mitochondria evolve? <head explodes>
@piRSquared mitochondrion: "just the tip"
weird English spelling
19:30
A symbiotic relationship can't be classed as part of the same organism though?
ask trills
^ reference lost on me
Then you are made up of trillions of organisms that are very well organized
@piRSquared until they're not and you're blending poop and piping it into your gut :P
@AndrasDeak but that's a compound thingymajig? Like, the phrase was designed to encompass both
so was "human" ;)
Point being, Humans are either a composite being or a symbiotic relationship made permanent. The terminology doesn't change the reality
Yeah, I don't think I can argue with that
How about all those bacteria that live inside your intestines and help you digest?
19:35
That's what I was referring to when I said about blending poop
That's actually a treatment you can get in hospital. They take the faeces of a relative, put it in a blender and then pipe it into your intestines
yum
just like mama koala does
So when I squish an ant, am I merely cutting the hair of the colony or murdering an individual organism?
perhaps we should change the subject
19:37
Basically, they don't know properly how it works, but it has a shot at balancing the population and it can be really effective for some chronic illnesses
@piRSquared why not both?
wim
wim
damn, that a cool website jwz.org
arguably each ant has a nervous system as opposed to your constituent cells
Apparently blending poop is a thing you can do at home...
"do not try this at home"
rbrb to regain intestinal composure
intestinal composure, oh interesting way of putting it. I will have to try phrasing it that way.
@wim agree
19:40
I don't remember when I came across that, but you're welcome that you now know that's a thing.
"Diagram of colon" is a required thing
Just been invited to a private chat for a typo :/ Nope nope nope
@wim That is a fantastic page
@Code-Apprentice I'm curious why you answered that rather than a comment? It would have been roomba'd otherwise, now it's permanent
Do we have a canonical target for "how do I assign to a list-of-lists?", or shall I fire off a one-sentence answer to How to change a number in a matrix in Python?
Sam
Sam
Evening guys.. I've made an authentication web API using JSON web tokens and I have a question regarding payloads.. I've created a new module which runs a simulation given some input data (for this example we can assume I have some front-end form with 35 inputs)... is it feasible (or correct) to send this amount of data via the tokens payload? It seems like a lot of information to attach to the token as opposed to what i've seen in examples on blogs
19:50
@roganjosh I'm reticent to answer questions in a comment
Even when you know they should be closed as a typo?
yes, plus formatting code in a comment is problematic
I thought that was the whole point, so they get cleared from the system as not useful to anyone else
@Code-Apprentice for me it depends on how new they are
mmm, but then being lenient to new users on how the systems are designed to work just raises their expectations of what we'll answer and then cause confusion later on?
19:52
I still VTC
But the close would get the question removed if it didn't have an upvoted answer. Answering and getting upvotes blocks the automated system.
but if I see an obvious typo, I'll comment 'Hey you have a typo here' and VTC
and downvote the crap out of anyone who answers it :P
I don't put a very high priority on clearing useless questions out of the system. What's the concern here? That they'll crowd out useful questions in a google search? How often does that actually happen?
if OP accepts you won't even be able to delete and it won't ever roomba
<cough> there's a candidate for that :P
19:54
oh, that's just what happened
I would hope that useful questions would have a higher page rank, on account of many upvotes and page views and what have you
If a typo post with an answer is going to wallow on page 10 of my search results, that doesn't bother me none
@WayneWerner and again, how come I hadn't read that before :P
must be a case of <interesting abstract concept relating to Antti's not hearing about interesting abstract concepts>
20:12
cbg
cbg god coldspeed
@AndrasDeak mia culpa
20:15
cbg
post-lunch-pre-migration cbg
"until they're not and you're blending poop and piping it into your gut :P" made the star board lol. That should be interesting for people not present for the discussion :P
We aim to... something something
which starboard?
oh, that one
----------------------------------->
lol
20:20
Is it not called the star board?
I'm not down with all the lingo
the starboard is starboard of the chat
and the starboard of the chat
... What?
Doh, that was quite a good pun and I didn't catch it :(
20:22
TIL the origins of starboard and larboard port
DSM
DSM
@coldspeed: our proposals matched character for character, any(i in {a, b} for i in nums) I mean
@DSM Good. That means I'm getting better :)
DSM
DSM
Now, are we worried about the reconstruction of {2,3} each time or not..
If it's {2, 3}, it'll probably be interned, otherwise I'd say it's "seriously, don't worry about it" kinda small.... to quote the numbers guy
DSM
DSM
I can't remember if we intern literals inside a genexp or not, because it's not the sort of thing I ever care about. :-)
20:34
I'm pretty sure {2, 3} on the right side of an in gets cached in CPython since some 3.x release.
{a, b} doesn't, though.
and there's the numbers guy... thanks for clearing that up.
DSM
DSM
@user2357112: that sounds plausible.
Why not {a, b}? It does a lookup for the value on each iteration? Why would that ever be necessary?
it's probably a part of python's philosophy to never make assumptions on the values of variables at any point of time.
@roganjosh: In case something crazy changes the value of a or b, or the hashing and equality comparisons have weird side effects or something.
20:38
A semi-serious challenge; could you illustrate that?
Not being bothered is also an acceptable answer :P
DSM
DSM
Even in non-pathological cases you'd need to make sure that nobody was doing anything like [x in {a, b} for x in range(5) for a,b in [[2,3],[4,5]]], and they probably figured it wasn't worth the bother.
(Assuming, of course, that we're correct in thinking that while they might sometimes intern literal-defined objects they don't hoist.)
Cabbage
DSM
DSM
Cbg, PM2R!
Oops, I just missed my bus, thinking about interning. I knew talking about internals was a bad idea!
oh dear. Do you have a backup plan?
I'm on my phone, so I can't (easily) test stuff, but can you even put mutable things in a set? I seem to remember that not working...
20:43
@DSM oops... is there another one coming soon?
DSM
DSM
Yeah, patience is my backup plan. ;-)
I burned myself with something similar, when I was passed in an iterable which I made into a set inside a list comprehension. Turns out the iterable was a generator expression, so the set was null for all iterations of the list comp after the first one.
@DSM I should probably take some responsibility for that. Instead I'm settling on hoping this notification doesn't make you miss the next bus.
Why would two separate function calls with a default parameter setting an array to [] add to the same array?
well list
yeah, call it a list
20:46
OTOH, mutables that have a __hash__ method can go in a set or be used as dict meys. But that doesn't apply to lists.
it's one of the common pitfalls of python
DSM
DSM
@DavidKamer: the mutable default argument strikes again!
One of the Classic Blunders, as it were
god almighty this is why I'm slowly switching to julia lol
Are you saying that a default [] in two different methods is sharing the same list? That is not expected
20:48
I can count these pitfalls that I know of on one hand so it's not that bad
No, surely it's not across two methods?
@PaulMcG they just mean def foo(inp, arg=[]): arg.append(inp) called twice giving you a list of length 2
@PaulMcG Definitely not!
Ah, he said "two separate function calls" , not "two separate functions"
@DSM that's a pretty long explanation for a poorly implemented use of pointers lol jk
20:49
Phewsh!
@PaulMcG I'm saying I've defined def primer(n, i=1, arr=[]):
It receives no array
because it receives a list
'arr' is a funny name for a list
it appends to the default parameter list
Sometimes that is intentional
20:50
then uses recursion and returns an array
*list
you can edit/delete messages for 2 minutes in chat
It works!, but then...
I call a second time and I the first array appened with the new array....
DSM
DSM
@DavidKamer: it's not about pointers at all, but about when they're defined. You, and a lot of people, interpret arr=[] as like a command inside the function, even though it's to the left of the :.
How Python handles default mutable args is a feature, not a bug. But I agree that it can be upsetting if you don't understand what's happening. And if your code uses mutable default args it should always be commented so readers know that you're doing it on purpose.
ok, if it's a "feature" how do I make it behave like a default arg and not like cancer
20:53
@DavidKamer please tone down the...tone
DSM
DSM
And suddenly I'm happy to go catch my bus. :-)
if you want a new list with each call, create a new list with each call
DSM
DSM
Rhubarb for all!
rbrb for DSM
20:54
What's this so-called "feature" good for?
does anyone know where can I get the pdf version of the original numpy book?
Already? That's a much faster bus schedule than I'm used to.
I mean for free :D
@AndrasDeak sorry, so just throw a falsy in there as a default arg or something and check for that? lol, wow that feels ugly
@Aran-Fey as I understand it's less "feature for your use", more "feature because this is how python naturally works and anything else would be going out of our way"
@DavidKamer use a sentinel
the post linked in the top answer the DSM linked gives you that pattern
20:56
@Aran-Fey Caching. A def arg cache is the fastest way to do memoization in Python.
Biting users in the butt because the language devs would have to go out of their way to implement a minor change seems.... unpythonic
@kmario23 I googled "numpy book" and the first hit is a pdf with the book. Did I misunderstand?
@AndrasDeak I mostly do functional programming but I'm aware of this way of doing it, It just felt unnecessary and I just wanted to make sure there wasn't a better way.
make sure you read how the post suggests it anyway, because odds are you'd do it wrong on your own
@PM2Ring And you want the cache to be a parameter? Why not make the cache global, or a function attribute? Don't tell me it's because you want to save some microseconds...
20:58
how can you define a function attribute from inside the function?
Hmm? Why do you have to do it inside the function?
@AndrasDeak Sorry for not being specific. I'm looking for the 2nd edition of "Guide to NumPy" by NumPy creator himself (Travis Oliphant)
@Aran-Fey It's not a minor thing. It's a logical consequence of how names work combined with the fact that default args are evaluated when the function definition is executed.
2006 version is already available for free here: web.mit.edu/dvp/Public/numpybook.pdf
^
You said "the original numpy book". It doesn't get any more original than that.
21:00
def f():
    f.__name__ = 'h'
    return 1
@AndrasDeak I might leave it false instead of none (the only difference between what I did) so that when I look at it latter to put it in other languages I don't have to think about it...
doesn't that work?
@DavidKamer I had neither False nor None in mind
@PM2Ring Well, but why are they executed at function definition time? How hard would it be to evaluate them anew every time the function is called? Sounds like a minor change to me
of course if your list will always be a list then None will work
21:01
@AndrasDeak effbot.org/zone/default-values.htm This is what that answer pointed me to
If you want to write good python use None. False is semantically meaningless as a placeholder.
@DavidKamer good, I got that link myself
It's using a flag...
@AndrasDeak :) since it was written 12 years ago, it'd be better to read the latest version, right?
@kmario23 we're all adults here, you have to ask what you want to ask :P
@AndrasDeak what do you mean? would an undefined param be false?
*evalute to false in a condition
21:02
I mean None means none. False means logical False.
An undefined parameter doesn't evaluate to False
@kmario23 good user update their answers imo lol
a placeholder in place of something should not be a boolean
@DavidKamer in other words, many things can be false. only none can be none.
@DavidKamer they're talking about a book
21:03
Just like you are trying to set a default value as an empty list, you could set the value to None, False or some other value. False suggests it's some flag that is off by default, while None suggests it's some object that the user can provide when they call the function
Anyway, I've seen you interact in the JS room and this is as much effort as I'm willing to put into this discussion, @DavidKamer :) Your question has been answered, let us know if you further need anything specific.
@DavidKamer exactly we're talking about the NumPy book
@Aran-Fey You can do any of those things if you want. Or put the cache in a closure, eg by using a decorator. But they're all slower. ;) The mutable def arg gets a bad rap because most people discover it by getting bitten by it when they're first learning Python. IMHO, that's not a good reason to avoid it. But it does mean you should document it if you use it, as I said earlier.
@Arne lol, I'm spoiled with my === in JS. I figured as much but None seems kind of python specific and I don't necessarily want to go that route.
when in Rome...
21:04
=== is JS-specific?
@AndrasDeak Ok, thank you.
@AndrasDeak the problem is that this book costs around 50 EUR here in Germany :(
Or does it exist in other languages?
(also we have ===)
Complaining about it is like saying Python for loops are buggy because you can't increment the loop index.
21:05
@roganjosh it also exists in Julia, for instance
Yes, Scala
This is too pricey for my budget but I'd like to
@PM2Ring Biting users just to speed up a rarely used feature like caching by an insignificant amount seems like a bad design choice to me... but I suppose we can disagree
@kmario23 have you already finished the online tutorial?
@AndrasDeak probably several times :D
21:07
"The lack of railings on this staircase is a feature! It lets you save a few seconds by jumping off the side near the end. People complaining about it don't know how to use it properly."
@Aran-Fey my point is that this is a direct corollary of functions being created on definition, complete with default args. This seems like a straightforward consequence. Anything else is extra work so it's not like they went out of their way to confuse users
How's everyone this fine monday afternoon?
@kmario23 I see :)
@coldspeed it's already night in Germany :)
@Aran-Fey Are you saying that default args should be re-evaluated on each function call? I wouldn't expect the language to do that, and it would be inefficient.
21:08
I think there was something about Guido noting that he'd change default mutable args if he could, or something like that
@AndrasDeak Sure, I'm not saying anyone went out of their way to make it confusing. But it's undeniable that it is confusing, so maybe the devs should have gone out of their way a little bit...
@PM2Ring Yep. Most default arguments are immutable built-in types, so most of the time it could be optimized away and wouldn't be any slower. And even if it was, would anyone care?
Can't argue with the "it would be unexpected for me" bit though
Are there any Python processors that I can test out to see if they remove some of the mutations like the default arg thing?
rbrb all - no sympathy from me for bootleg book downloaders, btw
Off the top of my head, Scala, Ruby, and C++ evaluate default arguments on every call, and I'm not aware of any non-Python languages that use the weird default system Python does.
Evaluation on every call is a perfectly ordinary thing to expect.
@PaulMcG lol, I was thinking whether someone has a copy and I could 'borrow' it ;)
21:13
not sure which camp that is an argument for, but php also evaluate default on every call runs away
What's the close reason for a post in another language?
"unclear" I guess
-1
Q: Como 2 columnas de fecha y mostrar en resultado en horas

davemi duda es como restar dos columnas pertenecientes a un dataframe y el resultado mostrarlo en horas (con los decimales incluidos). las dos columnas de fechas estan transformadas a datetime fecha1 2018-09-11 11:31:09 fecha2 2018-09-10 10:30:38 resultado 2,00111111 horas saludos! dave

@Aran-Fey Maybe. OTOH, even def non-mutable args often get initialized with a non-literal. Should they be re-evaluated.
Spanish? Can it be punted to another SE site?
Like es.stackoverflow.com . But I can't speak Spanish (it might not even be Spanish) so it'd be useful if someone could comment or do the needful and move it
21:16
@roganjosh don't migrate crap. If you don't know if it's crap, don't migrate.
Quite the predicament
It's not a predicament.
what about a new keyword that is signature-only and makes a default arg re-evaluatable? def foo(transient bar=['baz'])
PEP 572b
hey hey
21:18
Well, can anyone confirm if it's Spanish so I can post the link for the relevant SE?
no way to abuse this, right?
nah, just ew
@AndrasDeak hey could you elaborate on that a little. I feel like you mean I'm not very easy to get along with, and I like to improve on my flaws. I have a hard time grasping tone through messages and I just want to make sure I'm not behaving in an unprofessional way.
@Arne people who are aware of the pitfall can avoid it anyway, so I guess that would be mostly syntactical sugar
@roganjosh it's definitely spanish
21:20
@Arne I could live with that. Or even the converse: make re-evaluation the norm, unless the arg is marked as static.
@PM2Ring Huh, I rarely see expressions in default arguments. But anyway, yes, for consistency they should be re-evaluated. No point introducing arbitrary rules for when things are re-evaluated and when not. That'd only be more confusing than the status quo.
@PM2Ring that would break existing code, though
@DavidKamer Thanks. And I think the issue was with "cancer"
(and if i remember correctly, much of what you write)
@Arne More reasons why we need a python 4!
21:21
:p
@DavidKamer I'm not sure you're unprofessional per se, but I've seen multiple instances of you getting into endless arguments about things that didn't need getting into arguments. At one point discussing things becomes counter-productive, and I tend to think that some people are more likely to drag things beyond this point than others.
@Aran-Fey It could be simple assignment, eg lambda i=i: update_thing(i), which is a common pattern with callbacks.
I wouldn't like a new keyword being introduced for that though. Before you know it the language will have half a dozen of rarely-used obscure keywords that make the code impossible to read for non-experts
and frankly we've discussed the mutable default arg issue multiple times so I'm not particularly curious to see yet another installment with someone who wants to avoid using None in order to more easily port to JS :)
@Arne Well, now you're really showing up the ignorant Brits that speak English and English alone :P
21:24
@AndrasDeak understood. I try to avoid that these days. It looks like I didn't have to as it was a discussion anyway. I only argue when someone defines an opinion as "wrong". I apologize if I've ever caught you in that crossfire. have a good one
@PM2Ring But defining a lambda in your function's signature is ugly anyway. If people would stop doing that, well, two birds with one stone :P
@DavidKamer no worries, see you :)
That's putting a hat on a hat, isn't it?
@PM2Ring Nevermind, I just realized I missed your point...
@Arne Very true. If the language were to change like this, your suggestion is much better. I'm not totally inflexible regarding this topic, even though I'm happy with the status quo.
21:27
many people will say it's status ¿que?
wim
wim
any argument to "improve" it has to have a good answer to "what's wrong with doing this":
def foo(kw=None):
    if kw is None:
        kw = some_default_expr
not a one-liner, blargh!
@PM2Ring My previous argument still applies, pretty much: Using default arguments to bind the current value of a variable to the function is ugly anyway, so if people would use functools.partial instead the world would be a better place
JStools.bind
21:30
functools.partial is even uglier, IMHO, it just hides the gory details.
wim
wim
I tried many times to think of a convincing argument and could not get one. Defaulting to None is simple, clear, readable, Pythonic.
@roganjosh the black hand compells me..
@wim "It bites newbies in the behind" isn't a good enough answer?
wim
wim
All the improvements I've seen had weird edge cases and problems. Defaulting to None only had one problem which can be easily worked around (sometimes you want to actually pass None literally).
@wim unless you make your life miserable by making None valid input
21:32
I'm curious to know what Wim thinks of functools.partial... but I guess I could a search for that. ;)
but for that you have (nonlocal) sentinel=object()
@PM2Ring something something dumping ground
let's just say he's not partial to functools
@Arne you've been listening to Stairway to Heaven in reverse again, haven't you? :/
wim
wim
I have some tolerance for biting newbies in the behind. To try to protect n00bs too much is a fool's errand, they will just get bitten by the next thing.
You can always do stuff like sentinel=object() if None can be a valid value. But that's pretty unusual if the arg is supposed to be a list. Ninja'd by AD
@wim Sure, but what's a good reason why default arguments shouldn't be re-evaluated?
wim
wim
21:36
re-evaluating them might return a different value each time
...isn't that the point?
wim
wim
when it is in the function it's clear that it is re-evaluated
when it's in the function signature, it's not clear
experienced users know it isn't, n00bs assume that it is
So does that mean you would avoid using mutable default arguments, because it's not clear if they're re-evaluated?
wim
wim
Yes, I avoid them altogether these days.
I admittedly have some old code which took advantage of the fact, back when I thought that was cool or clever.
Ok, that's fair
21:39
Default initializers would have to be stored as code objects so they can be re-evaluated. That takes more space than simply storing the resulting object. And is obviously slower.
@roganjosh Just read the welcome wagon blog post again. Same thing, right?
Hahaha
21:58
@Aran-Fey fwiw, i also avoid them, because i'd consider them unmaintainable by a junior.
@Kevin Re: searching a sorted list of floats using Aran-Fey's suggestion of bins, you can locate the correct bin in O(1), assuming your floats span a relatively compact range so that you can use simple arithmetic to calculate the bin number. But take a look at skip lists.
@Arne That's reasonable. I can respect the viewpoint that they're confusing and should be avoided.
Why is calling someone a "noob" offensive but not so much if they're a "n00b"?
They're equivalent?
I would probably be more enraged at being called a n00b
perhaps n00b attempts to be ironic in a self-deprecating way
like calling yourself such a h4xx0r
honestly I don't see the tonal difference between the two, but these are subtleties that I often don't pick up as a foreign speaker
22:08
"h4xx0r" is cool, though!
h8ers gonna h8
n00b sounds like the kind of censoring you'd do to get around the bad word filters in some mom/pop punBB forum
eh, what do I know
n00b to me is equivalent to someone lecturing me on grammar and getting "their", "there" and "they're" mixed up. It's an extra-high-horse over "noob", which would already have got my back up.
Eh, it's hard to describe. "Kiki" words
kiki... do you love me...
That's more "bouba" I think
22:16
FWIW, this old answer does timeit comparisons of different caching strategies. Admittedly, the speed differences aren't huge, but when you need caching you generally want all the speed you can get. Note that the code tests a few different algorithms. stackoverflow.com/a/34036910/4014959
@PM2Ring Could you add a tl;dr version in all your answers from now on please? :)
@coldspeed There's not a lot of text there... the code is long because it's testing a whole bunch of variations. But I've done much longer timeit programs when I've tested all the functions from other answers plus one or more of my own. In the biggest one (counting inversions needed to sort a list), it was so big that I had to post the output as a separate answer. :)
@roganjosh Did you get an answer? This is indeed Spanish, which Google Translate renders in English as: my question is how to subtract two columns belonging to a dataframe and the result show it in hours (with decimals included). the two columns of dates are transformed to datetime date1 2018-09-11 11:31:09 date2 2018-09-10 10:30:38 result 2,00111111 hours greetings! dave
@PaulMcG The question got deleted
Arne decided to show he speaks a 3rd language (assuming he didn't cheat with Google translate)
23:01
room seems to have gone back quiet - rbrb (shhhhh....)
05:00 - 19:0019:00 - 00:00

« first day (2900 days earlier)      last day (2273 days later) »