text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

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()

data_age1.reset_index(inplace=True)

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

dataset_1k = data_age1.loc[data_age1['age'].isin(data1000['age'])]
dataset_1k[dataset_1k['tenure'] == dataset_1k['tenure'].max()]

dataset_1k[dataset_1k['friend_count'] == dataset_1k['friend_count'].max()]