« first day (2401 days earlier)      last day (2562 days later) » 

2:53 AM
Which one to prefer for learning python 3? python_doc or dive_into_python 3?
 
3:06 AM
Both!
 
 
2 hours later…
5:23 AM
stackoverflow.com/questions/43948164/… should be on Medium or something.
 
sweet bruh
 
6:00 AM
Anyone else run into the problem on Mac with Python 3.6.1, iPython 6.0.0, Jupyter notebook book, and pandas 0.20.1 where df dot column name for a column in the data frame comes back as SyntaxError: invalid syntax? I have never had this happen before. I know I can do df['col_name'] but df.col_name should work as well.
 
 
3 hours later…
9:07 AM
@dustin depends on the column name
df.a is valid, df.0 is not, for a column named '0'. Same for column names with spaces inside, etc
It's a limited convenience syntax
 
9:30 AM
I assume you need a string-valued column name that's also a valid property/attribute name for it to work
I expect df.0 to give a SyntaxError, and df.col-name-with-hyphens NameError or a semantic error
 
10:04 AM
If you're aware of this, you'll need to provide an MCVE
 
 
3 hours later…
12:52 PM
Cbg
 
1:08 PM
@AndrasDeak I am aware of all that. Column name is the string class. No space, no hypen just simply class
 
1:42 PM
@dustin so...MCVE please:)
I can test a python 3.6.0+ pandas 0.20.1 on linux
my hunch is that a SyntaxError can only be due to the native python, it doesn't even get handed to the third-party packages
weeell OK, and ipython too
which I don't have for 3.6.0, but anyway we'd first need an MCVE
 
DSM
2:13 PM
Brief morning cabbage.
 
brfmrncbg
 
DSM
@AndrasDeak: probably he meant df.class, which would definitely give a SyntaxError as class is a keyword..
 
nice crystal ball you have there ;)
 
2:44 PM
df.raise, df.global, df.nonlocal, df.None, df.True, df.False are similarly likely candidates, apparently ;) And I can only expect the same for df.print in python 2
 
DSM
I'm taking "Column name is the string class. No space, no hypen just simply class" literally..
 
Oooooooh.
+1 for your badge
I misunderstood the first occurence of "class", and completely ignored the second one...
 
3:31 PM
Cabbage.
I've been messing around with Tkinter, trying to plot single pixels. I've found that it's possible to do it with a PhotoImage. It starts out ok, but for some unknown reason it slows down after a short while. For a simple demo see gist.github.com/PM2Ring/2b9210d52b96dc711e3ee5ae2415c8ac
I also have a version of that code that encapsulates everything in classes, rather than using modifiable globals, but it doesn't prevent the slowdown.
 
Are the plots buffered?
Or is each pixel immediately pushed to the display?
 
@Code-Apprentice I don't think so: what Tkinter does inside the PhotoImage.put method is a bit of a mystery. :)
 
DSM
How many turns before the slowdown is noticeable?
 
I think it's noticeable after the plot has done a few bounces, but that's just a rough estimation, I haven't tried to time it properly.
 
DSM
I don't seem to see a change, even after several minutes.
 
3:40 PM
@DSM Interesting. It could be just that I have a slow & ancient machine. And I guess the .after method makes no guarantees about the delay, just that the callback doesn't get called before the specified delay (which is in milliseconds).
 
DSM
My notebook's not particularly powerful either. I'd be more suspicious of some weird tk thing.
 
I get a similar slowdown on both Python 2.6.6 and 3.6.0. In both cases it's less noticeable if I raise the .after delay arg to 10 or 20, but it's hard to tell if that's a genuine effect or just due to it being harder to estimate the speed difference by eye... I guess I need to add some actual timing code.
 
DSM
4:08 PM
I tried to use one of those screencap-to-gif tools but it almost brought down my session. I don't think I trust my judgment beyond about 25%, but I'm confident there was no 50% slowdown.
 
Thanks, DSM.
 
@PM2Ring && @JohanLarsson ^^
 
woo, listening later, forgot headphones
 
