Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,020 members, 7,821,557 topics. Date: Wednesday, 08 May 2024 at 02:58 PM

Ibromodzi's Posts

Nairaland Forum / Ibromodzi's Profile / Ibromodzi's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (of 11 pages)

Career / Re: Tips For Passing Online Or Video Interview by ibromodzi: 7:47pm On May 08, 2020
JARUSHUB:
Video interview is not a new phenomenon, but it is going to be used more after the COVID-19 pandemic.

Video interview could happen through very channels – Zoom, Skype, Microsoft Team or some bespoke tool of the company. It could even happen through whatsapp video – just any tool. Sometimes, it may not even be real-time, as some companies will send you the questions in advance and ask you to record and send you answers.

Here are some tips to perform well in video interviewing:

1. Dress well

The fact that you are not showing up in the premises of the interviewer does not mean you should not dress professionally. Dress very well, as you would in a physical interview. Avoid the temptation to drop guard.

2. Get a good environment

The environment matters. Get a quiet background in a good environment. Avoid cluttered or distracting background. Avoid having backgrounds like your TV stand or a part of your kitchen showing from the background. A plain neutral background is okay, a background showing books is cool (just make sure the most visible books are things you can say something about – the interviewer may be curious to ask you questions about the most visible books on the shelf), a nice window setting is not bad as well. A bottle or cup of water by the system side is totally in order, and it even gives some people confidence.

If you have children, don’t have them close by to the interview setting or get an adult to monitor them – your interviewer(s) at the other end do not want to see a 3-year-old butt naked girl running behind you.

If you think your dwelling is not professional enough, you may want to invest fifteen thousand naira in getting a decent hotel room for the interview setting.

3. Get your tools right

Whatever technology is to be used, be sure you are familiar with it. You have days to get familiar with it if you are not already. And get it set – and get seated – at least 10 minutes before the interview. Laptop preferred to phone, but there is no harm in using a good phone with good picture quality. If headset will be needed, get one ready. Remember to charge your system or phone very well. If your system goes off at the slightest power disconnection, you may consider using a generator, but remember to put your generator far away – the interviewer doesn’t want to spend 1 hour listening to sound of generator.

4. Avoid temptation to cheat

Avoid the temptation to sticky some notes on the board or wall in front of you. It is generally not advisable to have prepared notes in front of you while the interview is going on. However, some interviewers, especially if interviewing with foreign companies, accept notes about some things – like some facts about the company. You may ask the question in advance before or as the interview is about to commence. You may also get a pen and a blank paper as you may need to jot some questions down.

5. Your body language matters

Video interview is not significantly different from in-office interview. Your body language matters. Avoid being fidgety. Naturally, you will be a little nervous in the first seconds and it’s ok, the interviewers understand that. The problem arises when you fidget all through.

6. Do mock session

If you have never done video interview before, you may want do some practice the real interview. Practice with the tool recommended in the interview invite (or an improvision). You may get your friend or brother at the other end to interview you and give feedback or get professional interview coaches like JarusHub.

One extra advice: if you’re switching jobs, it is generally not advisable to use your current employer’s office for interview. It is not professional and you may not even be fully comfortable. Take a day off or get a hotel nearby during your lunchtime.

Ultimately, don’t forget the general interview tips – like tips for answering questions, common questions, researching about the company and the industry. Don’t spend all your preparation time on figuring how to use Zoom and forgetting to read about the company and the industry!

https://www.jarushub.com/how-to-pass-video-or-online-interviews/

Please do you know how I can compress an mp4 file (44mb to 5mb)? I recently shot a video interview but I'm finding it difficult to upload
Programming / Re: How Do I Solve This Python (anaconda) Problem by ibromodzi: 8:32pm On May 06, 2020
rerhji:
i used the code line; 'conda install seaborn '. won't it install d recent version?
You might find this link useful
https://stackoverflow.com/questions/51422146/install-the-latest-version-of-seaborn-0-9-0-through-pip#51422773
Culture / Re: Coronavirus: Umar Farouk, Emir Of Daura Rushed To Intensive Care Unit by ibromodzi: 11:13pm On May 05, 2020
Trailblazer1:


The answer is simple undecided



