Social Media Platforms Project - Ipynb - Colaboratory

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

1/9/22, 5:04 PM Social media platforms project.

ipynb - Colaboratory

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 1/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

STUDENT NAMES
STUDENT 1 : PRATIK THOKAL
STUDENT 2 : TEJAS TADKA
STUDENT 3 : MOHIT BHAWLE
CLASS : TYBCS

SOCIAL SURVEY PROJECT -


TOPIC : MOST POPULAR SOCIAL MEDIA PLATFORM

ACKNOWLEDGEMENT
I would like to express my sincere thanks and gratitude to my teacher for letting me work on this
project. I am very grateful to her for her support and guidance in completing this project.

I am thankful to my parents as well. I was able to successfully complete this project with the
help of their Humble support. I am also thankful for the support of the department of Computer
Science of Ahmednagar College for the usefull project books and also for their guidance and
scholarly advice imparted throughout this project. And Finally, I would like to thank all of those
who have directly or indirectly got involved in the completion of this project.

CONTENT

Introduction

Data Description
Aim
Data Organisation and Presentation

Data Cleaning
Data Preprocessing
Graphical Visualization
Statistical Data Analysis

Descriptive Data Analysis


Inferential Data Analysis
Conclusion
References
Questionnaire
Raw Data

INTRODUCTION

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 2/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

Now a days As social media has vastly spread worldwide, Among youth, elders, students and
everyone around us it has became a necessity for all of them. Social Media has became much
more popular than the traditional media due to the various types of social media platforms.
Competition among this platforms are highly increasing in day by day life. And This research
project survey is to analyse the responses and feedback of people with different ages, on which
is the most popular social media Platform in todays world.

Total responses Received : 31


Software Used : PYTHON
Variables:

1. Age
2. Time
3. No. of Accounts(per person)
4. social media platforms

AIM
To find which is the most popular social media platform.

Research Question/Purpose:
Graphical visualization of survey data. Analysis and interpretation of the data (descriptive)
Which is the most popular social media platform

Data Collection:
The data collection process includes random sampling and surveying individuals directly
through an online questionnaire. The sample collected includes people who are active on social
media platforms. Who can provide good responses as being the users of most of the Social
Media Platforms.

DATA VISUALIZATION:

from google.colab import files


data = files.upload()

Choose Files No file chosen Upload widget is only available when the cell has been
executed in the current browser session. Please rerun this cell to enable.
Saving Most Popular Social Media Platform (Responses) - Form responses 1.csv to Most