(I've heard this one in a restaurant a couple of weeks ago)
 
Mm...Slack for Android is not working
Keeps crashing :-(
 
4:38 PM
@PeterVaro can't listen to it right now, but judging by the title I've heard it in a movie (or its trailer)
 
@PeterVaro Nice find! His name doesn't ring a bell, but I must have heard him before, I guess.
 
@PM2Ring he is very similiar in style to bobby hutcherson, and they are both called bobby :)
(hutcherson is closer to free a bit, at least the tonal flavour of it)
@AndrasDeak no hurry, listen to it once you got home -- tbh I bet there are at least 1000 songs that has the same title :P
 
5:03 PM
yup, I think that's not that one :)
 
@PeterVaro And also a bit like Bobby Troupe. Wikipedia says that he was strongly influenced by Errol Garner, and I could hear that in some of the more standard tunes I just listened to, including Poor Butterfly with Judy Garland. And that led me to discover a nice version of Poor Butterfly by Andrea Motis. I'd post a link, but I'm on my phone and getting YouTube links is rather painful.
But that tune you linked, Perfect Day, was quite unusual. It has strong Latin influences but is much more powerful than the West Coast bossa sound coming from people like Stan Getz.
 
user6845426
5:28 PM
cbg all o/
 
(I've been listening this song for more than 12 years now!)
 
5:50 PM
Any good websites for python tournaments? - in which you can win stuff.
I am aware of hackerrank
 
user6845426
6:00 PM
Can you win stuff on hacker rank?
 
user6845426
oh didn't know that :)
 
user6845426
I thought it was just used as a screening platform
 
user6845426
cbg o/
 
6:41 PM
in Android, 23 mins ago, by Code-Apprentice
https://www.malwaretech.com/2017/05/how-to-accidentally-stop-a-global-cyber-atta‌​cks.html
 
user7102066
7:03 PM
I'm trying to learn more about class creation and it's application. Any suggestions on practice sources? doing is the best to learn :)
 
7:49 PM
Anyone watching eurovision?
#voteDenmark :)
 
8:23 PM
Any GitHub gurus online?
in Android, 32 mins ago, by Code-Apprentice
Holy shit Bulgaria mixed Justin Bieber and Kylo Ren for #eurovision. https://t.co/O3unC51us1
I only saw this on twitter.
Sounds like a scary combination
 
wtf
I don't see the similarity though.
 
which similarity?
He's dressed in black == Kylo Ren
 
that corresponds perfectly to the amount of hype I feel for eurovision
 
Oh, alright. So when you are dressed in black. You are automatically like kylo make sence lol.
 
I used to be mildly excited about it as a teenager, but then it turned out that the quality of the performers had no correlations with voting. And then it became customary in my country to make a huge deal out of eurovision, pretend that we're the best of the world, then suddenly act surprised when we bomb out in the finals. Every. Yamming. Year. I just find the whole thing off-putting
 
8:29 PM
Where you from Andras?
 
Hungary
 
@AndrasDeak maybe you learned what correlation means and there was really no correlation to begin with
Anyone mind forking my repo and making a PR for some testing?
 
It's kinda cheating when people write songs/sing the songs for other countries which they weren't born in.
 
@Code-Apprentice what do you mean?
 
8:32 PM
I'm just testing out some GH features. I just need a dummy PR to test with.
 
follow the arrow...
 
oh weird...the fork button was disabled just a moment ago
oh wait...that's because it was still my empty repo...forgot to refresh the page lol
I'll just create an "organization" for testing
 
@Code-Apprentice clean your language, please
this room has been condemned a no-profanity zone
 
my bad ;-)
well placed profanity is the spice of life
 
I agree, but it's not our call to make
 
8:38 PM
so github creates a branch for a PR. It's hidden from git fetch by the default settings in .git/config. I was hoping there would be branches (or at least commits) for issues and other project data. Can't find it yet, though.
 
9:16 PM
Those of you who watched eurovision, I am curious which songs were your favorites? I think mine were Italy/Romanian
 
9:42 PM
LOOOOL
A guy just ran up on the stage and flashed his butthole xD hahah
- live television
way to go xD
 
You have true live television over there? The States is too prudish for that. Live TV here has a few second delay.
like 10 or 15 so they can bleep shit out
or blur it out as the case may be
 
I think so.
I got a feeling that Italy will win
 
DSM
10:59 PM
@Code-Apprentice: people have been receiving two warnings, typically; you got one from Andras about language, and since you broke the rule afterwards, I'm giving another. This is a StackExchange-wide policy, not something particular to the Python room, and has already been discussed to death. There are countless other places you can curse to your heart's delight.
 
@DSM noted. I will be more careful.
 

« first day (2401 days earlier)      last day (2562 days later) »