It is because the safety measures were not written in the Quran tongue
Let me quickly educate you since you've chosen to display your ignorance publicly.
Quarantine being practiced today has its root deep in early Islamic history. This can be traced to the advice of the prophet concerning pandemic/epidemics where he said : "Those with contagious diseases should be kept away from those who are healthy." The prophet also said: “If you hear of an outbreak of plague in a land, do not enter it; but if the plague outbreaks out in a place while you are in it, do not leave that place.”

In addition, the prophet also strongly encouraged human beings to adhere to hygienic practices that would keep people safe from infection. This can be found in some of his numerous narrations;

“Cleanliness is part of faith.”

“Wash your hands after you wake up; you do not know where your hands have moved while you sleep.”

“The blessings of food lie in washing hands before and after eating.”


The great medieval Islamic scholar who also doubled as a medical doctor (ibn Sina) also recommended that patients with infectious diseases should be quarantined.

You can educate yourself further here.
Programming / Re: How Do I Solve This Python (anaconda) Problem by ibromodzi: 3:41pm On May 05, 2020
You might be using a version that predates the introduction of those functions. Try installing the latest version of seaborn
Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 5:12pm On Apr 23, 2020
trigar12:
I plotted this graph on matplotlib but I can't seem to get it right using seaborn

Month = range(1.13)
plt.bar(Month, result["Sales "])
plt.show()

I tried with seaborn but I got an error message

sns.barplot(x=" Month", y=result["Sales"])

Can anyone please show how to plot such on seaborn?
Why putting the Month inside quote again?

Try
sns.barplot(x= Month, y = result['Sales'])
Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 9:37am On Apr 07, 2020
RealTrump:
Please oh, gurus in the house. I am stuck with that covid data challenge.

import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt

covid = pd.read_csv('c:\\users\\bola\\desktop\\covid19-april-4.csv')
covid

filter_for_cases_greaterthan_5k = covid.TotalCases > 5000
covid[filter_for_cases_greaterthan_5k]

question
How can I plot the variable filter_for_cases_greaterthan_5k against in the countries. I have tried severally, learned a lot about data cleaning in the process but I think it's just my syntax that is wrong.

I can find my way around seaborn, I can filter the data (as seen in the screenshot). I don't know how to plot the data. I am desperate to complete my first data science challenge. I don tey for this python thing small.
@ejiod, ibromodzi, mcemmy0z:

For a simple barplot, you can try this


# I'll like to take it from scratch so that others can learn
#import the necessary libraries i.e matplotlib, pandas etc..
import pandas
import matplotlib.pyplot as plt

# read your data using pandas and let's save it in covid dataframe
#filtering your data
cases_greater>5k = covid.loc[covid['Totalcases'] > 5000]

#Plotting.... I think this is what you need
#set your x and y axes or you can just use a line of code in your plot but let's try to break it down
x = cases_greater>5k['Countries']
y = cases_greater>5k['Totalcases']
plt.bar(x, y) # you can format your plot anyhow
plt.xticks(rotation = 90)
plt.show()

6 Likes

Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 11:53am On Apr 04, 2020
RealTrump:


Nice one bro. But you cannot tell when people were infected for two reasons.
1. Corona virus can stay in the body without you knowing. You might actually have been infected on a weekend, but you only got tested on a weekday. How would you fix this?
2. Testing could take a couple of days. Which means that someone who was tested on a weekend, let's say Sunday, could get the result on the weekday. How would you make your charts more reliable?

@mcemmy0z. I solved the initial problem I have n can now plot. My code was missing a tiny character, is was right all along. The next problem I have is with slicing. Too many countries taking up spaces. I will try to fix it on my own, otherwise i will come ask people here o.

@ibromodzi nice . i like the word "prophet" will check it out.







Pardon my use of words..... Saying that more cases get confirmed during weekdays is another way to put it which I think is better and more appropriate... Thanks for spotting that out.
Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 9:26am On Apr 04, 2020
I decided to drop this here since the other thread is not really active..... My forecast using Prophet
From the first fig, the number of confirmed cases is likely to go above 1000 in the next 30-50
From the second fig, people get infected mostly during week days with a sharp decline on Friday

2 Likes

Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 8:22pm On Apr 03, 2020
Chukwudaalu:
Abeg help me out Sir grin.
This is a picture of the code and empty graph. It plotted an empty graph. You can please put me through sad

