Comments for Data36 https://data36.com/ Learn Data Science the Hard Way! Fri, 30 Dec 2022 00:41:29 +0000 hourly 1 https://wordpress.org/?v=6.7.4 Comment on What’s the best computer/laptop for a data scientist in 2023? by Tomi Mester https://data36.com/best-computer-laptop-for-a-data-scientist/#comment-192477 Tue, 06 Apr 2021 21:29:55 +0000 https://data36.com/?p=4633#comment-192477 In reply to Arnaud Borrens.

Thanks a lot Arnaud for the followup!
And congrats — enjoy your new laptop. 🙂
(I’ll also add your recommendation to the article!)
Cheers,
Tomi

]]>
Comment on Statistical Bias Types explained (with examples) – part 1 by Michael Muuwo https://data36.com/statistical-bias-types-explained/#comment-192472 Tue, 06 Apr 2021 13:07:21 +0000 https://data36.com/?p=1314#comment-192472 This is very informative.

]]>
Comment on What’s the best computer/laptop for a data scientist in 2023? by Arnaud Borrens https://data36.com/best-computer-laptop-for-a-data-scientist/#comment-192428 Sat, 03 Apr 2021 15:17:29 +0000 https://data36.com/?p=4633#comment-192428 In reply to Tomi Mester.

