« first day (2686 days earlier)      last day (2487 days later) » 
00:00 - 20:0020:00 - 00:00

20:01
It's interesting to me that you can get young animals to trust other species (either humans or any of the pairs you see in the "watch this dog and rhino be best friends" clickbait videos). I would naively expect cooperation to typically be implemented by evolution as "trust only the things that are the same shape as you"
AttributeError: 'Series' object has no attribute 'close' I tried removing data.close() and data2.close() neither of those changes affected this error.
imprinting and similar effects are also fundamental: your tribe is where you were born
With occasional exceptions like "don't chomp down on the birds cleaning your teeth"
@MooingRawr I think it's an abomination Kowabunga manufactures Drum/Bung Adapters
@Dominik back to square 1
20:03
What do you mean?
Is "imprint on any old thing you see" really advantagous over "imprint on the first mom-shaped thing you see?"? Is it expensive to encode mom-detection instincts, or does "being able to be raised by wolves" improve the rate of survival enough to reach fixation in the population, or what?
@Dominik that there is no reason to .close(). What do you expect that to do to a series?
@piRSquared :D eh
If you were born among fair-haired folk of light skin and strong built, think of them as your own. Unless you're Loki.
@Kevin there are a lot of things other than your mom which you can trust
That is why I only trust Spaniards with 6 fingers on their right hand.
20:05
I removed both of the closes so I shouldn't be receiving an error I wouldn't think.
Evolution isn't optimal at all, and a child's brain develops very rapidly. Easy to imagine that early experiences affect the fundamental behaviour of animals in a way that makes animals belonging to different species growing up together normal
Thoughts on adding main python tag to this question? I was going to but it would be too many tags. I though about removing the drop down list but am unsure
@MooingRawr that seems probably true. But then there was the woman who was mauled by her pet chimpanzee
@Dominik so read the error and check the line that's actually throwing it
Searching for "close" in your own code rather than asking us to telepathically debug something is probably more effective
20:07
I wager 1 quatloo that there is a pandas method that calls close() on its argument
How much is a quatloo?
@Code-Apprentice Primates are kinda scary.... they have more of an advance primitive behaviour. while something simple minded that just loves you for who you are, I find primates too scary.
it's probably a sliced dataframe with a manual erroneous .close called on it by Dominik
Well I did have a chuckle at your "Jimmies entering maximum overrustle mode" comment before but I fear we may be heading for that situation again
20:09
@Code-Apprentice It's as priceless as a child's laughter and just as worthless too
@roganjosh it helps if you start with teaching to fish at the first moment
@Kevin Monster Inc would like to have a word with you on your comment about "child's laughter" being "worthless"
I've definitely seen a method in some popular third party library that calls close() on its argument so really I'm only wagering on whether pandas is that particular one
@MooingRawr for some reason I thought the chimp attacked its owner, but it was a friend of the owner.
welp, time to go find some baby animals and raise them :D
20:11
@AndrasDeak Thank you I will try and find out what .close() I am supposed to use.
New Poster: Hi, does anyone know about Django and Beautiful soup? I'm trying to scrape some football stats.
AD: First you need to dig in the mud and find worms to use for bait.
good luck with that.
@Dominik first find out if you have to use .close() to begin with!
When I move into a larger apartment, I will probably get a cat...or maybe a dog.
Random thought on our conversation about my question ban. What if I were to flag my old question that I cannot find a way to improve. Basically asking for help on how I can improve my account?
20:12
Lazy solution: don't close anything ever and hope the OS frees all those resources when the process ends
if we got a vote that might help you decided, I want to pre cast my vote in the open for you to get a dog :D
@ZackTarr flag? For whom?
deletion doesn't really affect your ban
On my own old question.
Not "On what?". "For whom?"
I expect that to be a clear distinction
Oh sorry. Basically flag my question then have a mod review it and put in the flag's description. I am trying to clean up my old questions to get out of the ban but cannot find a way to improve and ask for what my next steps should be.
20:14
Flag for moderators? Asking for help on improving your account? Because that won't fly. It won't even roll on the floor
3
@AndrasDeak This is the part that doesn't make sense:import os
import pandas as pd
data = pd.read_csv('average2016.csv')
# Sort dataframe by Average Snow Fall column
data = data.sort_values(by=['AverageSnowFall'])
# Get the top 3 locations by average snow fall
data.to_csv(data['Location'].iloc[:3])
if (os.path.isfile('top3.csv')):
os.remove('top3.csv')
data2 = open('top3.csv','w')
# Write File headers
data2.write("2016\n")
# Write contents of the file
#for location in Snow_Fall:
# SPlit the location into name and month
@AndrasDeak Thats what I was looking for. But noted :(
@Dominik you're passing a Series to another dataframe's .to_csv method. Please do try and read the documentation a bit
there's no guarantee that it will help you understand but I suspect you didn't even try
@AndrasDeak But yes I figured it was a bad idea. But wanted to gauge how bad of an idea it really was.
@ZackTarr I suggest reading the help section and do what you can to improve your questions.
20:16
roganjosh was kind enough to directly link the docs for you. Otherwise you should've done what I said: google "pandas write csv" and read what you can find. It's not difficult, trust me.
@ZackTarr for the record: very (futile and a waste of mod attention)
@Code-Apprentice Yeah Im looking to do that. But am not having any luck since my old questions are pretty bad and from old projects that I dont have now.
And I figured it was more on the side of very. But no harm in asking you guys about it haha.
You could ask on meta, which might get closed and downvoted but that can't really harm your account. Those questions usually go down like this or this
oh wow Tim Post changed his avatar!
@Dominik this makes no sense data.to_csv(data['Location'].iloc[:3])
@ZackTarr Look through your questions and decide if they could be answered in a way that is helpful to other people and not just yourself.
the to_csv method of a data frame expects a file name. When one isn't given it dumps the formatted csv string to stdout.
you passed data['Location'].iloc[:3] which is a pandas Series
20:20
Or another way to look at it: ask yourself if you think other people are asking the question and then look to see if there are any answers already out there on the Internet, and especially on SO.
If not, then work on improving your questions.
so that someone can give the answer that will be helpful to other people.
@Dominik You are better off asking this question on the main site as you have several issues and you aren't communicating them very clearly. Focussing on a well written question on main site might do you good.
I think they're better off asking here as long as they heed suggestions and start reading
Agree with Andras
The Series.close() issue still remains
note that they haven't responded to my message which consisely said what piR said later
I disagree with me and agree with them.
20:23
@AndrasDeak I agree with Andras too. Mainly so that they dont end up under a question ban like I did!
@Code-Apprentice But yes I will take that approach. I just need to re learn a few things around what I was doing when I asked those questions.
@AndrasDeak Hard pass on posting there. I knew that wouldnt be accepted well.
@Code-Apprentice I don't think it's that simple. When I started on SO I had never programmed in my life. When you ask questions then you a) have no experience with the site and b) have no idea whether something is new or not. This leaves questions on your account that you could polish as much as you want in hindsight but you'd probably still close them yourself anyway
It's fruitless to delete them because you could never hope to get those votes back. To polish them would push them back into the limelight and probably end up with a worse result
I cherish my old silly questions stackoverflow.com/q/38293593/2336654
One of my highest scoring questions is a dupe so I don't know if I value "look to see if there are any answers already out there" as much as the rest of the process ;-)
20:26
So the ban system, in some ways, causes horrible questions to linger
That was my fear of edits when it first happened. I did it to one of mine and put a comment stating to ignore the question as I was trying to edit it and clean it up. I didnt get any down votes. Not sure if it was because of that or not though.
"whoops, give me a minute to fix this" would probably forestall my wrath pretty effectively, personally
I almost put it as a note in the top of the question since my comment falls into the "Show More" category. But figured that would cause more harm than good.
But my point is, even if you have a pitch-perfect edit ready to go and don't make any silly mistakes in executing it, your question might still be about why opening a file in a for loop in write mode only leaves you with the last line of text
@roganjosh And on top of that. As Kevin mentioned earlier. You will get banned users making new accounts. And thus cluttering the site with more bad questions and users with no activity.
20:34
@ZackTarr yes. I'm sympathetic to you on this because I can't get my head around why then system can so easily trap people who actually do hope to be useful contributors. There has to be a system in place but when so many newbie questions are "do this assignment for me" type, is it really necessary to hold these few users back in 6 month periods?
it's one part of a very complicated system
Stack Overflow is a dark mirror of every other tech company: they don't want to train anybody, they want them fluent on day 1.
Heck, in 6 months those users are going to be in a different class and not care about that question. So why fix it?
Sorry, re-worded. For every person who genuinely wants to contribute but is being held back for 6 months, there'll be thousands of 1-rep users posting rubbish.
@Kevin Just like the job market! "We want a person right out of college for our entry level position that has 3 years professional experience."
20:39
Or the job description that states "10 years of React experience"
wim
wim
got curious and just checked my first question (March 2011) expecting to see some RTFM garbage
Was pleasantly surprised. It has an MCVE, before people started saying MCVE, has a related question I found in the search, and it was an actual bug in the library (PIL) that later got fixed.
s/RFTM/RTFM/
See you guys knew what lamda's are and how to use numpy for your first questions. I was still a baby bird in class haha.
everyone starts somewhere
and some of us were programmers before SO was even a thing
Very true. I wish I would have learned way more before using stack to try and learn.
20:46
My first Android question was such a noob mistake. I didn't even know the tools to use to see the stacktrace.
wim
wim
huh, my second question is now on +909/-1
mmm, but how long have you been programming for?
wim
wim
dunno. over 10 years.
people were a lot friendlier back then though
The SO community certainly has evolved over time.
wim
wim
SO got really harsh, and a lot of good people left
20:50
Now a days its hard for the baby birds to just start running with the wolves.
I joined late.
@ZackTarr At the same time, there is a lot of very good material already available for you to start learning from.
and not just on SO
Yeah, that came and went before I'd ever even loaded an SO page I think. I didn't start programming until way after the Summer of Love thing
@Code-Apprentice Oh I know that now. I just didnt when I started. I viewed stack as a much different site than what it is. And now I am paying that price.
@ZackTarr In the mean time, do what you can and continue learning how to code.
Stack Overflow, and every other website with social components, is a fractal facet of Eternal September. If you've heard about a website, its golden age is already over.
Only by sweating and bleeding and climbing through the brambles into the secret places can you find the gardens that flourish still
20:57
@Code-Apprentice Always! Hopefully this time next year Ill be enrolled in a MS of CS. At least thats my plan. But trying to get experience on my own first to make classes a bit easier.
@ZackTarr Have you checked out Udacity or Coursera?
I have not! Those look very useful. I like the look of Udacity a lot for some of their software engineering courses.
rbrb. Thanks again to all that discussed my ban with me. Sorry for the rant :)
@ZackTarr rbrb
21:18
@wim So it isn't just me, then
cbg
What's for dinner tonight... ♪ Won't you take me to... Pho-nky Town ♫
wim
wim
21:36
when were you banned? and for how long?
22:17
@AndrasDeak If you remember, we had a conversation a while ago about having my employer approve a switch over to Py3
yup, yup
Well good news, we've just started a new project and the project specification specifically states that we use 3.6 :D
4
\o/ yamming awesome!
feels great!
fill that thing with f-strings so there's no way back :)
22:19
That's fantastic :D
yeah, thats definitely the plan
Looking forward to actually getting to use f-string, shutil, and all the new fancy stuff in depth
and in a production environment
Don't worry. Python 2 will be completely dead soon and it will just be a distant memory anyway, so there is little chance you'll ever go back to that. :)
22:33
rbrb
@AndrasDeak Rbrb
23:04
Say I have a table called HAVE in which three of its columns are say, CITY, REVENUE and CITIZEN.
How is it that in Pandas I do the equivalent of the query
Select city, sum(revenue)/count(distinct citiezen) from have group by city;?
I don't want to have to create a database just to execute a query.
23:16
@GitGud what have you tried?
Are you trying to ascertain if I actually tried to solve this before I asked? I'm asking because I want to know what kind of answer to give.
@GitGud yes, I'm trying to do exactly that. It sounds like a question that might be better for the main site rather than a chat room
Well, I actually ended up solving it by installing pandasql which is able to run SQL queries on dataframes. Howeverm this is such a simple task to perform on a table that a more standard approach must exist (pandasql doesn't even come with Anaconda).
I thought about just creating two separate columns for sum(revenue) and count(distinct citizen) and then dividing one by the other, but I'd like to be able to do it in one go.
So basically I circumvented the problem, I have no idea how to solve it "directly".
@GitGud then it definitely sounds like it should belong on the site. Please make sure you read this before posting - even if you make a DF full of random values, it means people can copy/paste and test
@GitGud numpy/pandas are more complex than Python (in terms of there being multiple, different ways of doing the same thing) so as long as you give a reproducible input and output, as well as your attempt, it should be well-received (but don't hold me to that, it's subjective!)
I avoid asking questions because even though I try, they're never well received. Examples for this particular question seem to me, quite frankly, unnecessary. The SQL query is more than enough for people to understand.
23:32
@GitGud do you have an example of a question you asked that you think should have been well-received in your opinion?
I asked three questions only: https://stackoverflow.com/users/7454646/git-gud
It wasn't my intention to half-ass any of them, I didn't do my best, but it was close to that.
@GitGud none of your questions are in the negative. You're doing well :)
Ahahah. Is that good on SO? Seems pretty bad to me, to be honest.
@GitGud no, it's not bad at all. I think your question here should be posted on the main site but please do give a reproducible example as in the link I gave earlier (it's not a RTFM/intro_to_stack_overflow link)
@GitGud I would say you are good on SO. My first three posts were all down-voted, one even reached -3. No votes means it a reasonable post, down-vote means it's poor, up-vote means it's good.
Your only post without votes is the one with images, (the dupe) the comment underneath tells you what is wrong with that post.
23:43
I disagree with that comment. It was a thought-out decision to include images. It's much easier to tell what I want from an image than from code converting dictionaries into dataframes.
Thank you, though.
The second factor is that it is a dupe, even if it was a perfect post there would still be no votes on it for that reason.
Or quite likely down-votes
@Simon that really isn't the case
@Simon for shame, my highest-rated answer stackoverflow.com/questions/34862378/…
@roganjosh
I'm highest rated answers on MSE are also ridiculous. It's typical on SE.
@GitGud eh, we've talked about oddities of SO in here a lot today, I think I just need to watch robots falling over or something before bed :P
@roganjosh I can't say I've ever done that. My problem is that I often drone on and on only to find I've answered wrong later but I see your point.
23:56
@Simon not sure which comment you're responding to?
@Simon ah, in that case, my point was that a dupe post/answer will not necessarily attract downvotes
Does anyone know the runtime of the networkx complete graph generator? Is it just N^2 ?
00:00 - 20:0020:00 - 00:00

« first day (2686 days earlier)      last day (2487 days later) »