## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
##### Activity
• Oct 02 18:47
sarony removed as member
• Oct 02 17:45
erictleung commented #82
• Aug 15 11:17
FrednandFuria opened #82
• Jun 20 21:19
@bjorno43 banned @shenerd140
• May 10 09:13
@bjorno43 banned @zhaokunhaoa
• Apr 27 19:48
@mstellaluna banned @zhonghuacx
• Apr 25 17:07
@mstellaluna banned @cmal
• Jan 08 22:07
@mstellaluna banned @gautam1858
• Jan 08 22:05
@mstellaluna banned @dertiuss323
• Dec 15 2018 23:34
@mstellaluna banned @Julianna7x_gitlab
• Oct 12 2018 05:50
@bjorno43 banned @NACH74
• Oct 05 2018 23:02
@mstellaluna banned @JomoPipi
• Sep 16 2018 12:21
@bjorno43 banned @yash-kedia
• Sep 16 2018 12:16
@bjorno43 banned @vnikifirov
• Sep 05 2018 08:13
User @bjorno43 unbanned @androuino
• Sep 05 2018 07:38
@bjorno43 banned @androuino
• Aug 23 2018 16:58
User @bjorno43 unbanned @rahuldkjain
• Aug 23 2018 16:23
@bjorno43 banned @rahuldkjain
• Jul 29 2018 14:15
User @bjorno43 unbanned @jkyereh
• Jul 29 2018 01:00
@bjorno43 banned @jkyereh
Koderkid1936
@Koderkid1936
chance = 0
while chance <=3:
guess = int(input("Guess: "))
if guess == 9:
print("try again")
chance+1
else:
print("try again")
chance+=1
print(chance) #why does this print 4 instead of 3 when you enter the integer 9?
Eric Leung
@erictleung
@Koderkid1936 your while loop will allow chance to equal 3. So it will go through the loop once more and run the line chance += 1 again, thus making chance equals to 4 as it has printed out.
@Koderkid1936 this link might help you visualize what your code is doing. It will create diagrams of what your code is doing as you go through it line by line.
Koderkid1936
@Koderkid1936
@erictleung thanks alot much appreciated, i think im starting to understand the flow of the program it executes the chance+=1 statement beofre the while loop.. i think but i will do more research thanks :thumbsup:
Eric Leung
@erictleung
Random comment. So I'm helping out with a data science boot camp in town and last time I checked, in one of their modules, they are using one of the freeCodeCamp new coder surveys as one of their datasets! So crazy that something I've had a hand in cleaning up has come full circle for me to see again :laughing:
Philip Durbin
@pdurbin
Can you please link me to that dataset? I'll take it under consideration for dataverse-sample-data. :)
Eric Leung
@erictleung
BuntyBru
@BuntyBru
Hi guys