You are dealing with a time series data sir. I do not know the insight you are trying to get by using bar chat... try using line chart instead...
Try this... I hope it does what you want

import pandas as pd
import matplotlib.pyplot as plt

filepath = 'covid.csv' #put your file path here
digits = pd.read_csv(filepath)
digits.set_index('Date', inplace = True)
digits.index = pd.to_datetime(digits.index) # this converts the date to datetime datatype
digits.plot() # you can design your chart anyhow you want
plt.show()

4 Likes

Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 10:05am On Apr 01, 2020
Chukwudaalu:
I wouldn't mind bro. I've sent you a private message.

Oops.... Email not active, check the updated one
Programming / Re: Covid 19 Data Science/analytics Challenge by ibromodzi: 8:57pm On Mar 31, 2020
Finally the number of confirmed cases as at 29/03 in our dear Africa

Programming / Re: Covid 19 Data Science/analytics Challenge by ibromodzi: 8:56pm On Mar 31, 2020
Still on the matter..... Comparing date rate and recovery rate in the most hit nations

1 Like

Programming / Re: Covid 19 Data Science/analytics Challenge by ibromodzi: 8:51pm On Mar 31, 2020
Ejiod:
Hey guys just catching up on the daily trend of covid 19, I felt this might a good opportunity for newbies and intermediates to get their hands dirty on data. Death cases keep spiking. Would wanna know if there is any insight that can be retrieved from the data....:
Underlying task is to create a dashboard either with tableau or powerBI....
Run deep analysis and plot charts with seaborn or matploltlib and plotly. If possible bokeh.
Then run a simple machine learning model on it.

for me I wanna create a running bar chart for this.

https://www.worldometers.info/coronavirus/

https://data.humdata.org/m/dataset/novel-coronavirus-2019-ncov-cases


Here is my solution using pandas and plotly…. no dashboard created yet though.

1 Like

Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 3:37pm On Mar 31, 2020
Chukwudaalu:
I've been working on the data I downloaded through the link you posted. I had to extract, and rearrange the needed data on Excel, then load the data using Pandas on python. But I'm currently stuck on visualizing the data with a chart using matplotlib. Been getting errors since, not giving up though. I successfully did the analysis on Excel. But I am currently working on analyzing it using matplotlib too.
I'm actually working on some other programming projects outside Data Science, reason for the delay. Thanks bro.

You could have used pandas for cleaning the data, it does it like magic... Matplotlib sucks for visualization, I used plotly for that, the only problem I'm having is saving my figures since it doesn't work like matplot and seaborn...

If you want to see my solution, I can drop the ipynb file in your mail.

1 Like

Programming / Re: Is Data Science Worth Learning by ibromodzi: 11:47am On Mar 28, 2020
Apcexchange:


thank you so much, I guess you just cleared me on this.
I have to focus on data analysis cos I just want a job for now, maybe later in the future I might decide to further

so for data analysis, after learning Python, which other language should follow or is Python enough to make a good data analyst.

I have started learning Python already using my android phone , I have understood some basics already. where do I go from here??
thanks in anticipation

There are two things that make up data analysis i.e the theoretical knowledge (statistics) and the technical aspect (tools used for data analysis). If you already have a sound knowledge of statistics, you can go ahead and pick any data analysis tools that best suit your taste.

Python is just one of those tools and whether it is enough for your analysis or not depends on your proficiency and the task you are using it for. There are a number of tools used by data analyst and python is just one of them. Excel, Power BI, Tableu, SQL, R, etc.... are just few of these tools (you can use google to know more about them and what they are best used for).

As with your own case, since you have understood the basics of python, you just have to master the libraries used for data analysis. I'll try to list them for you.....
Pandas
Numpy
Matplot
Seaborn
Plotly
Researchpy
Statsmodel etc...

You can as well sign up for basic statistics course online and learn it along with python.
Good luck!

1 Like

Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 6:11pm On Mar 27, 2020
Ejiod:
For those on the challenge.
Kindly use this dataset

https://data.humdata.org/m/dataset/novel-coronavirus-2019-ncov-cases

And try getting data from here too
Corona.help

I suggest you create a new thread for the challenge boss so that we don't mess up this place...

1 Like

