« first day (3451 days earlier)      last day (1480 days later) » 

 
2 hours later…
7:05 AM
hello
ugh ... was getting timeouts for a while there
finally have a user-space linux filesystem driver working using cffi =)
 
 
1 hour later…
8:19 AM
pandas read_html couldn't pickup ::after selectors?
import pandas as pd

df = pd.read_html(
    "https://en.wikipedia.org/wiki/2020_coronavirus_pandemic_in_the_Philippines")[2]


df.to_csv("data.csv", index=False)
 
::after is CSS, not HTML
 
8:34 AM
@TheNamesAlc The point is that an explicit None check is never wrong. Teaching beginners to "check is None" is a lot more reliable than "check is None unless there cannot be other false'y values". Likewise, in an interview consider the first to be the required answer, and the second to be the bonus answer.
 
8:46 AM
@Aran-Fey i understand, are there any workaround for that case?
 
no idea, I don't know pandas
 
9:13 AM
ugh pseudo element will not be within HTML
 
9:23 AM
@αԋɱҽԃαмєяιcαη AFAIK pandas read_html isn't intended to be a full-featured scraper, so you'd either need to wrap it under a better scraper. Or get access to the underlying CSV if that's a possibility. But do file an enhance request on pandas github.
 
user10984358
9:54 AM
@MisterMiyagi thanks for that added explanation
 
12:20 PM
 
12:34 PM
Hi everyone
 
1:32 PM
Hi
 
 
1 hour later…
2:47 PM
cbg
 
 
1 hour later…
3:51 PM
cbg-noon
 
 
5 hours later…
8:31 PM
'gbc'[::-1]
@PaulMcG How is that hackathon going? What sort of things are participants doing?
@AndrasDeak Re my unpublished canon submission. I can't get the markdown correct for the title line O(n\^2), what is it? (Also, the search engine ignores the ^ in ^2)
 
8:50 PM
I'm not familiar with any search engines that take non-text characters into account, alas. Not sure about the title, let me see
Seems fine to me. It's just that there was a space. Or how do you want it to look?
I've removed the space and fixed the markdown in the first question's title
 
@AndrasDeak I assume we don't say O(n-squared)in writing, so I'll leave it O(n^2) . Just noting the search engine won't find it. As to introductory sentence/title, do I broaden it to "What is the big-O performance of string/list/set/dict operations?"
 
It depends on whether you intend to add all of those to the same canon. I suspect each case needs a separate target unless you have a canonical that answers all of them.
 
@AndrasDeak Can we publish now and edit improvements later? or not
 
also note there's a separate "questions" box where you can add question links and it will get formatted, I think
@smci probably only people with full edit privileges would be able to edit after publish
 
@AndrasDeak Who dat, not the author (me), and how do I get full edit permissions (25K? rep)?
 
9:02 PM
It's a separate list of people for the site. I don't have access to it.
 
@AndrasDeak Would the person who maintains it please tell me what best to do?
 
I suggest putting it together to the best of your knowledge and then we can publish it.
 
Re this canon "Integer division returning “incorrect” values", the title and link are pretty ancient and 2.x-retrospective now. Also doesn't contain the term "floor division". Also the 3.x section should now come before 2.x And the sentence "N.B. : for both Python 2.x and 3.x // can be used..." is only true for 2.2+. Anyway there are lots of other better, more complete related questions now.
 
wim
there's a few poor choices in sopython.com/canon I recommend to maintain your own dupe list using Aran-Fey's stackapp, it works well and is much easier to search.
more searchable terms for O(n^2) and O(n) are "polynomial" and "linear" complexity.
 
@wim Which stackapp? I can't find it by searching this room. Got a link?
 
wim
9:12 PM
yes here it is stackapps.com/questions/8061/duplicate-target-manager (someone with permission can pls add that to userscripts?)
 
@wim In an oblique way, but new users will tend to say O(n-squared) and O(n).
@wim Thanks. Should sopython.com/canon be retired then? (I'd say yes. It's years out of date).
 
wim
nah, other people use it.
 
I occasionally do
 
@AndrasDeak per my comment above, the canon "Integer division returning “incorrect” values" contains information that's in places 18 years out of date. I don't think anyone here is going to maintain it. Killing it is less disinformation than keeping it.
 
Okay.
 
9:18 PM
@AndrasDeak Not okay. The canon is long out of date. Time to retire it.
 
Unfortunately(?) I have plenty of things to do that aren't arguing with you :) Let me just note this chain of logic:
1. you think that the canon is obsolete
2. it's so obsolete that you don't think it's helpful to you
3. therefore we should shut it down so that others who disagree with you can't use it either
@wim done (cc. @Kevin)
 
AMC
@smci Not all of the questions on there are out of date, though.
 
@AndrasDeak Noone's 'arguing'. I'm pointing out that the canon is so obsolete that maintaining it is a waste of my time, and I don't see other people maintaining it. If stackapp is a better solution than canon, and self-updating which canon isn't, I'm not seeing reasons to prefer canon to stackapp.
 
@smci I never said that you should prefer it. I'm more than happy if you ignore the canon.
 
@AndrasDeak Clearly ignoring it is a good start. The room rules should mention stackapp ahead of canon. Deemphasize.
 
 
2 hours later…
11:21 PM
@smci I'm actually working today, so I could not attend
 

« first day (3451 days earlier)      last day (1480 days later) »