Javatpoint Logo
Javatpoint Logo

Career Aspirations Survey Analysis using Python

A career ambitions survey provides information on people's job objectives and aspirations. It contains inquiries about values, long-term objectives, ideal working conditions, and hobbies. This tutorial is for you if you want to understand how to analyze the information obtained from a survey. In this tutorial, you will learn how to analyze career aspirations survey information using Python.

One of the greatest methods to get information and learn the answers to queries like why people leave our website is by conducting surveys and polls. Or what appeals to people about this candidate? But it might not be easy to analyze survey information!

In this lesson, we'll go through how to use Python to analyze survey information. But don't panic - you can manage this even if you've barely written code before! We're going to proceed gradually.

The 2019-2020 developer survey information from StackOverflow will be examined for this study because it is a sizable and current survey information set available to the public and has been appropriately anonymized. However, these methods may be used with nearly any survey information.

This tutorial is for you if you want to understand how to analyze the information obtained from a survey. In this tutorial, you will learn how to analyze career aspirations survey information using Python.

Analysis of the Career Aspirations Survey

A career ambitions survey's results provide information that aids in understanding a person's:

  1. Enduring objectives
  2. Desired working conditions
  3. Desired position and duties
  4. Values and interests

On Kaggle, I discovered the perfect dataset, which consists of inquiries predicated on all the facts required to comprehend Genz's professional objectives.

Survey Responses as a CSV File

We need our survey information in the form of a.csv file so that we may analyze it using code. You can get the latest edition of the StackOverflow Programmer poll information here, and it already comes as formatted as a CSV file (inside a.zip file) if you'd want to follow along with this tutorial using the same information set we're using.

Here's how to obtain your information in CSV format if you want to begin working with it:

  • If you conducted an online survey, your survey provider likely allows you to download a CSV file immediately. You can download a CSV file containing all your survey replies from Typeform and numerous other online survey programs, making things quite easy.
  • Your survey information will be accessible online as a Google Sheet if you utilize Google Forms to conduct the survey. To download your information in CSV format, go to the Google Sheets interface, choose File > Download, and then choose Comma-separated values (.csv, current sheet).
  • You can save spreadsheets from Excel or any other spreadsheet program into CSV files if you have acquired your information in another method but have it in spreadsheet format. You should select File > Save As in Excel. Select CSV (Comma delimited) in the Save as type: area, and then click Save. The method should be like other spreadsheet programs.

You should check the format of your CSV file by opening it in spreadsheet software before continuing. The analysis will be the simplest if the spreadsheet is organized with questions in the initial column and responder responses in each row after that. It's ideal for removing any unnecessary rows from your information at the top, for instance, before continuing so that your survey questions appear in the first row and each respondent's response appears in the following row.

Career Aspirations Survey Analysis using Python Source Code with Explanation

Let's begin the analysis of the career ambitions survey by importing the dataset and the required Python libraries:

Source Code Snippet

Output:

  Your Current Country. Your Current Zip Code / Pin Code Your Gender  \
0                 India                            73005        Female   
1                 India                            51129       female   
2                 India                            13106      male   
3                 India                            83003        female   
4                 India                            01019      male   
  Which of the following influences your professional objectives the most? ?  \
0 individuals have improved the state of the planet.                              
1 individual who improved the state of the planet                              
2 Online social networking sites like LinkedIn                              
3 Friends and acquaintances that are not relatives                              
4 influential people with successful careers                              
  Would you unquestionably seek a tutorialgraduate degree or further education outside of India? If if you had to finance it yourself.  \
0 Yes, I'll work to earn that and do that.                                                                         
1 No, but I would do it if someone could cover the expense.
2 Yes, I will earn money to accomplish it.                                                                         
3. No, but I would if a person could cover the expense.     
4. No, but I would pay the price if someone could.                                                                         
  How probable is it that you'll be employed by one company for at least three years? ?  \
0  This will be difficult, but if it is the right thing to do, 
1  Will work for at least three years                        
2 It will be challenging, but if done correctly,                         
3  Will work for at least three years                        
  Would you join a company whose mission wasn't clearly clear and tutorialed online?  