Can anyone mention good courses for data science for complete beginners ( person who hasn't had attachment with tech ever and is a business graduate)
I did some google search for this
But wanted to know some personal reviews

Thanks
Philip Durbin
@pdurbin
@erictleung oh, right, we talked about this FCC dataset at freeCodeCamp/2017-new-coder-survey#7 :) Do you want to hear more about dataverse-sample-data? :)
@BuntyBru here's a general list of awesome programming and data science materials as well https://github.com/P1xt/p1xt-guides
Eric Leung
@erictleung
@pdurbin I was a bit curious about it :) You mentioned it so casually!
sa-js
@sa-js
Hey all. I am a camper and recently wrote an article on Medium. Give it a read guys : https://medium.com/@saeeddev/learn-how-to-store-data-for-your-data-science-problems-even-if-you-dont-want-to-27e02dd9f781?source=friends_link&sk=8139c568a7fe885d9b560e7cde7035b2. Plus also let me know how can I get it featured on FCC New Section
BuntyBru
@BuntyBru
@erictleung
thanks Eric
Philip Durbin
@pdurbin
@erictleung here is where I recently announced dataverse-sample-data: https://groups.google.com/d/msg/dataverse-community/u-Yv0U3v4Bo/NgBfDrDlAgAJ . I'm wondering if you (or anyone else here) is interested in contributing any datasets. :)
Alice Jiang
@becausealice2
@erictleung you're famous. Remember us
Philip Durbin
@pdurbin
heh
Alice Jiang
@becausealice2
if anyone is looking for free data, I've just discovered the Food and Agriculture Organization of the United Nations' FAOSTAT and OHMYGOD so much information
(in case it needs to be stated explicitly, it's all agricultural-related data)
ruitoantunes
@ruitoantunes
Hi
ruitoantunes
@ruitoantunes
i'm starting programming in php and would like to have some support on the php code
Alice Jiang
@becausealice2
@ruitoantunes I don't know that many people here would be able to help with PHP, it's not a very common language in Data Science. Perhaps if you share a code snippet someone could have a look?
ruitoantunes
@ruitoantunes
Ok thanks.
Sakitha
@Sakitha
Hi, does apply in df.apply(fun) iterate over each columns in 'df' data-frame and pass them to 'fun' function as a series?
Eric Leung
@erictleung
@Sakitha hi there! What language and package are you working with? I'm assuming Python and pandas but just wanna be sure.
Alice Jiang
@becausealice2
@Sakitha :point_up: making that same assumption, yes. Each column is passed as a Series object to fun
Philip Durbin
@pdurbin
I like the sound of apply(fun)
Alice Jiang
@becausealice2
I wonder what that does :weary:
I shouldn't be so dramatic :laughing:
Philip Durbin
@pdurbin
:)
Atharva Kulkarni
@IronVenom
hello
Eric Leung
@erictleung
@IronVenom hello and welcome! :smile:
abraham anak agung
hello, anybody here? :smile:
Philip Durbin
@pdurbin
Some of us are here. :) What can we do for you?
abraham anak agung
@pdurbin It is ok, SO to the rescue :smile: . Just confuse why np.std() return different value compare to pandas std.
Philip Durbin
@pdurbin
np is numpy, I assume
Sundeep
@pidugusundeep
Hey
Anu-Pra
@Anu-Pra
Hey
Is anyone interested in forming a study group for learning P1xt Data Science guide?
I need a study partner
Eric Leung
@erictleung
@padunk if you remember, what is the difference between np.std() and pd.std()? I'd like to know :smile:
@pidugusundeep hello!
@Anu-Pra I don't think I have the bandwidth to join, but feel free to use this space to bounce ideas! People around here have a range of expertise, but we're all interested in learning as well. Questions you may have while going through the guide are probably general enough for us to answer.
Eric Leung
@erictleung

For those who use R and the tidyverse, tidyr has been updated to 1.0.0! https://www.tidyverse.org/articles/2019/09/tidyr-1-0-0/

• New pivot_longer() and pivot_wider() provide improved tools for reshaping, superceding spread() and gather(). The new functions are substantially more powerful, thanks to ideas from the data.table and cdata packages, and I’m confident that you’ll find them easier to use and remember than their predecessors.
• New unnest_auto(), unnest_longer(), unnest_wider(), and hoist() provide new tools for rectangling, converting deeply nested lists into tidy data frames.
• nest() and unnest() have been changed to match an emerging principle for the design of ... interfaces. Four new functions (pack()/unpack(), and chop()/unchop()) reveal that nesting is the combination of two simpler steps.
• New expand_grid(), a variant of base::expand.grid(). This is a useful function to know about, but also serves as a good reason to discuss the important role that vctrs plays behind the scenes. You shouldn’t ever have to learn about vctrs, but it brings improvements to consistency and performance.
Alice Jiang
@becausealice2
@padunk Different denominators. Have a look at this
Anu-Pra
@Anu-Pra
Thank you @erictleung . Together we all grow!
Eric Leung
@erictleung

So Google's gonna be Google. I was skimming through Google's AI blog (highly recommended btw) and was reading about some new neural networks, namely "weight agnostic neural networks" or WANNs https://ai.googleblog.com/2019/08/exploring-weight-agnostic-neural.html

So traditionally, you'll need to design the architecture of neural networks (i.e., how many layers, the connections, how many nodes, etc). These WANNs are apparently a way to use automation and have the computer find out which architectures work the best. It is a fascinating thing to think about.

Anandesh Sharma
@Anandesh-Sharma
Hey guys welcome me!
londheshubham
@londheshubham
@erictleung Great find buddy, will surely go through it!
Eric Leung
@erictleung
@Anandesh-Sharma welcome!