text_html_output_1.png
import pandas as pd

import numpy as np
import pandas as pd
dataset = pd.read_csv('../input/pseudo_facebook.tsv', sep='\t')

dataset.shape

data_age1 = dataset.groupby('age').mean()

datacount = dataset.groupby('age').count()
datacount = datacount.reset_index()
data1000 = datacount[datacount['tenure'] >= 1000]

dataset_gender_male = dataset[dataset['gender'] == 'male']
dataset_gender_female = dataset[dataset['gender'] == 'female']

dataset_gender_male.shape

dataset_gender_female.shape

print(dataset_gender_male.mobile_likes.sum())
print(dataset_gender_male.www_likes.sum())
print(dataset_gender_female.mobile_likes.sum())
print(dataset_gender_female.www_likes.sum())