KlausMichaelson's Posts
Nairaland Forum › KlausMichaelson's Profile › KlausMichaelson's Posts
1 2 3 4 5 6 7 8 9 (of 9 pages)
Donotread:Ofcourse at the same time I'll learn. If I attempt it and I fail to get it, you may voluntarily give me the correct code for the task Sir. |
Donotread:Sir any task at all. It could be to write a code to perform a particular function, I'll be very willing to do it. |
Akhigbeblog:I got some through a course mate and others were from YouTube. |
Please I'll be very happy if anyone could give me a task to complete. I would try to do it. Thanks a lot. |
So I spent the previous night thinking of writing a code that can accept input from a user and run different operations on it. The operations are limited to Addition, subtraction, Division, Multiplication, and Modulo. I came up with this after much thought. number1 = int(input('what number? ')) number2 = int(input('what number? ')) calculation = input('what operation do you want? ') def operation(num1,num2): addition = num1 + num2 subtraction = num1 - num2 multiplication = num1 * num2 division = num1 / num2 modulo = num1 % num2 if calculation == 'addition': return addition elif calculation == 'subtraction': return subtraction elif calculation == 'multiplication': return multiplication elif calculation == "division": return division elif calculation == 'modulo': return modulo result = operation(number1, number2) print(result) Modified: After taking Corrections from my Top Ogas in the House, I finally came up with a better code for the calculator. Corrections are still welcomed. number1 = int(input('Enter a number? ')) number2 = int(input('Enter another number? ')) calculation = input('addition, subtraction, multiplication, or division? ').lower() def operation(num1, num2): if calculation == 'addition': return num1 + num2 elif calculation == 'subtraction': return num1 - num2 elif calculation == 'multiplication': return num1 * num2 elif calculation == "division": try: if num1 % num2 == 0: return num1 / num2 else: return num1/num2 except ZeroDivisionError: print('cannot divide zero, enter a denominator other than zero') result = operation(number1, number2) print(result) |
I am so glad that this journey have started yielding good fruits. My dream is to become an expert in Python one day and teach people how to write the language like Mosh Hamedani, Cs Dojo and Hamit Ranjit Grom ACADGILD This is making it a month of Learning Python. Although I've seen some videos on python long before now but I didn't take it too serious. Already I have interest in Data Analysis but I still have some feelings towards Software development but that will be later on when I'm done learning Data Science and mastering all the tools in it. So I'm going to be Posting some codes I write by myself everyday so as to keep the fire Burning. Please I will welcome any correction gladly. Thanks be to God for the Holidays. This is ironically a bad year indeed. Modified: Please you can also give me a task or exercise to Work on. I'll be grateful. |
BelieverDE:Wow I never knew. Thanks |
BackllGodNaija:Sir Can you Please just read what you wrote here and ask yourself if you made any sensible point. Please I appologize if I sound rude. |
ibromodzi:Yes my Oga. Thank you for this. I really appreciate Sir. |
BackllGodNaija:Honestly I don't get the point you're driving at. How does opening a new account around june14 explain why I created this post?? Did you even try to check the section I'm most active on?? Did you even bother to check for my previous posts and see if any of them is primarily on atheistic fanaticism?? Did you even try to check if I had any other post under religion?? Please and please stop acting the same way the others have been doing. You lots act in a way that makes me wonder if Religion makes one become foolish at a default or do these folks actually choose to be foolish?? If you were wise enough, why not clear me on my confusions and try to give atleast some answers to my Questions?? From the look of things here so far, I can conclude that those you refer to as Atheists actually sounds more logical and sensible. I'm not one of them but like thread suggests, I may choose to become one anytime soon cos I don't want to become a fool nor become very foolish. |
Kobojunkie:If people are not confused about him, why then do Christianity have different teachings about him?? Why don't they all serve him the same way ?? Is he in different forms?? If I ask some persons if they could attend Celestial church the next thing you hear is "God forbid". I don't get you people at all. Ask a Conc. Pentecostal to attend Catholic they will shout Holy ghost fire! All of you have a way of castigating each other because you feel that your way of serving him is the right way he wants it. But you people forget that two wrongs don't make a right. If God actually allow people serve him in different ways, then why would he even come up with the Commandments ![]() Only blind people will give a different description about a particular thing. |
I mean why do I no longer fancy this religion I was born into ![]() Why do I feel that they are all blind?? Two wrongs can't make a right. How can churches have different ways of serving God and also have different beliefs about God?? The men that described how the elephant looks like had different description of the elephant cos they were simply blind. Why do you all have something to criticize about a church that is not yours. The other day, I learnt that Jehovah Witness don't marry any one who is not of their belief and member of the church. Why do I see people who are religious fanatics as fools?? Very religious people but yet the most Corrupt country in the world. Why are you all bloody Hypocrites I call them fools cos most times they spend their whole time in the Church praying instead of getting their asses up to work.Why do I find Very religious people to be the most Suspicious people. I mean I actually would be wary of a person who people say is a bad person, fine. But you see that one they say is a good person, I am more wary of those kind of person. Why are they all so annoying to me?? The other day one of the pastor said it's a sin to not pay tithe or how did he say it again? I actually attended this man's church at some point in time. All his preaching wether it concerns tithe or not, will always still be related to tithing. Now he built a school where not even the poor among his congregation could afford. Over there in my school, I don't attend Fellowships or even churches because most of those guys are sleeping with each other. Why use fellowship as a disguise?? You're now the devil workshop since you're tarnishing the image of the church. How could you be coming from a brother's house from the night after rounds of sex and still come out and say you want to lead us in prayer?? Are you mad! How true is the Bible itself?? I believe strongly that there are many altercations in it. Additions and subtractions are plenty. Because I still can't believe that the Bible will tell the slaves to be obedient to their Masters. Only a white man who accepts slavery could have written that nonesense. What is all these nonesense about In as much as I'm trying my best to believe in God's existence, these people are not helping my matter. Honestly I'm getting tired.If I end up becoming an Atheist atleast God should know why it turned out that way. Modified: If you're seeing this, I want you to know that I was a Christian but now an agnostic who only believes in God's existence to an extent. But believe me I really have doubts within me if I wouldn't become an Atheist in the nearest Future. |
ibromodzi:Thank you very much Sir. I really appreciate. |
. |
ibromodzi:Lols Is I never said df.describe() gives ANOVA Sir. if it gives ANOVA why then should I still be bothered about ANOVA this or ANOVA that. What I said was that df.describe() brings up a sort of table showing some statistical analysis(Mean, Std, etc) of any data you provide for it and not ANOVA sir. Anyways thanks for your advice. |
fati2001:Are you Married?? |
BelieverDE:Wow, I haven't gotten to that level then. Thanks for the insight. Do you mean you can do a computation on a new column that requires values from other columns at just a single input? And it will also give answers to every cell in the new column? At just one single input or formula?? |
ibromodzi:Honestly, the reason why I'm very concerned about the use of ANOVA is simply because our Lecturers are always talking about it. I can actually do the calculations by the use of the various formula to get the required values for the ANOVA table. That's fine but what if I have a very large data? The truth of the matter is that they wouldn't give me a straight forward answer as to the real life application of the ANOVA design neither will they tell me when to use it specifically whenever I ask them that question. They just beat around the bush. ANOVA actually stands for Analysis of Variance and to my understanding, it is used to analyze Data that comes with a number of replications for a given Sample. It helps determine an experiment's Standard error, and some other parameters which I can't remember. My school books are far away from me at the moment. Anyways, the truth of the matter is that you're right about the fact that one needs to be grounded in not only the Practical but the theoretical part of Data Analysis. Why I felt that ANOVA table could be gotten from any of these libraries or tools is simply because of a code I came across on pandas **df.describe( )**. It brings up a table showing some statistical analysis of any data you provide for it. Maybe there is no ANOVA design from any of the tools or libraries but there is absolutely no problem. I'll work towards my other targets. |
[quote author=Dum20 post=92198951][/quote]Good day Sir to answer your question below: **But i observed that what is being done using Pandas and Matplolib can be done comfortably with excel(Power Queries)** As an intermediate, I'll like to let you know why pandas is much more flexible than Excel. Here are my reasons (1). Using Pandas, you can easily create a new cell(or column) that could do a multiple computations(addition, Subtraction, formulae etc) using values from other cells(or columns) in just a single line of code. But Excel is limited to that as you can only do it for each cell in a new column one by one and this can very cumbersome. (2). Excel doesn't help give you a visualization of your preferred taste. That doesn't mean you can't design a plot( it's axis, Gradient line, ticks and the likes). But Pandas is more flexible using Matplotlib and pyplot, you can easily give your plot a good visualization of your choice.You can easily change marker colour, line size, line colour and the likes by just a simple line of code(even shorthand notation) There are other reasons why I think Pandas/Matplotlib/Pyplot is more flexible than Excel but those are the ones I can remember at the moment. Although I stand to be corrected cos I'm still a learner.Our Pros in the house can help too |
..... |
Hassanolek:Thats very good. Keep it up sir. Yes you can check out *CS DOJO* and *Keith Galli* on YouTube. Check for their Videos on Intro to Data Science and Visualization, pandas, pyplot, Matplotlib, etc. They will open your eyes. Modified I use my book to take down every step about just any of the tools I'm learning from any of the videos. I literally have a jotter where I took down every steps. I do this cos I'll still go through my jottinngs whenever I'm not on my system. So It requires patience. |
I'm so happy right now ![]() I mean it's already a month and 6days in this journey. Before now, around 2019 or so, before school resumption I watched some videos on python but I didn't take it too serious. And yes I have a good foundation in Excel since my 300lvl cos I use it to plot assignments on graphs(A bit complex ones) and I make lot of money from it . I also understand the syntaxes and it's operations but I would still love to know more.By June 20th 2020(last month) I saw this thread and I became very serious to know more about Data analysis. So serious that I had to Deactivate my Whatsapp cos it's always taking my precious time away. Now here I am today and here are the things I have learnt after staying away from Social media for a month and 6days. (1). Python (Intermediate tho )(2). Pandas (Intermediate) although I can do almost anything with it but I won't still call myself a pro. Pandas is much better than excel as it could run many cells operations. (3). Matplotlib (Same as pandas, my wonderful friend) (4). Numpy ( still a learner cos I haven't seen much of it's use). And lastly (5). Pyplot (my very good friend also) Currently I'm leaning Seaborn and Powerbi. Honestly speaking I know there are much more to learn . But seeing that I'm still a student, I feel I need to focus more on the ones that are more important to me as a student. So my targets are:(1). Master all these tools in Data Analysis I've learnt so far. Later on after my studies, I'll learn Sql, Tableau and others. (2). Find out which tool is best for ANOVA design table. (3) Do Data Analysis for your fellow final year students undergraduate report and get paid (4). Conduct Seminars for Students in Data Analysis and get paid ![]() Please do well to profer any other library or tool to help meet my targets especially in the ANOVA design. Thank you @Ejiod for the wonderful thread and to everyone on this platform |
fati2001:Your profile is really confusing ![]() Are you a boy? A Nigga? A Girl? A woman? or a Mother?? ![]() |
Okimski:Well I believe that the dream doesn't depict a school situation only. I believe it's one's greatest fear as a thought. Everything that I illustrated in my first comment is usually my greatest fear. It could be our mind playing pranks on us. My advise is for you not to worry a lot. I stopped worrying much about school these days cos of Corona and I haven't had such dreams in a while now. |
Okimski: ![]() Just when I thought I'm the only one. This life balance be that o ![]() On a more serious note, I really dont know the meaning of such dreams. Mine is about an umpteenth times. Haba If I didn't come late to the Exam hall, something very saddening will Happen. It could be that I may not know any answer to the questions at all, or the invigilator will seize my script or that I'll have to start the examination over again and there won't be enough time. I always wake up sad each time I have such a dream. Funny enough, this doesn't reflect in my academics in reality cos it's exactly the opposite. What I mean here is that I'm currently the best student in my class. Please someone should explain the meaning of such dreams. |
![]() |
etrange:Shut your F****ing Mouth up, Bloody Simp! |
One day her heart go cut. |
Their Owner gambled with their Money. They barely have absolutely nothing to offer cos they are at the verge of going bankruptcy. The thread holding them from it is almost about to cut. |


)
. But seeing that I'm still a student, I feel I need to focus more on the ones that are more important to me as a student. So my targets are: