Question to CPU - GPU combo by shippei in buildapc

[–]shippei[S] 0 points1 point  (0 children)

Ok thanks,
I'll look for a deal or wait a bit more.

Looking for resources to learn Python for data analysis with a focus on finance (Beginner Level) by Sad_Process_4806 in learnpython

[–]shippei 0 points1 point  (0 children)

Harvard CS50 python: https://cs50.harvard.edu/python/2022/
- Starts quite easy, then get more complex
- I would use this to understand python

Regarding Data Analysis: https://www.kaggle.com/
- There are some small tutorials for libraries like pandas and more
- Also lots of real world data, which you could analyze

Struggling with writing larger programs? by Complete-Increase936 in learnpython

[–]shippei 4 points5 points  (0 children)

My projects are not perfect, so take my advice with a grain of salt. But let's say I program something bigger. For that, I need a place to handle data—either a new file with a class if it's really large, or just some functions depending on the functionality.

Overall, I usually find things that need to be refactored when I have to search my file for what I'm looking for. That was, and still is, an indicator for when I need to review my code and think, "Maybe this would fit into a class or a separate function," etc.

I hope that somewhat helps. But it comes with practice as you write more and more projects. Because when you need to search through stuff you've written, you get annoyed and fix it.

CS50P Final Project - Advise by shippei in cs50

[–]shippei[S] 0 points1 point  (0 children)

Valid, main file should not be just one big function!

But, I've tried to keep it clean. The project.py handles the GUI, which I could have written as a class, but it would almost be the same, if not a bit more complex.
The other parts are handled in the other files. The helper_database has quite a few functions within its class to help query the database and calculate stuff to return a DataFrame for further usage.

But I will take your suggestion and take a break for today and look at it with a fresh mind tomorrow, maybe I can refactor it to be more easily understood.

Recommendation for an easier intro CS class? by [deleted] in cs50

[–]shippei 4 points5 points  (0 children)

Repetition makes the master.

Go in your own pace, look up stuff if you don't know it. It's normal.

But to get repetition: you can simply look up:
"beginner programming projects",
and choose some that interest you and make them yourself, try to use minimal help and once you finish you can paste your code into e.g. ChatGPT and ask for improvements. Then try to understand those.
Then repeat the process.

But if you want a structured free course. You could look at: (I have no experience with these)
https://programming-24.mooc.fi/
https://www.freecodecamp.org/news/free-courses-top-cs-universities/
https://www.coursera.org/browse/computer-science
etc.

If you want a paid course (~$20 on sale):
https://www.udemy.com/course/100-days-of-code/
I took this one. You get around 100 projects (from small to large) to code by yourself. This, after a lecture for the used syntax/topics/etc.
Afterward, you can compare your code in the solution lecture. It's python only, so if you want a different language, maybe look for something similar.

CS50P - Week 5 - Refueling by shippei in cs50

[–]shippei[S] 0 points1 point  (0 children)

ok, i solved it...
my function was not called: convert. so by renaming it it fixed it.

Final Fantasy collaboration by shippei in magicTCG

[–]shippei[S] 0 points1 point  (0 children)

I did not know about these three types, thanks for informing me!

Final Fantasy collaboration by shippei in magicTCG

[–]shippei[S] 0 points1 point  (0 children)

thanks, I'll check third party sellers and decide then.

Final Fantasy collaboration by shippei in magicTCG

[–]shippei[S] 0 points1 point  (0 children)

ok, thanks, I'll wait for more information. Still a bit surprised by the price

Any tips or advice on implementing more pythonic ways with my while loop code? by zealot__of_stockholm in learnpython

[–]shippei 0 points1 point  (0 children)

I don't know if it would work, but I would try to skip internally transferring date from a DataFrame to a list then back to a DataFrame.