0                                                 No                                       
1                                                 No                                       
2                                                Yes                                       
3                                                 No                                       
4                                                 No                                       
How likely is it that you would work for a company whose objectives diverge from what it does in public or even from what it produces?
0 A score won't be effective for them.                                                                      
1 will NOT be employed by them                                                                      

2 Will be employed by them in quantity                                                                    
3 Will NOT be useful to them; the number 
4 WON'T be useful to them                                                                   
   How probable is it that you would work for an organization whose goal is not to have a social impact?  \
0                                                  4                                       
1                                                  1                                       
2                                                  7                                       
3                                                  6                                       
4                                                  5                                       

  What type of work atmosphere do you prefer?  \
0 Fully remote, with no possibility of visiting offices        
1 Fully remote with the ability to roam wherever and whenever.         
2 Hybrid Workplace with fewer than 15 days.         
3 Hybrid Workplace Environment with 15 days or fewer.         
4 Completely remote with flexibility in when and where to travel.         

   Which of these employers are you interested in working for?  \
0 Employer who encourages learning and makes it possible... 
1 Employer who pushes your limitations by making it possible... 
2 Employer who pushes your limits by making it possible... 
3 Employer who pushes your limits by making it possible... 
4 Employer who encourages learning and makes it possible.
    

  Which kind of educational setting are you most likely to work in?  \
0 Programmes for expert or instructor-led learning, trial...                          
1 One Independent Learning Portal, an Expert or an Instructor.                          
2 independent learning portals, trial-and-error, and b.                          
3 Trial Programmes for Instructor or Expert Learning.                          
4 Learn by observing these 4 Independent Learning Portals.                          

  Which of the below careers looks close to your Aspirational job ?  \
1 There are no commercial activities in any organization, and there is one business operation in each organization, respectively.                   
2 Manage and lead full-cycle projects or produce.                   
3. Management of company operations in any organization.                   
4 Education at any of the institutes/online or Of.                   

  What kind of manager would you be if you didn't check your watch?  \
0 Manager who defines expectations and establishes a                      
1 Supervisor who makes sense of what is generally anticipated sets a . . .                      
2 Director who makes sense of what is generally anticipated sets a . . .                      
3 A manager who sets a standard and lays out the expectations                      
4 A manager who specifies what is expected and establishes a

  Which of the following setup you would like to work ?  
0 Work alone, Work with 2 to 3 individuals in my group. . .     
1 Work with 5 to 6 individuals in my group. . . 
2 Work with 2 to 3 individuals in my group, Work with . . .     
3 Work with 2 to 3 individuals in my group. . .
4 Work with 2 to 3 individuals in my group, Work with . . .

The survey's questions are listed in the dataset's column names, while generation z respondents' responses are listed in the rows. Let's examine each of the survey's inquiries:

Source Code Snippet

Output:

Index(['Your Current Country.', 'Your Current Zip Code / Pin Code',
       'Your Gender',
       'Which of the following influences your professional objectives the most? ?',
       'Would you unquestionably seek a tutorialgraduate degree or further education outside of India? If if you had to finance it yourself.',
       'How probable is it that you'll be employed by one company for at least three years? ?',
       'Would you join a company whose mission wasn't clearly clear and tutorialed online?.',
       'How probable is it that you would work for an organization whose goals conflict with what it does publicly or even with what it produces? ?',
       'How probable is it that you would work for an organization whose goal is not to have a social impact?',
       'What type of work atmosphere do you prefer?.',
       'Which of these employers are you interested in working for?.',
       'Which kind of educational setting are you most likely to work in?',
       'Which of the below careers looks close to your Aspirational job ?',
       'What kind of manager would you be if you didn't check your watch?',
       'Which of the following setup you would like to work ?'],
      dtype = 'object')

