« first day (2884 days earlier)      last day (2289 days later) » 
00:00 - 20:0021:00 - 00:00

00:02
I'm sure they'll appreciate it
@AndrasDeak My point here is directed to the close-voters. My comment there is directed to the OP.
00:33
Weekend cabbage!
@LuisAverhoff I never got that because you misspelled my handle. Anyway I was asking what actual (unique) values of word that stem(word) was called with? Profiler won't tell you that. You could either use print or logging. (Also, that 53388 count is before caching.)
@smci no 53388 was after caching.
like I think it was around 143,000 calls before caching.
01:41
cabbage
Are we seeing more and more of these questions that look good on the surface, but are in fact new feature requests with no attempt whatsoever by the OP?
https://stackoverflow.com/questions/52231247/i-want-to-add-a-scrollbar-to-a-whole-tkinter-window-in-python-so-that-it-works
How and where to report candidates for deletion?
https://stackoverflow.com/questions/41211060/how-to-add-scrollbar-to-tkinter
 
2 hours later…
04:08
@smci in the dataset that I'm working with, I have a panda dataframe with two important columns: label with values 0 or 1 to denote positive and negative sentiment. Then we have the text associated with that label.
What I'm want is a pythonic way to to traverse through the both columns once to create two lists. These two lists will hold positive and negatives words respectively so I can plot them in a wordcloud.
I was thinking of doing this positive_list, negative_list = dataframe[["label", "text"]].apply(getWordsBySentiment) but all this does is call the function separately for the label and text and not both of them at once.
04:33
@LuisAverhoff Did you look at the stats returned by stem.cache_info()? As well as showing how much benefit the cache is giving you, those stats can be useful if you want to set a maximum cache size.
@PM2Ring No I have not. Thanks for telling me about that. I'll look into it.
Using a size-limited cache is slightly slower, but it can save a lot of RAM.
@LuisAverhoff No worries. It's explained in the docs. ;)
tyty
also cbg
cbg 2 u
late night cabbage
05:07
That is a fun question (-: stackoverflow.com/q/52232129/2336654
cumsum() is such a poorly named function...
Hello gutter. Please take care of @Code's mind while it's with you.
@piRSquared exactly!
05:24
o/ @ReblochonMasque
05:35
rbrb
unclear stackoverflow.com/questions/52226473/… Also, it's an exact dupe of their previous unclear question.
reposted from a couple hours ago, I realized I messed up the tag
That's not depression, that's meth lol
`depression = meth`
fixed!
07:27
cbg
^ those 4 cv-pls are now closed btw, save others from opening all the links :)
07:44
Thanks here's another one. :)
tis the season :)
too broad stackoverflow.com/questions/52233028/python-sql-query aka "explain this crappy code I didn't write".
I guess it's a good thing that he asked about it, and didn't just cargo-cult it.
Anyone familiar with MySQL in python?
I've had to take a jump to answer a question I can't physically test, and the OP is reporting a result that I am pretty certain shouldn't be happening
You can just spin up an in memory sqlite database pretty easily for that example
stackoverflow.com/a/52233007/4799172 c.description should not be reporting column types but rather their names. At least, it's always worked with SQL versions I've used
My answer would work in sqlite
Have they perhaps changed the index in my list comprehension?
Eh, I'm bailing on that
08:15
@roganjosh In stackoverflow.com/questions/52233254/… the OP is using np.concatenate because the code is an experiment to help them understand how np.concatenate works.
Shouldn't they have multiple arrays then?
They define a and then never use it so my assumption was that they were trying to get to a from lists
@roganjosh Well yes. :)
mmm, I don't know what to say to them then because if it is an experiment, it looks poorly designed but I'm not sure I'm buying that interpretation of the question :)
But concatenate will happily accept a list of arrays.
Maybe they're trying to get to something that can use vstack?
And incorrectly went with concat
08:20
The question says: "In the following program I am trying to understand how np.concatenate command works"
Only because it doesn't give them the 5, 5 shape they want
Which it won't
Indeed. I'd answer it, but I'm on my phone.
The comments are also now eluding to vstack. The OP just keeps restating the issue rather than addressing the comments - I'm oot :P
It's possible with concatenate, he just needs to add a dimension :)
I see your answer :)
08:26
It's hacky but it should help him understand the function
I think you struck a decent balance re: the debate we've been having here
Yet another reason not to mix lists and numpy arrays though
Thanks, user3483203.
stackoverflow.com/questions/52233427/… way too broad. The niche tags means it won't get much footfall
@PM2Ring do you want a retag on the sorting question?
The question as-posed is language agnostic I think :/
08:52
@roganjosh No, don't retag. As you said, it's language-agnostic.
Yeah, I misread your comment under the answer sorry
But it'd be good if someone approved & improved that edit on the concatenate question. The output should be separated from the code. I tried to do it, but it's a PITA editing a pending edit from the mobile view, you can't see the left half of the screen.
The edit has been approved 3 min ago
So it has. In that case, I'll fix it myself.
@PM2Ring I've done it
08:59
Thanks.
@user3483203 done
10:09
@LuisAverhoff Assuming each text item can't be labeled both positive and negative sentiment, why not have just one label column with value +1 for positive, -1 for negative, 0 for neutral? Also easier to build both your wordlists simultaneously.
brief cbg
@user3483203 I was pondering if that was a suitable dupe or not... the first element is that they need to access the index at the same time but it mostly appeared to be a rather unclear formatting issue thingy...
@jpp I like your meta post btw... it's a weird one though... the same debate has gone on with regex related questions as well...
@LuisAverhoff Sorry I might have misunderstood you, don't call your function once on each column with apply, i.e. twice. Call it once with two args: getWordsBySentiment(df["label"], df["text"])
Or declare a class that instantiates the dataframe, and has a method getWordsBySentiment()
Do we have a dupe for stackoverflow.com/questions/52234251/… that isn't along the lines of "you don't want to update globals" kind of thing?
That's the one that came to mind and there's far too much in that one I think
10:22
mmm, just because they have another list of incrementing numerical names, I'm not too sure it's any different than range() or other methods
umm... since you're about here a lot and active - I'd be happy to grant you access to sopython.com to use it to update canonical question stuff if you wanted?
I feel like I'm being knighted :) I would actually quite like to have a go at updating that list as and when because there's a couple of questions that come up that I have to keep searching for
@roganjosh if you go to the site now you should be able to add/edit canonicals I believe
Awesome, thanks. Yes, I have access
great - be responsible and all that with it :p
10:28
Oh I will <shifty eyes> :P
On the question you linked, I'm not aware of a better dupe though
@JonClements I'd go with the "variable variables" one plus this: stackoverflow.com/questions/209840/…
ahh... that later one looks good... if you're happy with that - go with :)
@Aran-Fey thank you
@ReblochonMasque
teamwork (freezeframe high-five)
ok, noted @AndrasDeak, thank you
10:42
@ReblochonMasque does it need deleting though?
The question is bad, the answer too, and it has a good dupe. What lasting value does it have?
Also OP is unwelcoming :P
someone landing on that page somehow instead of the duplicate target - that's the kind of point of dupes?
(dupe doesn't equal should be deleted)
Bro I said no listbox stuff — L. Z Dec 18 '16 at 21:28
Bro no listbo
Do you even list, bro?
10:47
@Reblochon it's been viewed 1,289 times in about the same time it's been active as the duplicate target which has had 11.5k views...
there's something different in that post that people are landing on... don't see a real reason to remove it and lose that especially now it's going to something the knowledgeable think is better?
10:59
I agree with Jon. Bad questions can be good signposts. Most people don't even read signposts, they just follow the arrow.
'cos one can delete content - doesn't mean one should...
ok @JonClements & @Aran-Fey , that was a suggestion; I'll align with your judgement.
melon
Maybe it is the 'Bro' thing that triggered me?
11:20
Stick to moderating content, bro
umm... having bothered to look at deleted comments on that answer... less inclined to be nice
Catching up on mod messages - another mod suspended a user for being abusive... the reply was along the lines of "Oh you fing nazis are all the same. Stick up for each other... you shouldn't stick up for those cnts - they deserve to die horribly...I told 'em what I felt because they're a piece of s*t"... (lots of paraphrasing but you get the point)
How couth
Can we make new contributors more welcoming? :/
strangely they don't have an account anymore... weird that one :p
I'm sure the mod was persuaded by the arguments
11:30
I need literacy lessons :P
@roganjosh no... that was a user reply to a mod message saying: "hey - you're being a bit out of line here... please stop"...
Wow.
@JonClements that being said the merits of the question are independent of the asker's douche level
@Andras yup... they're normally bad Q's to start with
@AndrasDeak run for mod whenever it happens next and go back through some of this stuff - you'll love it :p
Andras keeps missing the "yoyoyo" guy. As a mod, he's a wide open net :P
^ definitely sarcasm btw lest it be lost in text alone
11:42
?
There's a guy that keeps just spamming the room
several times I've seen Andras cbg and say he's missed out on the fun cos the messages have already been kicked
In other words, I tried to be funny and fell flat on my face
falling flat on your face is usually funny :-p
This is true. A mea culpa was the only way out of the that :P
morbid desires!
There was a classic the other day on Physics SE. A complete newbie posted a totally off-topic question. A high rep user politely explained why it was off-topic, and gave the usual Help links. And a diamond mod affirmed what the high rep guy had said. The newbie replied with "How dare you try to tell me what I can do". I wanted to blast them, and it took a lot of self-control to restrain myself.
11:59
@PM2Ring it's unfortunate that there aren't badges for what you don't do :)
12:15
@JonClements everyone would love that :P
@roganjosh they won't be back for a while. They were suspended for a year, but now it's back to 1 week :(
@AndrasDeak ? - although if you've got something specific to a user - best not you mention it here
@JonClements the "yoyo" troll. Came out of a 1-month ban for yoyo-ing, starting yoyo-ing again and insisted on getting a 1-year suspend. They got 3 days, came back again, got a year that now has turned into 1 week again. Can't wait until they're back again! :P
interesting... i'll have a look in a mo'
OK, though it's fine either way, I didn't mean to bait you into checking it out :)
also FYI ThiefMaster said chat.stackoverflow.com/transcript/6?m=43815845#43815845 before their last round here
(and he was pinged after last time)
12:51
Uh, unless I mixed up their chat and main suspensions :|
must be one of those days again :D (so yeah, the 1-week thing is on main, and in chat they're away for a year)
Why isn't the account just deleted?
because that is a very last resort
we've seen users come back from 1-year suspensions and try to act less disruptive
Really?
Huh, fair enough
12:55
deletion is usually reserved for fraudulent sock accounts, spammers or users past several rounds of final warnings, as far as I know
and of course users under 13
For an apparently unwelcoming community, that's a surprisingly tolerant approach
it's not the mods that are supposed to be unwelcoming, but the users themselves
the mods are never the bad guys, not with unwelcoming nor with the welcome wagon
It's the Kobayashi Maru... be tolerant and try to educate and you're not doing enough, or do something and then you're overreacting :p
mods always do their best to try and work through things... but from a community point of view, you'll always see decisions are either "why did you let them get away with it" or "that was way too harsh" - why'd you do that kind of thing :p
And of course, deleting the account doesn't do much to a low-rep troll. They have almost no rep at stake, so they might as well just make a new account. I guess they'd also need to use a different IP address to avoid detection, but that's a non-issue if they have a dynamic IP.
@PM2Ring I can't go into it... but it doesn't go unnoticed for very long :p
13:08
Rightio. ;)
@PM2Ring the system isn't flawless but generally... it already captures most things anyway and reapply deletions/suspensions, we just keep other mods informed of discoveries and what to look out for even if the system doesn't raise something saying "hey... you should have a look"... :p
And for everything else there's Brad Larson ;)
plus... at the end of the day - it doesn't matter a huge amount if you manage to fall under the radar (for a bit)... once you're found... we're nuking all your accounts and all your votes anyway
so it's ultimately - "oh well done for being so careful to get an account up to 400 using 3/4 different accounts... but you know what... oh no - they're all deleted! Thanks for your effort!" :p
I hope with the new CoC the system literally says "sorry and thanks for your effort"
The CoC really isn't a change in anything afaict
it's just the "Be Nice" advertised more
mods certainly aren't changing any behaviour regarding what needs to go or not... if it needs to go - it goes... if it doesn't - it doesn't...
13:21
FWIW I'd rather we didn't dwell on the CoC here because I'm so bored of it being smashed out on Meta threads
@roganjosh agreed
we can make much better use of cabbage time :)
And when it comes up I have to keep refraining from snarky comments
@JonClements I know, I know. That was shorthand for "what people think the new CoC is and how the company tries enforcing it". I've been pointed to the CoC by Tim Post when a sarcastic comment of mine was deleted. Apparently sarcasm is against the CoC, unlike Be Nice.
in CHATLAB and Talktave, Aug 22 at 13:32, by Andras Deak
@AndrasDeak Avoid sarcasm and be careful with jokes — tone is hard to decipher online. Your comment looked to me like you were suggesting that folks downvote when they see that indicator, perhaps out of protest or something else. But, I didn't notice it until a few other people saw the same thing and flagged it. — Tim Post ♦ yesterday
And other harmlessly sarcastic comments of mine were deleted. That's new.
But yeah, let's move on. Not like anything is going to change for the better
I'm just saying... as far as I'm concerned as a mod - nothing's changed... there's different flagging options and it's open to more people, but I'll still use discretion when I come across 'em... but yes... let's move on :)
Some mods went overboard on their handling of comments about the CoC on meta!
13:28
This is not moving on... :P
Why should it? The black hand is upon us!
Because it's nothing to do with Python and there's witty and educated people here that can teach me or help me or make me smile, and there's a giant pile of garbage about this on meta already?
okay, so it is all about you then,... I understand!
the Josh Rogan sopython very own private chat room...
Mind if I hang out a bit?
13:35
Yes I do mind. It's very exclusive. There are trials for access.
very well, try me then!
First one must carry an egg between their knees 100m without breaking it
:-) thanks @JonClements
13:49
melon!
I'm currently listening to John Martyn Head and Heart
@PM2Ring found a beautiful one I'd forgotten I had in vinyl... youtube.com/watch?v=0ISX9mW78Dw
was going through some stuff- found that and also youtube.com/watch?v=GielMXWQlbw
14:06
Uh, stackoverflow.com/questions/52236035/… should be a basic answer but I'm drawing blanks on my dupe search. I actually don't know how to do that.
That's not easy to do. Gonna require some curses or similar. I wouldn't be surprised if we don't have any answers for that yet
I think there's one for how to "emulate" the C-style strf thingy
It seems like something that should have been answered but my search has failed. Nice question :)
in this case, I think it's probably easier to just re-phrase as "How many MBs do you want: "? and then ask for input and do it...
gotta run... bbiab
Yeah but that's boring and a cop-out :P
14:12
think you might be able to even workaround in a sense of using string.Template with something and then just try and parse into that or even using modern day str.format...
@roganjosh Tricky if it has to be portable. Pretty easy if you can use ANSI / VT100 control sequences. I vaguely remember writing an answer that does something like that, but the OP assured me that it was for Linux, and didn't need to be portable.
sure you can do something with overriding a Formatter...
@PM2Ring does stackoverflow.com/a/52236135/4799172 work on Linux?
It definitely doesn't on Windows but I might be incorrect re: Linux
@roganjosh It should, but I'm on my phone, so I can't test it. It's possible to get ANSI support on Windows, but it's not enabled by default. IIRC, it's a bit easier in Windows 10. And quite easy in MS-DOS. It's probably straight-forward in PowerShell, it may even be enabled by default thete.
14:37
@AndrasDeak yo, you there?
Maybe :P
baited breath
What's up?
@smci I think this is a good solution for traversing two lists at once to create positive and negative list(pastebin.com/yrmJt1Fg). Let me know what you think.
Does a chat ban prevent you entering the room or just posting?
14:49
@roganjosh just posting
you can even enter without logging in
Ahh, then my comments were pointless sorry
stackoverflow.com/questions/52236309/… too broad. Again, another question likely to get low footfall but unanswerable.
good old "nice phd thesis topic" question
15:07
@roganjosh yup, works in bash
@Code-Apprentice bash is pretty alien to me :) I think there's an effort in the answers to make it cross-platform
 