import pandas as pd
data = pd.read_csv("Most Popular Social Media Platform (Responses) - Form respo

AGE DISTRIBUTION

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 3/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

data1 = {'Age':pd.Series([17,18,19,20,21,22,23,24,25,28,32]),
'count':pd.Series([1,1,2,13,5,1,2,1,3,1,1])
}
d=pd.DataFrame(data1)
d

Age count

0 17 1

1 18 1

2 19 2

3 20 13

4 21 5

5 22 1

6 23 2

7 24 1

8 25 3

9 28 1

10 32 1

import matplotlib.pyplot as plt


a=data['Age']
ax=plt.subplots(1,1,figsize=(10,6))
plt.hist(a,edgecolor='k',color='b')
plt.show()

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 4/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

INTERPRETATION:
As it can be seen in above histogram that majority of the people using social media platforms
are youngsters of age 20 and other people using social meida are of diffrent ages and are in
between the age of 18 to 30

PIE REPRESENTATION FOR TIME SPEND ON SOCIAL MEDIA:

import matplotlib.pyplot as plt

labels = ['less than 30 minutes','30-60 minutes','1-2 hours','2-3 hours']


sections = [9.7,41.9,32.3,16.1,]
colors = ['b', 'r', 'y','g']

plt.pie(sections, labels=labels, colors=colors,


startangle=0,
autopct = '%1.2f%%')

plt.axis('equal') # Try commenting this out.


plt.title('Time spend on Social Media platforms')
plt.show()

INTERPRETATION

Through our survey project and From the above pie diagram it can be seen that maximum
number of people about 41.90% spend 30 to 60 minutes of their day on their social media
platform and 32.30% of people use social media platforms for 1-2 hours. 16.10% percent of
people uses social media for 2-3 hours. and the remaining 9.70% of people use social media for
less than 30 minutes

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 5/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

It can be said that most of the people use social media for 30 to 60 minutes from the given pie
diagram.

COUNT PLOT FOR NO. OF SOCIAL MEDIA ACCOUNTS


This is a count plot for the type of devices used for social media platforms

k = {'No. of Social Media Accounts':pd.Series([1,2,3,4,5]),


'count':pd.Series([5,9,3,5,9])
}
d=pd.DataFrame(k)
d

No. of Social Media Accounts count

0 1 5

1 2 9

2 3 3

3 4 5

4 5 9

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.countplot('Q.3. How many social media accounts do you have ?',data=data)
plt.title("No of accounts")
plt.show()

/usr/local/lib/python3.7/dist-packages/seaborn/_decorators.py:43: FutureWarning: Pas


FutureWarning

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 6/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

INTERPRETATION
From above count plot it can be seen that most of the people has 2 or 5 social media accounts.
Only 5 people uses 1 social media account and 26 people uses more than 1 social media
account So it can be said that people uses more than 1 social media accounts.

MARKER REPRESENTATION FOR NO. OF SOCIAL MEDIA ACCOUNTS


Adding markers to a line plot can be a useful way to distinguish multiple lines or to highlight
particular data points. ... Include a marker symbol in the line-specifi cation input argument

import numpy as np
ypoints = np.array(data['Q.3. How many social media accounts do you have ?'])
plt.title("No. of Social media accounts")
plt.plot(ypoints,marker='o',mfc='r')

[<matplotlib.lines.Line2D at 0x7f6c277b6b50>]

INTERPRETATION:
The above data is represented by markers From above graph we can see that their are 9 marker
for 5, which indicates that 9 people have 5 social media account and 1 has 5 markers so it
indicates that 5 people use 1 social media account.

DISCRIPTIVE DATA ANALYSIS

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
data= pd.read_csv("Most Popular Social Media Platform (Responses) - Form respon
data.shape

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 7/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

(31, 25)

data.describe()

Q.13. Q.13. Q.1


Q.13. Which Which Which Whi
Q.12.How social social social soci
Q.3. How
Many media app media app media app media a
many
members is most is most is most is mo
social
of your useful and useful and useful and useful a
Age media
family productive productive productive producti
accounts
uses in daily in daily in daily in dai
do you
social basis? Give basis? basis? basi
have ?
media? Ranks. Give Give Gi
[Instagram] Ranks. Ranks. Rank
[Facebook] [Snapchat] [Whatsap

count 31.000000 31.000000 31.000000 31.000000 31.000000 31.000000 31.0000

mean 21.451613 3.129032 2.548387 2.419355 2.161290 2.967742 2.6129

std 3.031377 1.521883 1.150035 1.565763 1.392762 1.642840 1.4300

min 17.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.0000

25% 20.000000 2.000000 2.000000 1.000000 1.000000 1.000000 1.0000

50% 20.000000 3.000000 2.000000 2.000000 2.000000 3.000000 3.0000

75% 22.500000 5.000000 3.000000 4.000000 3.000000 5.000000 4.0000

max 32.000000 5.000000 5.000000 5.000000 5.000000 5.000000 5.0000

import numpy as np

import pandas as pd
data = pd.read_csv('Most Popular Social Media Platform (Responses) - Form respo
Age = np.array(data['Age'])
print(Age)

[20 20 20 21 32 22 20 21 20 25 20 21 19 20 20 25 28 21 18 17 25 23 21 20
20 20 24 20 20 19 23]

Here we are going to take two sample Age and Priority.

np.mean(data['Age'])

21.451612903225808

np.std(data['Age'])

2.982083161011501

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 8/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

We find the mean and standard devation of Sample 1


i.e Age. mean=21.451612903225808
Standard Deviation =2.982083161011501

np.mean(data['Q.3. How many social media accounts do you have ?'])

3.129032258064516

np.std(data['Q.3. How many social media accounts do you have ?'])

1.4971356626931993

We find the mean and standard devation of Sample 1


i.e Age. mean=3.129032258064516
Standard Deviation =1.4971356626931993

According to the Sample ,we claculate the T_TEST

MOST POPULAR SOCIAL MEDIA PLATFORM

data1 = {'Social Media Platform':pd.Series(['Youtube','Facebook','Instagram','W


'no. of people':pd.Series([2,11,14,2,2,0])
}
d=pd.DataFrame(data1)
d

Social Media Platform no. of people

0 Youtube 2

1 Facebook 11

2 Instagram 14

3 Whatsapp 2

4 Twitter 2

5 Snapchat 0

import matplotlib.pyplot as plt

labels = ['Youtube','Facebook','Instagram','Whatsapp','Twitter','Snapchat']
sections = [2,11,14,2,2,0]
colors = ['b', 'r', 'y','g','c']

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 9/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

plt.pie(sections, labels=labels, colors=colors,


startangle=0,
autopct = '%1.2f%%')

plt.axis('equal') # Try commenting this out.


plt.title('which is the most popular Social Media platform')
plt.show()

INTERPRETATION
Above pie diagram shows the resposes from an online survey.
From above pie diagram it can be seen that how many peple think which is the most popular
social media platform.
From above pie diagram 0% of people who has taken part in survey uses snapchat. 6.45%
people uses youtube,6.5% people uses twitter, 6.45 people uses whatsapp.Facebook is used by
so many people 35.48% of people uses facebook it can be said that face is widely used. But
45.16% of people uses Instagram, which makes instagram the most popular social media
platform.

CONCLUSION
The data collect was the primary data collected through survey which we have conducted.
Graphical Visualizations : Histogram, Pie chart, Count plot, Marker Representation.

We have collected the data through the online survey by the help of google forms by taking the
feedback of the people whose age group is between 17 to 32. From the Above data it can be
concluded that The maximum people who use the social media are is between the of 18 to 26.
With the time variable we have collected the data and after the analysis it is concluded that
most of the people use social media for 30 to 60 minutes of their whole day and it can also vary
from person to person.
This report is about which is the most popular social media platform and after our analysis of
the data we have collected from the feedback of 31 people we got to know that most of the

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 10/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

people think that INSTAGRAM should be the most popular Social Media Platform because all of
them say that it usefull for marketing, Entertainment, and also we stay updated by Instagram.

REFERENCES
1. DATA COLLECTED FROM STUDENTS
2. GOOGLE COLABORATORY FUNCTIONS
3. MS EXCEL

QUESTIONNAIRE

print('Questionnaire')
data.info()

Questionnaire
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 31 entries, 0 to 30
Data columns (total 25 columns):
# Column
--- ------
0 Timestamp
1 Name
2 Gender
3 Age
4 Email ID
5 Occupation
6 Q.1.Which devices you use for social media?
7 Q.2. Which is the most popular social media platform ?
8 Q.3. How many social media accounts do you have ?
9 Q.4. Which Social Media Platform do you use the most ?
10 Q.5. Which age group uses social media most?
11 Q.6. How much time do you spend on your social media platform ?
12 Q.7.How often do you post on your social media platform ?
13 Q.8. Is checking social media the last thing you do before going to bed?
14 Q.9. What do you use social media platform for?
15 Q.10. Do you consider yourself addicted to your social media platform?
16 Q.11. How much percentage of worldwide population is on social media ? [Percen
17 Q.12.How Many members of your family uses social media?
18 Q.13. Which social media app is most useful and productive in daily basis? Give
19 Q.13. Which social media app is most useful and productive in daily basis? Give
20 Q.13. Which social media app is most useful and productive in daily basis? Give
21 Q.13. Which social media app is most useful and productive in daily basis? Give
22 Q.13. Which social media app is most useful and productive in daily basis? Give
23 Q.13. Which social media app is most useful and productive in daily basis? Give
24 Q.14. What do you think, which social media platform should be most popular? An
dtypes: int64(9), object(16)
memory usage: 6.2+ KB

RAW DATA:
https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 11/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 12/13
1/9/22, 5:04 PM Social media platforms project.ipynb - Colaboratory

https://colab.research.google.com/drive/1lVm_BEVCtEOU1nc4Vn4B84vNc86os3gM#scrollTo=_I-TkuOSuWTS&printMode=true 13/13

You might also like