Hi again,
Just popping back to update you on my final decision.
I finally gave in to my gamer heart and went with the Razer Blade Stealth given the fact that for less money I got double the storage and a GPU option compared to the Surface Laptop. I do know that it is quite an over-the-top Laptop but I must say that I’m really happy with it. Moreover, the extra storage space and GPU let me install my gaming library and play them. Furthermore, as I am remote working for over a year now, I also invested in the Dell U2421E external monitor which gives me a 16:10 aspect ratio and a USB-C connection for power (90 Watt) and Display output as well as a USB Hub (3 USB-A + 1 USB-C).
This set-up gives me the comfort of a full 24.1-inch screen and ergonomic desktop working station in a one-cable connection and the flexibility to take my laptop and work from the couch (or a coffee shop in the future).
I must say that I’m pleasantly surprised by the battery life of the Razer Blade Stealth and can confirm that it holds comfortably 8h of light work.
All in all I really happy with this set-up but I do believe that there are less expensive set-ups that would work as well as this one.

]]>
Comment on Python For Loops and If Statements Combined (Python for Data Science Basics #6) by Tomi Mester https://data36.com/python-nested-loops-if-statements-combined-data-sciene/#comment-192346 Mon, 29 Mar 2021 15:19:07 +0000 https://data36.com/?p=2054#comment-192346 In reply to Balázs.

Oh, wow, nice job!!! That’s what I call a nested for loop + if statement. 😀
I haven’t tested it but my first thought was that this probably can be made shorter by using Python’s switch + case syntax. (I haven’t written any tutorial about it yet.)

Great job again, and thanks for sharing it, Balazs!

]]>
Comment on How to Plot a Histogram in Python (Using Pandas) by Beautiful Soup Tutorial 1. (Introduction to Web Scraping with Python) https://data36.com/plot-histogram-python-pandas/#comment-192345 Mon, 29 Mar 2021 14:47:49 +0000 https://data36.com/?p=5091#comment-192345 […] on final_prices, we can easily create a basic histogram out of our data with the following lines of […]

]]>
Comment on Data Science Hobby Project: Web Scraping Book Ratings With BeautifulSoup by Beautiful Soup Tutorial 1. (Introduction to Web Scraping with Python) https://data36.com/data-science-hobby-project-web-scraping-beautifulsoup/#comment-192344 Mon, 29 Mar 2021 14:47:32 +0000 https://data36.com/?p=5781#comment-192344 […] sooner or later you’ll come to a point where you have to collect large amounts of data. Be it a hobby project or a freelance job, when APIs are just not available, one of your best options is web […]

]]>
Comment on Python For Loops and If Statements Combined (Python for Data Science Basics #6) by Balázs https://data36.com/python-nested-loops-if-statements-combined-data-sciene/#comment-192248 Wed, 24 Mar 2021 10:43:52 +0000 https://data36.com/?p=2054#comment-192248 Hi Tomi!

This age founding program is cool. And it inspired me to do some similar program too.
I created a program which is able to find out which county do you live in Hungary.
For the first question I give the answer scenarios, the rest of them yes-no questions.
I know it is not a sophisticated one, and it is easy, but I enjoy the work on it!
The for loop is for the wrong answers, but if you give a wrong answer you have to start it over.
Here is the code:

for i in range(1,4):
    answer=input('Do you live in Pest County? (Possible answers: correct, to the west, to the east, to the south) ')
    if answer=='correct':
        print('Good for you!')
    elif answer=='to the south':
        print('You live in Bács-Kiskun County.')
        break
    elif answer=='to the west':
        answer1=input('Do you live in the northern part of this region? (yes, no) ')
        if answer1=='yes':
            answer2=input('Do you live in a county which is next to the eastern border of the country? (yes, no) ')
            if answer2=='yes':
                answer3=input('Do you live in the western part of this part? (yes, no) ')
                if answer3=='yes':
                    print('You live in Győr-Moson-Sopron County.')
                    break
                elif answer3=='no':
                    print('You live in Komárom-Esztergom County.')
                    break
                else:
                    print('Wrong answer.') 
            elif answer2=='no':
                answer4=input('Do you live in a county which is next to the western border of the country? (yes, no) ')
                if answer4=='yes':
                    print('You live in Vas County.')
                    break
                elif answer4=='no':
                    answer5=input('Do you live next to Pest County? (yes, no)')
                    if answer5=='yes':
                        print('You live in Fejér County.')
                        break
                    elif answer5=='no':
                        print('You live in Veszprém County')
                        break
                    else:
                        print('Wrong answer.')
            else:
                print('Wrong answer.')
        elif answer1=='no':
            answer6=input('Does your county located next to the Danube? (yes, no) ')
            if answer6=='yes':
                answer7=input('Does your county located next to the country border? (yes, no) ')
                if answer7=='yes':
                    print('You live in Baranya County.')
                    break
                elif answer7=='no':
                    print('You live in Tolna County.')
                    break
                else:
                    print('Wrong answer.')
            elif answer6=='no':
                answer8=input('Do you live in a county which is located to the south form the Lake Balaton? (yes, no) ')
                if answer8=='yes':
                    print('You live in Somogy County.')
                    break
                elif answer8=='no':
                    print('You live in Zala County.')
                    break
                else:
                    print('Wrong answer.')                  
    elif answer=='to the east':
        answer9=input('Do you live in a county which is next to the Tisza (not intersecting it)? (yes, no) ')
        if answer9=='yes':
            answer10=input('Do you live to the east from the Tisza? (yes, no) ')
            if answer10=='yes':
                answer11=input('Do you live in the eastern county of the country? (yes, no) ')
                if answer11=='yes':
                    print('You live in Szabolcs-Szatmár-Bereg County.')
                    break
                elif answer11=='no':
                    print('You live in Hajdú-Bihar County.')
                    break
                else:
                    print('Wrong answer.') 
            elif answer10=='no':
                answer12=input('Do you live in the northest county of the country? (yes, no) ')
                if answer12=='yes':
                    print('You live in Borsod-Abaúj-Zemplén County.')
                    break
                elif answer12=='no':
                    print('You live in Heves County.')
                    break
                else:
                    print('Wrong answer.')
            else:
                print('Wrong answer.')
        elif answer9=='no':
            answer13=input('Do you live in a county which is intersected by the Tisza (not next to it)? (yes, no) ')
            if answer13=='yes':
                answer14=input('Do you live in a county which is located next to the country border? (yes, no) ')
                if answer14=='yes':
                    print('You live in Csongrád-Csanád County.')
                    break
                elif answer14=='no':
                    print('You live in Jász-Nagykun-Szolnok County.')
                    break
                else:
                    print('Wrong answer.')
            elif answer13=='no':
                answer15=input('Do you live in a county next to Pest County? (yes, no)')
                if answer15=='yes':
                    print('You live in Nógrág County.')
                    break
                elif answer15=='no':
                    print('You live in Békés County.')
                    break
                else:
                    print('Wrong answer.')          
    else:
        print('Wrong answer.')
]]>
Comment on Linear Regression in Python using numpy + polyfit (with code base) by Tomi Mester https://data36.com/linear-regression-in-python-numpy-polyfit/#comment-191689 Tue, 02 Feb 2021 21:19:41 +0000 https://data36.com/?p=4845#comment-191689 In reply to Art.

Yes! Good Q.
They are 2nd and 3rd degree polynomials… (The straight line is practically a 1st degree polynomial.)
So they are not f(x) = x but f(x) = x^2 and f(x) = x^3 and so on.
I’ll get back to this in detail in a later article.

]]>
Comment on Linear Regression in Python using numpy + polyfit (with code base) by Art https://data36.com/linear-regression-in-python-numpy-polyfit/#comment-191668 Tue, 02 Feb 2021 02:44:48 +0000 https://data36.com/?p=4845#comment-191668 In reply to Tomi Mester.

Great article on linear regression. I was plotting stock prices and when I put in 1 I got the straight line. When I change the value to another number 2, 3, etc I started to get a curve along the stock price. Can you explain what I getting? Thanks. Art.

]]>
Comment on What’s the best computer/laptop for a data scientist in 2023? by Tomi Mester https://data36.com/best-computer-laptop-for-a-data-scientist/#comment-191294 Fri, 18 Dec 2020 14:38:07 +0000 https://data36.com/?p=4633#comment-191294 In reply to Christopher A..

But that’s an awesome comment, I wish I could pin it to top!
Thanks for adding your thoughts!

Tomi

]]>