1 hour later…
16:11
I'm confused on why are "scrapy.Item" fields declared as static doc.scrapy.org/en/latest/topics/items.html
seems impossible to have done it this way, so pretty sure it's a syntax thing I haven't learned yet
any pointers?
Great, I'm sub-20k again. Gotta earn those privileges a 2nd time now
@MehdiB. static?
@Aran-Fey that's what you get for throwing away all your rep :P
@AndrasDeak as in class variables
@AndrasDeak I just hope I didn't throw it away in vain :D
Might not be enough to convince anyone to write an answer to my question, who knows
16:18
Oh you'll get answers allright.
Yeah, but bad ones, probably xD
weekend cabbage
@roganjosh err...I meant it works in zsh
Let's place bets. I wager 10 quatloos that there'll be between 5 and 10 super short answers from low-reps
I forget I'm not using bash on my home computer
probably works in bash, too...
@Aran-Fey link?
I've offered 7 bounties in my entire SO career
Can someone explain why is it that when I append my training_data with my testing_data pandas decides to change the type of one of my columns from an int to a float? Here is the link to the code. pastebin.com/hd4HHeTJ
giving away 850 rep is nothing to sneeze at
Is that how much my bounties totalled?
I didn't even do the math
@JonClements Thanks for those. I quite like Petula Clark, but for some reason my mum couldn't stand her. FWIW, when I was living up north I sang backup vocals to Flowers On The Wall a couple of times at our regular open-mic gigs. My favorite Mary Hopkin song is Temma Harbour
16:29
@Code-Apprentice If you click the "bounties" tab in your profile, it shows "Offered bounties for XXX reputation" at the top
oh...I didn't even notice that
much easier than adding them up in my head
16:40
@LuisAverhoff not sure, maybe a record has a float so pandas infers the column to float?
@MehdiB. Reading a stackoverflow reveals that pandas converts a int64 to a float64 whenever you append and there is missing column data.
nice TIL
which is the case cause the training data has a label column and the testing data has no label column.
@LuisAverhoff please can you link me that SO answer?
@roganjosh sure I'll link two. stackoverflow.com/questions/40513066/…
0
Q: Appending rows for Pandas Dataframe whilst conserving types

