« first day (2455 days earlier)      last day (2496 days later) » 
00:00 - 16:0016:00 - 00:00

4:04 PM
@JulianRachman I'm checking in and out
 
4:18 PM
@PaulMcG Ok well tell me when you are going to be on for at least 2 hours
I got a question to ask you
 
@JulianRachman see our room rules, just ask, don't ping specific people
 
@davidism we had an isolated discussion previously
I just want to continue it
I have read the rules numerous times
 
Taking this to offline chat
 
Hi!
I'm upset
 
4:29 PM
I'm idjaw
Nice to meet you, upset.
 
Forty years from now you'll look back on this day and laugh
 
No more. No less.
 
I was kicked out of my local Python group, because I talked about cybersec (Petya and WanaCry)
They couldn't see how it was related to Python
I argued anything can be related to Python
and they kicked me out
:(
That's when I became upset, until then I was Nick.
Hi, nice to meet you all.
 
"The words I am speaking right now are related to Python because you could write a Python program that prints these words"
 
Welcome. please read our room rules sopython.com/chatroom so you can merge with us smoothly.
 
DSM
4:31 PM
I have to admit the relevance to Python isn't clear to me, although I'd have just said "let's talk about something else". I suppose if you insisted on dominating the conversation when everybody else wanted to talk about decorators or something I could imagine saying that you might be happier somewhere else.
 
You could also write a highly sophisticated virtual simulation of reality where intelligent life eventually forms and has the conversation identical to the one you want to have, in which case it becomes related to Python because it's running on Python
 
/Kevin change_subroutine()
/Kevin no_trade_secrets()
 
How 'bout those Jets, huh?
 
Yep....the problem with the Jets, .....
 
DSM
Can you win a Cup with Mason in net? #questions
 
4:33 PM
They always try to walk it in, which is especially bad here because you're not supposed to kick a football in that particular scenario
 
Is Ovy really the problem?
#morequestions
 
Handeggs may only be kicked when you're trying to get the giant tuning fork bonus point.
 
Getting 8 years for 100 mill of Oil money makes it seems like you won't be able to hoist a cup.
 
@DSM No one was saying anything for days!! I just passed on the news. They didn't take it well.
 
it's time to let go of the past and live in the now
 
4:35 PM
@MooingRawr I've read that 7 times in the past 2 years. Thank you, I'll read it again.
 
give 8 hail Guidos and seven hisses
 
I think i even contributed a few words to cbg
I forgot what they were but you probably didn't list them.
@idjaw ok. I have you now. Will you be my fam? Can I be a help vamp here all day?
 
@Kevin thanks for that, that's useful
 
@idjaw Until we get a new cup, I have to live in the past :(
 
I'm neutral towards the idea of discussing infosec because I know nothing about infosec other than what I picked up from reading xkcd
 
4:38 PM
Guido. Guido. Guido. Guido.Guido.Guido.Guido.Guido.
Hiss. Hiss. Hiss. Hiss. Hiss. Hiss. HISS!!
 
Good. Now you will never speak of the past again.
 
Don't name your kid Bobby Tables, make sure your users are asking for a sane number of characters, watch out for people wearing literal black hats, etc
 
I love this room
 
@idjaw I promise
@AshishNitinPatil Hi, are you new?
 
@MisterGeeky not exactly
 
4:39 PM
You must be new because you're Indian and I haven't seen you around.
@AshishNitinPatil Ah, I'm a lurker too.
 
I drop by irregularly, since past few months
 
cool. Are you really part of anon?
 
@MisterGeeky haha, we all are?
 
I'm part of NerdKid. We're an anon h4x0r spinoff that spinned way off.
We don't even code anymore. Most of us are ghostwriters.
 
anonymooose best h4x0rs
 
4:41 PM
Well, atleast I'm plucking out all the "daisies"
You guys are much more fun than silly old Root Access on SU.
Now, let's talk about Python.
 
@MisterGeeky starts hissing feverishly
 
The ball python (Python regius), also known as the royal python, is a python species found in sub-Saharan Africa. Like all other pythons, it is a non-venomous constrictor. This is the smallest of the African pythons and is popular in the pet trade, largely due to its small size and typically docile temperament. No subspecies are currently recognized. The name "ball python" refers to the animal's tendency to curl into a ball when stressed or frightened. The name "royal python"(from the Latin regius) comes from the fact that rulers in Africa would wear the python as jewelry. == Description == Maximum...
we should all get ball pythons
they are cute
 
@AshishNitinPatil Is this good or bad? I don't know.
 
@khajvah Yeah, they can probably crawl all over our chat and sit in the corner of our "room"
> in a frenetically excited or energetic manner.
Good.
 
wow that flag that just came up....jeez...wty?
 
4:45 PM
@idjaw context plz
 
@khajvah Are they dangerous. Too lazy too read.
@idjaw What was flagged?
@AshishNitinPatil Don't ask. Someone flagged something. Only mods know.
 
Get 10k then you too can be a chat janitor.
 
@MisterGeeky no, they are small and cute
 
@MisterGeeky from a quick glance of the preview - "it is a non-venomous constrictor"
 
a friend of mine has one
 
4:45 PM
@idjaw yeah, that was just bad
 
10K+ you get notified of flags in chat
 
@davidism Challenge Accepted. Set me a deadline.
 
@MisterGeeky today night. 3AM UTC
 
@AshishNitinPatil they can still hurt me right?
 
@davidism ah, I am missing out on a lot of things...
 
4:46 PM
@idjaw taken care of
 
@MisterGeeky you should ask @khajvah's friend
 
@BhargavRao What is with you people and 3AM. You're like ghosts. No, I decline that offer
 
@MisterGeeky nope
 
@BhargavRao Yeah I definitely hit "valid" on that.
 
@khajvah Then I'll try to get one.
 
4:46 PM
Ok. I think we need to tone down the pinging of people please
 
Only 9 in a row, mostly due to multiple contexts
 
@idjaw Why? Is it because you're note being pinged?
 
And generally just tone down, this conversation is getting a little too "look how wacky we are".
 
@AshishNitinPatil Yeah, this is why we ping. Because we want to reply to old messages in a very active room.
 
The constant pinging gets too distractive and annoying after a while
it would be appreciated if we can tone it down.
 
4:48 PM
@davidism ok, let's get serious
What's the best certification to get in Python?
 
None. Who cares about certifications?
 
^^
 
@davidism Employers?
 
I have zero certifications
 
No they don't.
 
4:50 PM
Cool. I have 2.
 
and I have not worked for a single employer who does
 
I have zero certifications. But I also don't have an amazing job so
 
and don't know any who do or have stated for explicit certifications in python
 
Cool. It's be super cool if they only care about my previous projects
@idjaw I have one for Python 2.7.x from my college.
 
@MisterGeeky Here I am.
 
4:50 PM
OK. But, please stop pinging.
 
@RogUE Hi abhiRam
 
DSM
I guess I'd notice a Python certification if it were on a resume, but I'd still give them the same code interrogation I'd give anyone else, so I'm not sure it'd change anything in practice.
 
good news, this might be the first night in a while that the service I am working on won't wake me up at night because of crash
 
famous last words
you just screwed yourself over
khajvah suddenly goes MIA
 
@MisterGeeky ok, on a serious note, that "tone it down" comment was specifically directed at you. It's ok, you don't need to be making witty remarks and talking constantly. The way you're interacting with the room just feels "off", I don't know how else to say it. Try stepping back for a while and observing how users normally interact.
Also, based on the kick message, this is not nearly the first time you've been kicked. Learn from that.
 
4:52 PM
what's MIA?
 
missing in action
action being the action in room6
 
these kidz with new internetz language
 
Alright, I've learnt my lesson.
 
If I saw a lot of certificates on a resume I would suspect the applicant to be a box ticker that reads "Learn to program X in 24 hours" and puts that down as expert-level experience
 
There was a PHP book that was something like learn python in 15 days or something?
I did that once
that was several years ago...I need to find it
 
4:55 PM
Not that I would discard the applicant for that reason only, of course. But I'd be more stringent in determining whether they actually know what they're doing
 
so did you learn it in 15 days?
 
@idjaw So that you can destroy it (hopefully)?
 
back then PHP was the language to use....so I had to be nice to it
@khajvah Honestly...I never finished the book. I decided to take the fall flat on my face and fix things approach
 
ah yes, good old Python 2.7 days
 
worked out better for me
 
4:57 PM
You should have learned it the hard way instead of easy 15 days way
 
If only LPTHW was there for me back then.
 
I don't know which one would be more bad, LPTHW, or PHP style Python learning. The way idjaw describes, I think LPTHW loses again.
 
hypothetically, what would happen if I defended LPTHW a little bit? would you guys lynch me? asking for a friend btw.
 
yeah, we know who that friend is :-p
 
DSM
Aaargh, something in this code is multithreading when I don't want it to.
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
 
5:03 PM
guess I'll play it safe and keep my thoughts about LPTHW to myself. My friend will, I mean.
 
@Rawing people are serious professionals here and would calmly argue with you.
 
rrrrrrrright.
 
If you have legitimate praises of parts of it, sure. Just keep in mind that most folks in here aren't fond of it and the discussion will inevitably bring those up, and possibly devolve due to the annoyance with its popularity-in-spite-of-issues
It's likely we've heard it all before, mainly
 
nah, I can't really praise it. I'm just thinking it's not quite as bad as we usually make it look.
 
5:05 PM
Yes, it has its quirks, and yes, people who learn from LPTHW ask odd questions. But people who read other books also ask stupid questions, it just isn't obvious which book they've read.
 
That's an attack on free speech
 
That's an interesting meta-criticism I haven't heard before, hmm
 
The concern is mainly due to the odd questions (resulting from LPTHW) consuming a lot of productive time.
The other books don't show up as much as LPTHW, hence the singling out?
 
But as a corollary, perhaps there are entire swaths of people who learned only from the official tutorials who don't ask questions at all because they learned easily and without confusion 🤔
Heh, probably not.
 
Survivor bias, the other way round?
 
5:09 PM
Read our what book to read wiki page. It's not that only that book causes weird questions, it's that it seems designed to cause confusion in the first place.
 
I actually had a bit of trouble when I first learned python, but that was because I was learning 2 other languages at the same time, was on a project that was way out of my league, and it was python 2.
 
Erm, is there any reason why selecting printed text in the command line causes time.sleep to yield indefinitely?
 
I learned programming by suffering on projects way out of my league.
 
This is the code I'm using the reproduce the issue:
```
import time

checkIntervalMinutes = 5


while True:
print("Sleeping", time.ctime())
time.sleep(60*checkIntervalMinutes)
print("Sleep finished", time.ctime())
```
 
@Drew that's because you're on windows, using the windows terminal
unrelated to python, really
 
5:11 PM
Why would the windows terminal interfere with python's time.sleep?
Does selecting text in the command line yield the program itself?
 
XD Kevin literally posted a 11-star (currently) link to solve Drew's indentation problem. And yet, here we are. (No offense intended)
 
it's not like that, it just display any new output while you're selecting stuff
 
I knew I should have mentioned something about triple backticks too.
 
Sorry, didn't notice it
 
@Drew I think I suggested sys.stdout.flush() yesterday. Did that do anything?
 
5:13 PM
trust me, your code's fine. I've spent hours hunting after this nonexistent bug after I first ran one of my scripts on windows
 
I tried that, and it didn't resolve the issue. It was only this morning I discovered that selecting text in the terminal was the cause
 
Use a different terminal I would say.
 
Yeah highlighting text in the command prompt will pause execution indefinitely.
 
Alright, thanks
 
one of these days I'll learn how to spell "nonexistent"
 
5:14 PM
Does Powershell do this as well?
Or should I use a 3rd-party terminal?
 
Trying would help, not on windows currently else I could have tried replicating
 
You could continue using the command prompt and merely not select any text.
You might know this already, but if you've selected text and need to resume execution, hit Enter.
This also copies the text into your clipboard, which may or may not be useful
 
wait, does it actually pause the program? I thought it only suppressed the output, but now I'm not sure anymore
 
In the script I initially encountered this in, it stopped executing, but that may have been an error that just didn't display in the terminal because it wasn't displaying new text
Thanks Keven -- hitting enter worked and resumed the script
 
I'm 85% sure that it actually pauses the program.
 
5:18 PM
what you mean "surpressed" the output
how would it do that?
 
You're right, it does pause the program.
 
Ok, I just ran:
import time
import itertools
for i in itertools.count():
    print(i)
    time.sleep(1)
 
Well, by not displaying it, basically.
 
And selected some text to pause it. Then I waited ten seconds and unpaused it. It picked up where it left off.
 
@Rawing but continuing the execution?
 
5:19 PM
but I was wrong anyway
 
It didn't jump from 6 to 16 or anything
 
yes, why not? How hard can it be to execute a process without displaying its output?
 
@khajvah like if you press ctrl+s in Linux, output is paused until ctrl+q is pressed, but the program keeps running.
 
Yeah I expect that it would be trivial for the OS to hide output while continuing execution. It's just not something that has a handy shortcut available.
 
@davidism cool. TIL
 
5:22 PM
Playing around with the command line it looks like you can turn this off
 
I wasn't even thinking of anything that required OS level privileges. I was thinking more along the lines of for line in process.stdout: pass.
 
Click the terminal icon in the window title and select "Properties"
Disabling "QuickEdit Mode" will prevent this from happening
 
Hey guys!
 
This consequently also disables text selection, but it can be manually enabled by clicking the terminal icon > Edit > Mark
Also, if your terminal is paused its title will be "Select "+titleName
 
I've been using python for the past 3 years, but I've never done TDD. Can anyone recommend me a source for TDD within the python ecosystem?
 
5:25 PM
Running python with -u (for "unbuffered") might also alleviate this pausing while selected behavior
 
@GuilhermeMarthe docs.pytest.org/en/latest this should be enough, tbh
 
I think also if you've never done TDD, it would be good to also go a step above Python specifics, and read about TDD concepts as well
 
@khajvah that piece of trivia has bit me in the butt when I first saw it
 
Gotta love keyboard shortcuts that are easy to accidentally invoke, and which put you into an unusual state that can't be trivially reversed, say by pressing the shortcut again.
AKA the "how to exit vim" problem
 
except when you try to exit vim it's easy to find out
 
5:37 PM
Only if you read :-P
 
if your tty freezes due to ctrl+s, you don't even know that it's working
 
Darn those frozen ttys
 
6:05 PM
I've had that problem before
 
things are getting weird guys
all this ttys discussion
 
What discussion? There hasn't been output for at least 30 minutes.
 
It's like a discussion in ye olden times where you had to wait forever for the other person's reply.
 
well no I am just blind
 
Concept: a messaging system that simulates the transit time of the 1850s postal system.
 
6:13 PM
verily
hmm...wrong century
Can you assume telegraphs? That speeds things up.
 
Yes but they charge by the letter.
 
so...twitter?
 
I wonder if there are enough steampunk fans to sustain this business financially
 
steampunk fans should be called steampunks
 
@Kevin called Po Knee Xpress?
 
6:18 PM
Named after the poor knees of the intern who has to hand-deliver all those messages
Concept: steampunk ceiling fans.
 
@Kevin That would be fun to do, but digitally, and basically just increase the latency of each hop by several orders of magnitude, and then provide a map that updates where your bits are.
 
7:02 PM
This progress bar has been at 99% longer than it spent at 0-98, by an order of magnitude.
 
DSM
Am I too late to admit to my steampunk leanings?
Even if Kevin thinks it's too twee. :-P
 
I like stories with a Victorian aesthetic but I have never worn a top hat with a superfluous gear on it.
 
DSM
Mar 16 '15 at 18:05, by DSM
[Disclaimer: steampunk costumes ("why yes, I am an airship engineer") may have not been entirely absent from my past.]
 
Key and Peele had a funny skit about steampunk. Can't find a YT link but here's the gist:
 
@Kevin are you on Windows XP (or any other version I guess)?
 
7:15 PM
Windows... I want to say... 10.
 
It's OK, Kevin, this is a safe place. Even for Windows users.
 
Is this a safe place for Mac users ?
 
The progress bar eventually finished, if anyone was worried.
 
I like Windows, for it's DirectX 12
And hate it for everything else, especially IE
IE - Web developer's nightmare
 
7:28 PM
But Microsoft ended support for IE
That should be enough to stop supporting development on it too
 
you mean for Edge too?
oh that's not I E, just E
the logo confused me
I had to install a virtual windows a few weeks ago in order to finish the publishing procedure of a research paper (.....), so now I feel entitled again to naysay windows
 
Anyone got a dupe for Truncating the end of variables based on pattern? He's just asking "how do I get all the bits of the url before the "/" that follows ".com"?"
Thought urllib.parse have something for that but doesn't look like it
>>> from urllib.parse import urlparse
>>> urlparse("www.blah.com/en-us")
ParseResult(scheme='', netloc='', path='www.blah.com/en-us', params='', query='', fragment='')
Conveniently not at all splitted
 
DSM
Do we have any fellow pytest users here?
Oh, wait, I'm not allowed to ask that. :-)
Does anyone have a good pattern for mixing pytest.mark.parametrize with an "expected result" of raising an exception?
 
DSM has been put on double secret probation.
 
>>> urlparse("www.blah.com/en-us")
ParseResult(scheme='', netloc='', path='www.blah.com/en-us', params='', query='', fragment='')
>>> urlparse("http://www.blah.com/en-us")
ParseResult(scheme='http', netloc='www.blah.com', path='/en-us', params='', query='', fragment='')
the fact that the first one doesn't split is very surprising based on the docstring
the docstring clearly describes the latter result...perhaps a missing scheme makes it reluctant to guess?
 
7:41 PM
I don't think we can rely on the input to always have an http://
 
it works with other schemes as well...
perhaps one can test the string first, and prepend a dummy scheme for urlparse to be happy
 
DSM
In [9]: urlparse("www.tsn.ca", scheme='http')
Out[9]: ParseResult(scheme='http', netloc='', path='www.tsn.ca', params='', query='', fragment='')

In [10]: urlparse("www.tsn.ca", scheme='https')
Out[10]: ParseResult(scheme='https', netloc='', path='www.tsn.ca', params='', query='', fragment='')

In [11]: urlparse("https://www.tsn.ca", scheme='http')
Out[11]: ParseResult(scheme='https', netloc='www.tsn.ca', path='', params='', query='', fragment='')
You can pass a default scheme, I think, and it's overridden by the url itself as you'd expect.
 
nicely undocumented
well actually the option is there in the signature
I should've noticed
good find
 
DSM
What's the simplest way to make a dummy context manager in (sigh) Python 2.7?
 
I assume the easy way I'm vaguely familiar with only exists in 3.X?
 
DSM
7:47 PM
I reached for ExitStack before I realized I wasn't in modern Python. :-(
 
Ah, this is what I was thinking of: docs.python.org/2/library/…
 
>>> class Cont(object):
...     def __enter__(self,*args,**kwargs): pass
...     def __exit__(self,*args,**kwargs): pass
...
>>> c = Cont()
>>> with c:
...    print(3)
...
3
does that count?
how dummy? :D
hmm, doesn't even complain about a missing __enter__
 
DSM
Yeah, maybe
@contextlib.contextmanager
def noop_context():
    yield
 
Now to debate about whether a two-method class is easier than an import and a decorated one line function
 
well a dedicated decorator seems much more idiomatic
ah, docs says you indeed only need to implement __exit__
 
7:53 PM
It all comes down to which of __enter__/__exit__ or contextmanager will be more likely to cause a spark of recognition in the reader so they say "ah right, that thing that lets you do with"
 
DSM
context = noop_context() if exception is None else pytest.raises(exception)
with context:
I'm not in love with this pattern but at least it works.
 
Is that really necessary like that? Why not check exception first, separately?
not that I understand what's going on there
 
DSM
I'm not sure what you mean by "check exception first". I don't want to duplicate the code inside the block to handle the two different cases.
 
if exception is not None:
    pytest.raises(exception)
with noop_context() as context:
    ...
I meant that^, assuming that pytest.raises() raises
 
DSM
Ah. pytest.raises(exception) doesn't raise, it's a context manager which tests that the code in the block raises.
 
7:58 PM
oooooh, duh
 
if exception is not None:
    with pytest.raises(exception):
else:
    #no context manager needed
#uhhh
#I guess I indent it this much?
        #code that should go inside the context manager if there is one goes here
 
I completely misread that ternary :|
 
DSM
Ideally there would be a dummy argument meaning "doesn't raise" like pytest.raises(None) or something but it's not supported. Apparently it's been discussed on github but not yet implemented IIUC.
@Kevin: but the code would need to be inside the with block; yours is currently empty, and I don't even know if that's syntactically valid.
 
try:
    test_stuff()
except e:
    if exception and type(e) == exception:
        pass
    else:
        raise
 
I don't think he means that it is :P
 
8:00 PM
Does pytest have a non-context-manager exception test function?
 
now I'm annoyed at my density because while I didn't know what pytest.raises() is, I should've gathered from context that it doesn't raise
 
DSM
@KevinMGranger: but if I'm doing that, to avoid duplication I might as well just make that my own decorator c.m., which is just reimplementing a raises which supports None..
 
@DSM perhaps decorate wrap raises() handling a None input?
 
I agree
 
sorry for pings
 
DSM
8:11 PM
monkeypatched. #thursdayafternoon
I combined Kevin's contextmanager suggestion to make a no-op wrapper with KMG's expected functionality to implement Andras's wrapping.
 
which one of you want to drive up to my hood and play goalie tonight. We are missing goalies for ice puck tonight.
DSM, come.
the hockey is calling you
 
9:16 PM
Is it possible to get tkinter.Toplevel() to work without creating a main window with name = Tk()?
I just cant get withdraw() to work so the main window is always there
 
I don't think you can use tkinter without a Tk widget, no
 
thx
 
9:36 PM
I thought you were already showing up @MooingRawr?
:P
 
I'd like to iterate x amount of indexes at the end of a list/array. for i in reversed(list): won't give me the iteration number as the i is the index starting from the back.. How do I write this neatly?
I could check this inside:
if(len(list)-x < i):
break
 
what do you mean by you want x amount? why not slice the list to start where you want and end where you want ?
 
hmm
I'll look it up
 
@JohanSundman Can you give a clearer example of what you are looking to do?
 
l = [2,4,5,7,2,6,4,3,4,6,3,6,7,3,3,4,7,3,]
x = 3
# Now I want to iterate x numbers of indexes at the end of list l
oh okay thanks
x = x[-3:]
or just:
x[-3:]
 
9:46 PM
l = [2,4,5,7,2,6,4,3,4,6,3,6,7,3,3,4,7,3,]
x = 3
print(l[-x:])
>> [4, 7, 3]
 
depends on whether you want to overwrite the original list
 
I posted you an example before I saw your example
 
Ye thanks
 
This doesn't change anything to your l list, you can reassign it using l = l[-x:] if you want...
and with this im out. cya people. rbrb
 
I was just wondering if x[-3:] would change the array such as x++ would in some languages
 
9:47 PM
It will not
 
Alright thanks again
 
(you can also do it like for i in l[:-4:-1] to iterate the last 3 elements in reverse)
 
list slicing creates a new list for you wont replace old one unless u tell it to
 
(and don't call variables list)
 
I'm not, it was just an example
 
9:49 PM
good :)
 
Can I call the slice for slice?
slice = x[-3:]
hehe
It's only used in the very next line and never again
 
what do you mean?
 
you don't have to call it anything, see my message 3 above
unless it's used more than once on that single line
 
I'm rbrbing on out of here
 
rbrb
me too, soon
 
9:55 PM
peace
 
hello, does anyone know the equivalent of this:
Correlation between dependent and independent variables
1
Q: Correlation between dependent and independent variables

States.the.ObviousI have a data frame with one dependent variable and 20 independent variables. I would like to find the correlation coefficients between the dependent variable and each of the independent variables and the associated p-values. I wrote the following function: for (i in 2:20){ correl = cor.tes...

in python?
 
"in python" how? What's your data like?
your data is likely a pandas dataframe, in which case df.corr will compute the pairwise correlation of every column
 
ive got a pandas dataframe that i've split into dependent and indepedent matrices, ran through multiple linear regression, and i want to see the relationship strength/significance between the independent variable and the dependent variable
 
if you need only part of that, you might use individual columns, because pandas.Series also has a .corr that returns a scalar with another Series
>>> import pandas as pd
>>> df = pd.DataFrame({'a':[1,2,3], 'b':[2,4,6], 'c':[-1,-2,-3]})
>>> df.corr()
     a    b    c
a  1.0  1.0 -1.0
b  1.0  1.0 -1.0
c -1.0 -1.0  1.0
>>> [df.a.corr(df[other]) for other in df.drop('a',axis=1)]
[1.0, -1.0]
I don't know if the latter can be done with proper pandas; quick googling only turned up DataFrame.corr and Series.corr
 
10:13 PM
just df.corr() works perfect
 
wouldn't think it would be this simple
i guess python really just werks :))
 
that's what pandas is for:)
Note that pandas is a third-party library, so it's not just python's credit.
but yes, lot of things are easy or have been done, so googling your problem more often than not leads to a solution
in this case I googled "pandas correlation", the first two hits were DataFrame.corr and Series.corr, the third hit was a relevant Q&A on Stack Overflow
 
10:34 PM
Sweet, got multiple linear regression and pearson correlation coefficient done with no prior knowledge :x, gonna pack it in for today, thanks for the help!
 
you're welcome, but it helps if you actually understand what your code is doing :P
gathering that knowledge a posteriori should be on your list
good night
One more thing
 
11:18 PM
cbg
 
00:00 - 16:0016:00 - 00:00

« first day (2455 days earlier)      last day (2496 days later) »