Programming / Re: Is Data Science Worth Learning by ibromodzi: 3:18pm On Mar 27, 2020
Apcexchange:
after series of research, I decided to chose DS over web development but I'm still confused on which path to focus on in DS
data analyst
AI
ML
DL
and so many of them,
can someone throw more lights on this to enable some of chose area to specialize on


I think this is more of a personal decision and the goal you intend to achieve after attaining a good level of competence in any of these subfields of data science. Do you want to learn the skill for the purpose of research or you are planning to seek for job with it?

While all these are subfields under data science, data analysis in my opinion can exist independently without going further in the pipeline of DS. I mean you can just build your skills around data analysis alone and seek proficiency in it and land yourself a job.

However, you can't learn about deep learning without first learning about ML (both DL and ML make up AI), whereas you may decide to start your DS career from ML without learning about data analysis (although you must be good in EDA to make a good ML engineer).

In addition, ML is still a type of data analysis known as predictive analytics whereas data analysis is only concerned about descriptive and inferential analytics. Every subfield of data science uses different approaches to gain insight from data and the approach you use all depends on your goal...

Make your findings and go for what best suits your need. If you just want to be a data analyst, go for it but if your goal is to become a data scientist, you have to combine all these subfields together....

Finally, I think I should share my journey so far in DS with you. I started learning python with the aim of using it for data analysis alone (learned the basics including OOP in less than two weeks), then I started mastering the libraries for analysis and after practicing with a number of data sets, I decided to go into ML because I'm this kind of person with an inquisitive mind. Currently I'm dealing DL and I hope to combine blockchain and AI in future for the purpose of research....

3 Likes

Programming / Re: Is Data Science Worth Learning by ibromodzi: 3:58pm On Mar 16, 2020
ZackOF:
I must say bro, I really find it useful. Thanks for taking your time to put this down. I really appreciate it. I used to think studying economics was a bad Idea, but you really changed my mind and inspire me. Am going for my NYSC program this april and am planning on dedicating this period to learning DS. But what do you think about job prospects for DS in Nigeria?

I'm glad you are inspired....

You can check out this thread concerning the job prospects in Nigeria https://www.nairaland.com/5485400/chronicle-data-scientist-analyst

1 Like

Programming / Re: Is Data Science Worth Learning by ibromodzi: 7:12am On Mar 13, 2020
ZackOF:
hey bro, am also regretting studying economics instead of CS. The thing dey pain me die. I just graduated recently and i think i will be focusing on programming since that's my initial goal. With regards to what you said about Nigerian schools teaching old stuff, it is actually true. Most of what are being taught in schools are old and outdated and that's why they keep producing below average graduates. Like grandlord, am having a tough time choosing between web development and data science. Web development is so so easy these days and rampant. Almost everbody wanna become a web developer. I tire sef

You have no reason to regret studying a course like economics, rather you should see it as an advantage to leverage on.

Regarding your background, I think data science should be your best bet. Dedicate like 6-12 months to it and you'll never regret combining data science with economics.

Your expertise in your primary field of study is an invaluable asset to you that'll make you stand out if eventually you venture into programming...

I'm a student of optometry with a great passion for DS and AI. I used to regret studying my course instead of computer science untill one of my lecturers explained what I just wrote above to me....

I hope you find it useful....

9 Likes 1 Share

Programming / Re: Chronicle Of A Data Scientist/analyst by ibromodzi: 9:15am On Mar 05, 2020
Pgltm:
This is it
Have you been able to solve this? If Not, mail me the data and the question..... ibromodzi@gmail.com
Programming / Re: Looking For A Data Scientist To Help Me With These Questions by ibromodzi: 3:47pm On Feb 24, 2020
Pgltm:
Please I need A data scientist that is good in panda for paid assistance in some assignments in my data science course in cousera. I don't mind paying please.

Let's see the problems here. I'm sure people will be willing to help..
Investment / Re: This Nairaland Rule Is Uninformed And Shows Lack Of Understanding Of New Trends by ibromodzi: 9:42am On Feb 16, 2020
SavageResponse:


I'm open to learning new things and will also consider new ideas.

But as far as I'm concerned MLM, crypto and other elaborate money doubling schemes are largely scams and should not be promoted!

The fact that they make the most money as you claim does not necessarily make them less unwholesome

