- Amateur programmer despite the fact that I have a polytechnic diploma 😅
- Currently in my 2nd year of CompSci at uni
- Working towards becoming a frontend and/or fullstack web developer
- Interested in GIS as well cus Im minoring in EnviroSci
- Might try cybersecurity just for the $ for my fam
AI can be ethically used in writing. This is not an example of that. People need to get into the "AI as a tool" mindset. And capitalism causing greed is part of the issue of course.
If this is for a job interview, I’d err on the side of verbosity. Break it all into distinct, easy to read steps: load, process, output, logging, exception handling, comments, etc.
I turned it in days ago so there's nothing I can do about it. But I'll keep that in mind for the future.
Thanks, I set inplace=False like you suggested. I thought setting it to true meant that it modified the original dataframe. Why does it work with false?
I'm trying to do the job specs, but the net is just so wide. But yeah, it looks like personal projects is the way to go.
Currently working on the responsive web development course. I like the guitar sounds. 😅

Having trouble with web scraping. Help please.


- I was applying to a job, and then I had to answer a question about web scraping, which I'm not familiar with. I answered all the other questions with no issue, so I decided might as well put in the effort to learn the basics and see if I can do it in a day.
- Yes, it was *somewhat * easier than I expected, but I still had to watch like 4 YouTube videos and read a bunch of reddit and stack overflow posts.
- I got the code working, but I decided to run it again to double-check. It stopped working. Not sure why.
- Testing is also annoying because the "web page" is a google doc and constantly reloads or something. It takes forever to get proper results from my print statements.
- I attached an image with the question. I haven't heard back from them, and I've seen other people post what I think might be this exact question online, so hopefully I'm not doing anything illegal.
- At this point, I just want to solve it. Here's the code:
undefined
from bs4 import BeautifulSoup import requests impor

What would you recommend for building your skills?
I know this seems like a very obvious question. But I mean with regards to job searches. Even internships seem to require a variety of skills these days. I'm interested in both web development and just recently have considered data analysis. Should I work on tutorials and personal projects for a single skill or framework at a time? Or make small projects across a wide variety of things so I can put those skills on my resume?
I honestly never realised the terminology was that important (so I never put much effort into remembering any of it). Yes I meant logging. I'm having trouble understanding the rest of what you mean though.

Is it okay to leave tests in your code?
Like if I'm using print statements to test my code. Is it okay to leave stuff like that in there when "publishing" the app/program?
Edit: So I meant logging. Not "tests". Using console.log to see if the code is flowing properly. I'll study up on debugging. Also, based on what I managed to grasp from your very helpful comments, it is not okay to do, but the severity of how much of an issue it is depends on the context? Either that or it's completely avoidable in the first place if I just use "automated testing" or "loggers".
Sounds like they're still very relevant and very important. Python isn't a language I've used a lot but I'm still surprised I've never heard about docstrings till this tutorial. Thanks for the info.

Are docstrings commonly used?
Was going through a Python tutorial, but it seems kinda dated. Wanted to know if people regularly use docstrings in the workforce. Or are they somewhat irrelevant because you can convey most of that info via comments and context? Do jobs make you use them?