<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
   Survived  SibSp  Parch
<ASSISTANT_TASK:>
Python Code:
import pandas as pd
df = pd.DataFrame({'Survived': [0,1,1,1,0],
                   'SibSp': [1,1,0,1,0],
                   'Parch': [0,0,0,0,1]})
import numpy as np
def g(df):
    family = np.where((df['SibSp'] + df['Parch']) >= 1 , 'Has Family', 'No Family')
    return df.groupby(family)['Survived'].mean()
result = g(df.copy())
<END_TASK>