You obviously know nothing about cryptocurrency for you to call it a "money doubling" scheme. The crypto space is full of a lot of potentials and that's why you see people like Mark of Facebook proposing their own coin(Libra).
Countries like China, Russia and recently, Iran are already looking into the potentials of crpto and blockchain and you are here calling it a scam.
Investment / Re: This Nairaland Rule Is Uninformed And Shows Lack Of Understanding Of New Trends by ibromodzi: 9:36am On Feb 16, 2020
SavageResponse:


I'm open to learning new things and will also consider new ideas.

But as far as I'm concerned MLM, crypto and other elaborate money doubling schemes are largely scams and should not be promoted!

The fact that they make the most money as you claim does not necessarily make them less unwholesome

You obviously know nothing about cryptocurrency for y
Programming / Re: Do You Think I Can Cope With Programming Being An Anatomical Student? by ibromodzi: 7:39am On Jan 07, 2020
Harkstetunz:
Hello Nairalanders.


I am a student of anatomy and I have a penchant for games. I have always had dreams to create games and apps that will enhance the better understanding of the human anatomy for anatomical and medical students.
The issue with me is that I don't have a knowledge of programming and I've been planning to enroll myself in a programming class.
Do you guys think I'll be able to cope because I have no basic knowledge of it and what app or programming app do you think I can begin with?
Please help a brother!



cc: javanian
cc: kodewrita
cc: lordZOUGA





The course you study doesn't matter. I'm a final year student of optometry and I have been writing codes since my 300 level days. I also know medical students and even doctors who are programmers.

2 Likes

Programming / Re: A Thread For Tutorial On Python Programming by ibromodzi: 7:33am On Jan 07, 2020
eddy1759:
The WhatsApp group is still on for python programmer,
Drop your number so that you can be added

08164402922
Politics / Re: Arewa Twitter Bashes Couple For This Pre Wedding Photo by ibromodzi: 6:29pm On Jan 03, 2020
Programming / Re: What Does It Take To Deploy A Machine Learning Model As Mobile App? by ibromodzi: 10:31am On Jan 03, 2020
Akorede26:
Can it not work using kivy?

I'm not sure
Programming / Re: What Does It Take To Deploy A Machine Learning Model As Mobile App? by ibromodzi: 10:30am On Jan 03, 2020
EngrBouss:
Have a mobile app running machine learning like so. Object detection to be precise

How did you achieve that please. I'll be very glad if you can as well share the github repo to the code
Programming / What Does It Take To Deploy A Machine Learning Model As Mobile App? by ibromodzi: 7:35pm On Jan 02, 2020
Hello machine learning experts in the house! Recently, a client requested that I build a model using python and deploy it as a mobile application. At first, I thought this could be done without much stress but I think I was wrong. I have tried to make findings on the simplest way to go about this but I have not gotten a straightforward solution. I later suggested to the client to let us use web app instead.

Is there anyway to go about this?
Programming / Re: Are These Specs Good Enough For Python? by ibromodzi: 7:08pm On Dec 27, 2019
You are good to go
Adverts / Re: Upwork Account Approval, Proposal Tips & Profile Revamp Guides by ibromodzi: 12:41pm On Dec 25, 2019
Please how can I get my account approved?
Programming / Re: I'm Getting An Error While I Run This Python Codes by ibromodzi: 2:27pm On Dec 07, 2019
ibromodzi:
Hello great programmers, I'm new to pandas so I just downloaded this data set from Kaggle.com to practice with. However the program throws an error saying Object DataFrame is not callable. The dataset can be found here.
Here is the code

import pandas as pd
import numpy as np
import researchpy as rp
import scipy.stats
import matplotlib.pyplot as plt

