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_18 = dataset[dataset['age'] == 18]
dataset_18_M = dataset_18[dataset_18['gender'] == 'male']
dataset_18_F = dataset_18[dataset_18['gender'] == 'female']
print(dataset_18_F.shape)
print(dataset_18_M.shape)