amougelI have a pandas dataframe to which I want to incrementally append rows. My issue is that when trying to happen values, their type is lost. This is especially annoying for 'boolean' which become 'object' (int becoming float is still a bad thing but at least the rest of the program can still run, j...

16:45
@MehdiB. since when do you do python?
hello
cbg
@Code-Apprentice almost 6 months, since I started learning ML
now trying to get a grasp of the whole chain from data acquisition to ML to backend in Python
@MehdiB. welcome to Room 6!
Thanks! :D
I haven't done any ML myself. Dabbled a little with numpy and pandas, but I'm a complete noob
have you played with the neural net api on Android?
16:49
@MehdiB. Do you want to check this repository? The readme isn't finished github.com/nesac128/nnir
I think they introduced it with Oreo 8.1
Welcome Mehdi
@Code-Apprentice not yet! planning to after doing this one fast.ai
@Oqhax Thanks!
your welcome
stackoverflow.com/questions/25196363/… been closed for 4 years and has hardly any upvotes
16:56
@Aran-Fey done
Ok
please refrain from posting anything malicious
It's not malicious
16:58
It's just a program in github
...
seriously
Spam is not malicious?
Do you want some?
Depends on how you use the program
I wasn't telling anyone to spam anyone else
A program that spans someone is malicious.
No thanks
@roganjosh Depends on how you use it.
Nobody was asking for some kind of server testing, I don't know what prompted you to post it
17:00
I suggest less excuses and more talking about something else
ok ok
about what? I'm just suggesting stuff
You're not forced to talk about anything.
Just to see the repository not to use it
oh
Then what's the chat for?
For talking. But nobody's forced to do it.
I'm not forcing anyone...
You're forcing me not to talk
Which is different
17:05
So I learned the other day when I read about python 3 downloads of numpy taking over that the download statistics on pypi were wrong because the statistics deamon kept being killed github.com/pypa/linehaul/issues/30
I wonder how often non-critical systems do that kind of thing with nobody noticing
Must be all the python 2 people overloading Pypi
17:29
Omg, I'm in a pub that serves food and there's a couple opposite arguing about a "Monday to Friday" deal being applicable today. It keeps hitting my brain as a datetime parse error and it's been going on for 5 mins :/
is it Friday in your time zone? :P
No, very much not in the UK
I could imagine arguments about Friday being excluded or included. But there's no way that Saturday is included.
They've gone to the bar. Someone else's problem now :P
cbg for everyone :)
abc
abc
17:42
i didn't even know about the "2038 problem" stackoverflow.com/questions/52237777/…
17:54
puppy has pulled his back and is almost crying in pain :(
(waits for some pain killers to kick in they shouldn't even have access to....)
awww, hope you get better soon :(
can you lie down?
actually doing a better impression of a puppy than my profile shows... doing all fours around the house at the mo'
just heaved myself into my desk chair as it's quite comfortable and trying that out to sit upright
some "twinging" but otherwise more comfortable than laying flat
wish I knew what caused it
The weight of SO?
18:00
I can lift around cabinets or stuff that's more than my body weight etc... etc...
You can have some sausage rolls on the house :)
bend down to pick up a spoon I've dropped while making a cup of tea and boom... :(
well then that was it
Doesn't sound good :/ Hope it gets better soon
unfortunate posture or something
for future reference: never bend, always squat
18:03
@AndrasDeak I use to work in a builder's merchant, so it's always from the knees and gradual lifting to shoulders kind of thing
even for the spoon? :)
never had issue in "squatting" and "knee" lifting something like 120kg of lead on my shoulders
if you're going to "heavy lift" - you do it properly
you just errr, don't for a dropped spoon on the floor :)
as you probably know spine problems are gradual :( Perhaps all those kgs of lead have taken their toll by now
who knows... I am only under a foot tall after all...
any foot tingling or something?
18:07
nope... I don't suspect nerve stuff...
hope it's just some lumbago...
it'll be fine - I with a bit of a struggle had a "walkies" around the square and it's easing up
just don't forget to keep resting when the meds start to kick in :)
just amazes me I can have a Judo spa'ing session or kickbox with no ill effects
then I bend down to pick something up of the my home's floor... and ouch
well maybe you no longer can :P :/
18:11
who knows - that's for me to decide...
take care of yourself
if everyone gave up for reasons of "it can't be done" - room 6 wouldn't be here :p
@AndrasDeak I've always said to fizzy - youtube.com/watch?v=25TKskR9qLY
whatever floats your boat :P
r6's policies about how to manage rooms have been replicated by others... we should be proud of that :p
@Andras you know that SOCVR modelled their process on "ours"?
18:24
interesting
R6 is a role model to how rooms should be run... and SOCVR took it onboard
I was a regular there for a while but there weren't so strict rules back then
nowadays I can barely get a message in without Makyen telling me I'm doing it wrong ;)
hahah... they're doing their "job" as much as you're doing your "job" here :p
hehe, I know
baking rhubarb for a while
is it with decent custard or cream? :p
abc
abc
Do anyone knows some interesting opensource project to start contributing during the spare time (which does not require a too high level of expertise of Python)?
18:28
@abc what are you interested in?
What interests you?
abc
abc
tipically graph theory and algorithms
@JonClements I'm afraid rhubarb is not an actual ingredient ;)
abc
abc
but I'm quite open to different subjects, I just would like to improve and learn at the same time
@abc so when you say that... do you use graph db's such as neo/dgraph or others or .... ?
abc
abc
18:30
In python I use networkx/sagemath
but sagemath became "commercial"
@abc okay... so purely graph theory rather than implementation of using it for DBs ?
abc
abc
sorry but for "using it for DBs" what do you mean? databases?
@abc as in - have you tried graph databases?
abc
abc
no I've just used relational ones
Have a look at neo4j.com and dgraph.io
abc
abc
18:40
I'm giving a look, thanks for the suggestions
(they're the two I use - others are available)
19:44
^ closed. Thanks
^^ Edit needs approval I think
00:00 - 20:0021:00 - 00:00

« first day (2884 days earlier)      last day (2289 days later) »