un = pd.read_csv(r"C:\Users\ibrom\Documents\SAMPLE DATASET\Military Expenditure.csv"wink
#To know the country with highest spending
#first create a new column with total spending over the years

un['Total Spending'] = un.iloc[:, 5:64].sum(axis=1)

#sorting values to know the country with the highest and least spending
un.sort_values('Total Spending', ascending = False)

#filtering based on Type of region
man = rp.summary_cat(un['Type'])
man.reset_index()

#grouyping the countries into continents and assessing their military spending over the year
def continent(country):
if country in ('Algeria','Angola','Benin','Botswana','Burkina Faso','Burundi',
'Cabo Verde','Cameroon',
'Central African Republic','Chad','Comoros',
'Congo, Democratic Republic of the','Congo, Republic of the','Cote d\'Ivoire','Djibouti','Egypt',
'Equatorial Guinea','Eritrea','Eswatini',' Ethiopia', 'Gabon','Gambia','Ghana',
'Guinea',"Guinea-Bissau", 'Kenya', 'Lesotho', 'Liberia', 'Libya', 'Madagascar', 'Malawi', 'Mali',
'Mauritania', 'Mauritius', 'Morocco', 'Mozambique', 'Namibia', 'Niger', 'Nigeria', 'Rwanda',
'Sao Tome and Principe' 'Senegal', 'Seychelles', 'Sierra Leone', 'Somalia', 'South Africa', 'South Sudan',
'Sudan', 'Tanzania', 'Togo', 'Tunisia', 'Uganda', 'Zambia', 'Zimbabwe'):
return "Africa"
elif country in ('Afghanistan', 'Armenia', 'Azerbaijan', 'Bahrain', 'Bangladesh', 'Bhutan', 'Brunei'
'Cambodia', 'China', 'Cyprus', 'Georgia' 'India' 'Indonesia' 'Iran' 'Iraq', 'Israel' 'Japan Jordan',
'Kazakhstan', 'Kuwait', 'Kyrgyzstan', 'Laos','Lebanon', 'Malaysia', 'Maldives', 'Mongolia',
'Myanmar (formerly Burma)', 'Nepal','North Korea', 'Oman', 'Pakistan', 'Palestine', 'Philippines',
'Qatar', 'Russia', 'Saudi Arabia', 'Singapore', 'South Korea', 'Sri Lanka', 'Syria', 'Taiwan',
'Tajikistan', 'Thailand', 'Timor-Leste','Turkey','Turkmenistan', 'United Arab Emirates (UAE)',
'Uzbekistan', 'Vietnam', 'Yemen, Rep'):
return "Asia"
elif country in ('Albania', 'Andorra', 'Armenia', 'Austria', 'Azerbaijan', 'Belarus', 'Belgium', 'Bosnia and Herzegovina',
'Bulgaria', 'Croatia', 'Cyprus', 'Czechia', 'Denmark', 'Estonia', 'Finland', 'France', 'Georgia',
'Germany', 'Greece', 'Hungary', 'Iceland', 'Ireland', 'Italy', 'Kazakhstan', 'Kosovo', 'Latvia',
'Liechtenstein', 'Lithuania', 'Luxembourg', 'Malta', 'Moldova', 'Monaco', 'Montenegro',
'Netherlands', 'North Macedonia', 'Norway', 'Poland', 'Portugal','Romania' 'Russia' 'San Marino' 'Serbia',
'Slovakia', 'Slovenia', 'Spain', 'Sweden', 'Switzerland', 'Turkey', 'Ukraine', 'United Kingdom',
'Vatican City'):
return "Europe"
elif country in ('Antigua and Barbuda', 'Bahamas', 'Barbados', 'Belize Canada', 'Costa Rica', 'Cuba',
'Dominica Dominican Republic', 'El Salvador', 'Grenada', 'Guatemala', 'Haiti', 'Honduras', 'Jamaica',
'Mexico', 'Nicaragua', 'Panama', 'Saint Kitts and Nevis', 'Saint Lucia', 'Saint Vincent and the Grenadines',
'Trinidad and Tobago', 'United States'):
return "North America"
elif country in ('Argentina', 'Bolivia', 'Brazil', 'Chile', 'Colombia', 'Ecuador', 'Guyana', 'Paraguay', 'Peru',
'Suriname', 'Uruguay', 'United States', 'Venezuela'):
return "South America"
elif country in ('Australia', 'Fiji', 'Kiribati', 'Marshall', 'Islands', 'Micronesia', 'Nauru', 'New Zealand',
'Palau', 'Papua New Guinea', 'Samoa', 'Solomon Islands', 'Tonga', 'Tuvalu', 'Vanuatu'):
return "Australia / Oceania"

# Creating the new column for continent
un['Continent'] = un['Name'].apply(continent)

# Create two new dataframes which are subsets of the original data
Europe = un(un['Continent'] == 'Europe')
Europe.reset_index(inplace = True)
NorthAmericaa = un(un['Continent'] == 'North America')

Problem solved. Thanks!

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (of 11 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 97
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.