
Data scientist, physics PhD @EPFL. I help businesses exceed their goals through the power of #DataScience and #AI. Need help? https://teapawt.org/t.co/eAhgeWD1wP
Asheville, NC, USA
Joined January 2020
- Tweets281
- Following63
- Followers777
- Likes2.2K
I stopped using Twitter a year ago thinking it had reached the maximum toxicity any platform could attain.
Boy was I wrong.
1
628
This was a tough one. The answer is 4:
t is both updated and the execution raises an error
It's one of Python's peculiar aspects
Python riddle: answer without running the code and don't spoil it
t = ( 1, 2, [ 3, 4 ] )
t [ 2 ] += [ 5, 6 ]
What is the outcome? (RT if you get it)
24%t becomes (1,2,[3,4,5,6])
29%err: dont assign to tuple
26%t is unchanged
20%both 1 and 2
596 votes • Final resultsCongratulations to the 16.9% who got the answer right!
Python 2 and 3 (at least CPython) uses variable interning on integers from -5 to 256 to save memory. If x1, ... , xn all have the same integer value in that range, they all point to the same object in memory.
Fun quiz. Without running the python code, what is the outcome
a = 15
b = 15
c = 300
d = 300
print(a is b, c is d)
16%True False
17%False False
60%True True
7%False True
1,154 votes • Final results 30
Fun quiz. Without running the python code, what is the outcome
a = 15
b = 15
c = 300
d = 300
print(a is b, c is d)
16%True False
17%False False
60%True True
7%False True
1,154 votes • Final resultsAfter doing some math, I don't see any path realistic for Trump to win reelection.
Joe Biden will be the next president of the USA.
4
This is outrageous.
"A data scientist who created a dashboard to track Florida's COVID-19 cases says she's been fired from the state's health department for refusing to "manually change data to drum up support for the plan to reopen."
npr.org/sections/coronavirus…
If both can do the job, which one do you prefer?
25%Spreadsheets
75%Pandas / R dataframes
28 votes • Final resultsOne of the mysteries I cannot crack: why would anyone use a paid license #database like Oracle or SQL Server instead of PostgreSQL or the like?
New article by WHO, Imperial College, and Abdul Latif Jameel Institute projects the pandemic to peak around the beginning of July in the US and cause 2.2 million deaths.
According to it, no return to normal until October. #COVID19
#coronavirus
google.com/url?sa=t&source=w…
This is heartbreaking and ominous.
1/ I may be repeating myself, but I want to fight this sense of security that I see outside of the epicenters, as if nothing was going to happen "here". The media in Europe are reassuring, politicians are reassuring, while there's little to be reassured of. #COVID19 #coronavirus
1








