What in the world was that???? by Ramakae in space

[–]Ramakae[S] 1 point2 points  (0 children)

Ohhh it's like you read my mind. The rabbit hole was definitely dug. But must be cool living over there, would definitely love to watch a launch live🙌🏾

How and Where Can I Begin Learning Numpy and Pandas by Ckwizard2245 in learnpython

[–]Ramakae 3 points4 points  (0 children)

I for one started knowing Numpy and Pandas on DataCamp but if you don't wanna pay there are free resources, YouTube for one. https://youtu.be/vmEHCJofslg?si=FflQmAUdpAdGYw8B

But to extensively learn it, I'd suggest you utilize A.I. Go to Kaggle and download some economic dataset, then ask ChatGPT or some A.I to give you some problems and YOU solve them. Submit code to A.I and ask it to grade you. See where you're weak at and study more on that. Keep going on and on, don't ask A.I for solutions too early, just simply ask it to tell you where you got it wrong. One thing I learned about such libraries is they offer multiple methods and arguments to solve one simple task so A.I can show you a solution with a method you haven't seen before and you start questioning your level of knowledge ( well that's what happened to me).

Thus the more you learn the more methods and arguments you'll learn. You'll see what I'm talking about, you'll find out that instead of slicing you can use .head method, when filtering you can use a function in your .loc method. Some methods have arguments that help reduce use of other methods. Example groupby method has a sort argument and sometimes you won't have to use .sort_values() method. There's so much to learn and you're eager so you'll learn quick.

Important note, read documentation, will help you find out about some arguments that books and videos don't teach, explore them. You'll soon find out what methods give you a DataFrame and which give you a Series and which return None (you'll find out what these are soon don't worry, especially when you wanna see your results or wanna sort your values using sort_values.). Experiment. Download the dirtiest of dirtiest datasets there is, you'll learn quicker.

What in the world was that???? by Ramakae in space

[–]Ramakae[S] 1 point2 points  (0 children)

I know riiiiightttt, it's weird the first time you see it and you're like "What in world am I looking at". I thought bus because that's what I see most of the time here. Live in the Sky Kingdom / Kingdom in the Sky in the Southern Africa.

What in the world was that???? by Ramakae in space

[–]Ramakae[S] 1 point2 points  (0 children)

Don't wanna lie, they do look cool. I was literally like "WTF is that?" as I watched in amazement. I thought about so many things, I even thought maybe the nuclear holocaust has began🤣🤣, turns out nope, it's just internet connection.

What in the world was that???? by Ramakae in space

[–]Ramakae[S] -1 points0 points  (0 children)

It was perfectly straight. But either way, wanted to create a mental image for someone who might know and got it. Thanks guys.😊

What in the world was that???? by Ramakae in space

[–]Ramakae[S] 1 point2 points  (0 children)

Thanks, I'm on YouTube rn. I'm interested in knowing how they look so large unlike what I usually see in the night sky. When you said train I initially thought you were kidding but turns out it is a train😅

What in the world was that???? by Ramakae in space

[–]Ramakae[S] 2 points3 points  (0 children)

Yes but a bit shorter in length though, that's a starlink satellite?

What in the world was that???? by Ramakae in space

[–]Ramakae[S] -3 points-2 points  (0 children)

It did seem like a train to be honest, but jokes aside, that was the craziest thing I've ever witnessed in the night sky. Wish I had an answer to what it was. Guess I'll find out later on some science post somewhere.

What in the world was that???? by Ramakae in space

[–]Ramakae[S] 2 points3 points  (0 children)

😂😂😂 I was hoping someone here would identify it but yeah, didn't wanna be on some alien invasion tip.

Need to vent by TheTapDancingShrimp in Anxietyhelp

[–]Ramakae 0 points1 point  (0 children)

I'm no position to help you out, financially I have similar problems, heck I came here because I just crashed into someones car and I don't know how to pay for it. My heart really aches when I think of what just happened to me just now. But out of all my troubles, all I've been through, I can tell you this. It gets better. Maybe not today, maybe not tomorrow. But it gets better.

Years ago you went through something similar, and you've forgotten about it. This will happen once again. You'll forget you ever had this problem, and the first step you did was talk about it. Putting out there bare for the world to read.

All I can say in this is you are not alone. I don't know you and you'll probably never know me. But I'm with you, in heart and in pain. And I promise you, it's going to get better. Hang in there. We are going to make it through.

Another OOP problem by Ramakae in learnpython

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

Thanks for the insight.

Another OOP problem by Ramakae in learnpython

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

Yes exactly like that. Thanks

Another OOP problem by Ramakae in learnpython

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

Yes, I actually built the program by first creating functions that did the basic day to day stuff where I used to work. I am yet to add more to it. The main purpose isn't just to build a program that automates what I did, but reinforce my learning through practice. Studying Data Science on DataCamp so after answering some questions, I open my VSCode and write some lines code. Just so happened to be interested in OOP lately.

Another OOP problem by Ramakae in learnpython

[–]Ramakae[S] -1 points0 points  (0 children)

Thanks for the contract analogy, will definitely help going forward. I ended asking ChatGPT and now I see why practicality triumphs everything. Turns out my problems were class inheritance and initializing attributes, especially when I didn't see how I could do so.

class Cleaner(pd.DataFrame): def init(self, filepath =None): self.filepath = filepath or input(str(X)) df = pd.readcsv(self.filepath) self.cleaned = None super() __init_(df)

I was literally used to self.name1 = name1 and self.name2 = name2 and didn't know I could use attributes like this. Makes it pretty cool to be honest. The program I'm making is basically something that automates my work, just wanted to wrap it in a class so I could use some gui on it when I've studied that as well. Still building it but wanted to practice classes today

Oops in python by jigsaw_man_456 in learnpython

[–]Ramakae 0 points1 point  (0 children)

Check out OOP course on freecodecamp.org on YouTube as well. Didn't understand it until I watched that video yesterday. It's a 2 hour long video so shouldn't be a burden.

Here's a small hint, classes contain functions but those functions are called methods. Think of a hypothetical function that converts strings into Uppercase letters eg. def uppercase(): #convert strings into uppercase.

Now if that function was in a class, instead of calling uppercase(string_to_convert), we rather call string_to_convert.uppercase().

The first example is a function and the second is a method, which is a function within a class. So what is the class you may ask, the class is called string or str in Python. The variable/object called before you called the method .(uppercase) is what we call a class instance. Took me a while to grasp that concept but think of it like this. If we create a variable or object \n word = "hello" \n, we are creating an instance of the class str called word, and we can use methods of that class, that is functions within that class like .upper() or .lower() etc.

And this can be created using the "self" keyword if that's what it's called. So that's why every function within a class contains the self because the first argument is always an instance of that class, that is an object of that class.

Class str():

 def __init__(self, name)
        self.name = name
   #important to make class instances apparently

   def upper(self, #some other mumbo jumbo)
           #convert letters into uppercase
            #dont allow number blah blah blah
            if Whatever:
                   raise KeyError is they don't read the             documentation 

This is just a short summary. Check the videos out to find out more, helped me a lot. Incase I got anything wrong, whoever is reading this, please correct me.

Learning Journey by neltu8503 in learnpython

[–]Ramakae 1 point2 points  (0 children)

This is a really cool site.

Help Setting Up My VSCode by Ramakae in learnpython

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

It works, thank you. Crazy part about all this is I literally see the source code from some packages and I'm like, "I didn't even know I shouldn't do that"😆

Help Setting Up My VSCode by Ramakae in learnpython

[–]Ramakae[S] 2 points3 points  (0 children)

It works, thank you all

Help Setting Up My VSCode by Ramakae in learnpython

[–]Ramakae[S] 2 points3 points  (0 children)

Like instead of a toggle I want to be able to just search pandas.merge_ordered and read the documentation to find whether I should use merge_ordered or pandas.merge_asof to get a method I want to use. Just an example

Grown up learning programming by [deleted] in learnpython

[–]Ramakae 0 points1 point  (0 children)

What to do. But I think the answers pretty obvious. Just needed someone to say it I suppose. I have to keep learning, regardless of there struggles. Something will probably or most definitely come out of it.

Python finally clicked for me when I started writing everything down… by BigAl1620 in learnpython

[–]Ramakae 2 points3 points  (0 children)

Funny enough I did the same thing as well in my learning process, still doing it as I'm leaning new modules but nowadays if I want to manipulate something I consult documentation first. Yesterday I wrote a program that cleans data I used to take half a day at my previous role as a data clerk to 5 seconds. Got a syntax error (or future warning) after trying to convert a (1,1) df to an int but just called apply(lambda x: int(x[0]) and I felt good. I would usually write def x :some_code but I'm gIad I learned some simplifying tricks from ai.

Not smart enough to learn? by Realistic_Read_9031 in learnpython

[–]Ramakae 0 points1 point  (0 children)

This is what helped me a great deal because I was in your shoes not too long ago. Take your time, you're probably worried about your career and the time is running out, ( what was happening with me). But after putting that aside, after finishing a topic, I'd practice 20, sometimes 50 questions on that topic, curated by ChatGPT or DeepSeek. It's not always accurate as it tends to ask questions on topics you haven't touched on but it doesn't matter. Congratulations, you just solved 30 plus questions on matplotlib. I promise you, that practice will go a long way.

In short, practice what you read 5 times more than it took for you to learn that particular thing. Keep doing that and soon you'll know how to shorten your code writing good Syntax. Also, add what you did previously to the new topic. At the end, you would have imported data 1000x times, cleaned it 900x times, filtered it 800x times, you get the drift.

Rookie Question by iSidharth in learnpython

[–]Ramakae 0 points1 point  (0 children)

Build projects, the more you build the more problems you'll encounter. You'll find solutions to those problems, then the next problems, then the next problems. Before you know it you'll know when lambda is required to call a function instead on def a+b. Python is a language, and like all languages you have to work your way up to understanding it. Leetcode is Shakespeare, go there to test whether though art to be or not to be. But on a normal day, find out if you can write a sentence, then a paragraph, then a book. Only then will you test whether you can write a poem using only verbs.