Let's now examine each poll question individually. Let us begin by examining the present nation of those who responded to the job ambitions survey:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Therefore, 98.3% of the respondents who provided survey responses are Indian. Let's now examine the variables affecting Genz's professional aspirations:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. Parents influence 33.6% of Gen Zers.
  2. The people who have improved the world have an impact of 24.3%.
  3. While not family, 16.6% of persons in their circle have an impact on them.
  4. Influencers with lucrative occupations have an impact on 15.7% of people.

Let's now examine how many plans to use their money to seek further education outside of India:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. 8% of people think that using their own money to pay for higher education outside of India
  2. 7% of Indians don't wish to attend higher education abroad
  3. Only 25.5% of students who can afford the fee can pursue higher education outside of India.

Let's now examine the likelihood that Genz will be employed by the same company for at least three years:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. 1% of people find it difficult, but only if the firm is strong.
  2. 6% had no issues continuing to work for a minimum of three years.
  3. and just 7.23% of respondents indicate that they will not work for as long as possible.

Let's now examine if they are feasible for a business whose aim is unclear:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart: 66.8% reject it; 2. 33.2% have no objections; and let's now examine if Genz will join an organization whose goals conflict with what it does:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. 2% of respondents reject it. 2. 32.8% have no objections.
  2. On a scale of 1 to 10, how probable is it that Genz will work for an organization whose goal is to have a minimal social impact?

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

Most of the individuals dislike working for organizations whose goal is to have little social influence. Let us now examine Genz's ideal working environment:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. 5% of Gen Z respondents desire the flexibility to travel and work remotely.
  2. A hybrid work environment with fewer than 15 days per month spent at the office is desired by 24.3% of Gen Z.
  3. Genz, 21.3%, are content with their days at Work.

Let's now examine the kind of companies that Genz is looking to collaborate with:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. 1% of Gen Z prefer jobs that encourage learning environments and challenge their limitations, rewarding them in the end.
  2. 9% desire employment with companies that value a learning atmosphere.
  3. 3% desire a company that promotes a fulfilling workplace.

Let's now examine the kind of educational setting where the Genz are probably going to work:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Observations from the above pie chart:

  1. Self-paced learning portals and instructor-led programs are desired by 25.1% of respondents.
  2. 1% favor inside-the-company side projects that include trial-and-error learning from instructors or experts.
  3. 4% desire a program with an instructor or specialist and want to pick up knowledge through watching others.
  4. 2% desire a self-paced learning portal and like to pick up knowledge from watching others.

Let's now examine the kind of supervisors Genz is looking for:

Source Code Snippet

Output:

Career Aspirations Survey Analysis using Python

Consolidated Code for Netflix Data Analysis using Python

Output:

Career Aspirations Survey Analysis using Python

Most Gen Z prefer managers who can communicate objectives, create goals, and support their accomplishments.

So this is how you would use Python to analyze the information gathered from a survey.

Summary

So here is how Python can be used to analyze a survey of career ambitions. The objectives and aspirations of people concerning their professions are gathered through a career aspirations survey. It contains inquiries about values, long-term objectives, ideal working conditions, and hobbies. I hope you enjoyed reading this tutorial on using Python to analyze the Career Aspirations Survey. Some of the fundamental techniques for using Python to analyze survey information have been addressed in this session. Even though it's a lengthy read, you'll see that we've actually only utilized a small amount of code. Performing this kind of study is really fairly rapid if you get the hang of it!

We've obviously barely begun to scrape the surface here. With such a huge information collection, there is a tonne more that can be done. Here are some inquiries that you may try to respond to if you're seeking a challenge.

The answers above show us which languages are most commonly used by all developers who participated in the study; however, a different question on the same poll distinguishes other occupations, such as information analysts, information scientists, and others.







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA