{
  "id": 539789,
  "title": "Rename for Understanding",
  "url": "/competitions/child-mind-institute-problematic-internet-use/discussion/539789",
  "author_name": "juan pablo moreno cadena",
  "post_date": "2024-10-10T19:11:19.075000",
  "votes": 2,
  "comment_count": 0,
  "views": 0,
  "content": "<p><strong>A lifehack:</strong> Diving straight into the data can be kind of difficult because you may not really know much about the business. So, renaming all the variables based on your understanding is quite a useful tool to quickly construct your notebook and apply the techniques and ideas you have in mind. Once you develop the \"ability\" to memorize the dataset through experience, you can revert the names and just work with the usual terminology.</p>\n<p>That's an example:</p>\n<pre><code>Renamed_train = train.()\n\n#  \nRenamed_train.(={\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : \n}, inplace=)\n</code></pre>",
  "messages": [
    {
      "id": 3014004,
      "postDate": "2024-10-10T19:11:19.077Z",
      "content": "<p><strong>A lifehack:</strong> Diving straight into the data can be kind of difficult because you may not really know much about the business. So, renaming all the variables based on your understanding is quite a useful tool to quickly construct your notebook and apply the techniques and ideas you have in mind. Once you develop the \"ability\" to memorize the dataset through experience, you can revert the names and just work with the usual terminology.</p>\n<p>That's an example:</p>\n<pre><code>Renamed_train = train.()\n\n#  \nRenamed_train.(={\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : ,\n    : \n}, inplace=)\n</code></pre>",
      "rawMarkdown": "**A lifehack:** Diving straight into the data can be kind of difficult because you may not really know much about the business. So, renaming all the variables based on your understanding is quite a useful tool to quickly construct your notebook and apply the techniques and ideas you have in mind. Once you develop the \"ability\" to memorize the dataset through experience, you can revert the names and just work with the usual terminology.\n\nThat's an example:\n\n```\nRenamed_train = train.copy()\n\n# Rename columns\nRenamed_train.rename(columns={\n    'id': 'id',\n    'Basic_Demos-Enroll_Season': 'Enrollment_Season',\n    'Basic_Demos-Age': 'Age',\n    'Basic_Demos-Sex': 'Sex',\n    'CGAS-Season': 'Mental_State_Season',\n    'CGAS-CGAS_Score': 'Mental_State_Score',\n    'Physical-Season': 'Physical_Season',\n    'Physical-BMI': 'Body_mass_index',\n    'Physical-Height': 'Height',\n    'Physical-Weight': 'Weight',\n    'Physical-Waist_Circumference': 'Waist_Circumference',\n    'Physical-Diastolic_BP': 'Diastolic_Blood_Pressure',\n    'Physical-HeartRate': 'Heart_Rate',\n    'Physical-Systolic_BP': 'Systolic_Blood_Pressure',\n    'Fitness_Endurance-Season': 'Fitness_Endurance_Season',\n    'Fitness_Endurance-Max_Stage': 'Max_Stage',\n    'Fitness_Endurance-Time_Mins': 'Time_Mins',\n    'Fitness_Endurance-Time_Sec': 'Time_Sec',\n    'FGC-Season': 'School_fisical_test_Season',\n    'FGC-FGC_CU': 'School_fisical_test_abs',\n    'FGC-FGC_CU_Zone': 'School_fisical_test_abs_description',\n    'FGC-FGC_GSND': 'School_fisical_test_handgrip_non_dominant_hand',\n    'FGC-FGC_GSND_Zone': 'School_fisical_test_handgrip_non_dominant_hand_description',\n    'FGC-FGC_GSD': 'School_fisical_test_handgrip_dominant_hand',\n    'FGC-FGC_GSD_Zone': 'School_fisical_test_handgrip_dominant_hand_description',\n    'FGC-FGC_PU': 'School_fisical_test_push_up',\n    'FGC-FGC_PU_Zone': 'School_fisical_test_push_up_description',\n    'FGC-FGC_SRL': 'School_fisical_test_sit_and_reach_left',\n    'FGC-FGC_SRL_Zone': 'School_fisical_test_sit_and_reach_left_description',\n    'FGC-FGC_SRR': 'School_fisical_test_sit_and_reach_right',\n    'FGC-FGC_SRR_Zone': 'School_fisical_test_sit_and_reach_right_description',\n    'FGC-FGC_TL': 'School_fisical_test_trunk_lift',\n    'FGC-FGC_TL_Zone': 'School_fisical_test_trunk_lift_description',\n    'BIA-Season': 'Stat_biomass_Season',\n    'BIA-BIA_Activity_Level_num': 'Stat_biomass_Activity_Level_num',\n    'BIA-BIA_BMC': 'Stat_biomass_Bone_Mineral_Content',\n    'BIA-BIA_BMI': 'Stat_biomass_Body_Mass_Index',\n    'BIA-BIA_BMR': 'Stat_biomass_Basal_Metabolic_Rate',\n    'BIA-BIA_DEE': 'Stat_biomass_Daily_Eenergy_Expenditure',\n    'BIA-BIA_ECW': 'Stat_biomass_Extracellular_Water',\n    'BIA-BIA_FFM': 'Stat_biomass_Fat_Free_Mass',\n    'BIA-BIA_FFMI': 'Stat_biomass_Fat_Free_Mass_Index',\n    'BIA-BIA_FMI': 'Stat_biomass_Fat_Mass_Index',\n    'BIA-BIA_Fat': 'Stat_biomass_Fat_percentage',\n    'BIA-BIA_Frame_num': 'Stat_biomass_Body_Frame',\n    'BIA-BIA_ICW': 'Stat_biomass_Intracellular_Water',\n    'BIA-BIA_LDM': 'Stat_biomass_Lean_Dry_Mass',\n    'BIA-BIA_LST': 'Stat_biomass_Lean_Soft_Tissue',\n    'BIA-BIA_SMM': 'Stat_biomass_Skeletal_Muscle_Mass',\n    'BIA-BIA_TBW': 'Stat_biomass_Total_Body_Water',\n    'PAQ_A-Season': 'physical_questionnaire_Adolescent_Season',\n    'PAQ_A-PAQ_A_Total': 'physical_questionnaire_Adolescent_Total',\n    'PAQ_C-Season': 'physical_questionnaire_Children_Season',\n    'PAQ_C-PAQ_C_Total': 'physical_questionnaire_Children_Season',\n    'PCIAT-Season': 'Parent_Child_Internet_Addiction_Test_Season',\n    'PCIAT-PCIAT_01': 'Parent_Child_Internet_Addiction_Test_Q1',\n    'PCIAT-PCIAT_02': 'Parent_Child_Internet_Addiction_Test_Q2',\n    'PCIAT-PCIAT_03': 'Parent_Child_Internet_Addiction_Test_Q3',\n    'PCIAT-PCIAT_04': 'Parent_Child_Internet_Addiction_Test_Q4',\n    'PCIAT-PCIAT_05': 'Parent_Child_Internet_Addiction_Test_Q5',\n    'PCIAT-PCIAT_06': 'Parent_Child_Internet_Addiction_Test_Q6',\n    'PCIAT-PCIAT_07': 'Parent_Child_Internet_Addiction_Test_Q7',\n    'PCIAT-PCIAT_08': 'Parent_Child_Internet_Addiction_Test_Q8',\n    'PCIAT-PCIAT_09': 'Parent_Child_Internet_Addiction_Test_Q9',\n    'PCIAT-PCIAT_10': 'Parent_Child_Internet_Addiction_Test_Q10',\n    'PCIAT-PCIAT_11': 'Parent_Child_Internet_Addiction_Test_Q11',\n    'PCIAT-PCIAT_12': 'Parent_Child_Internet_Addiction_Test_Q12',\n    'PCIAT-PCIAT_13': 'Parent_Child_Internet_Addiction_Test_Q13',\n    'PCIAT-PCIAT_14': 'Parent_Child_Internet_Addiction_Test_Q14',\n    'PCIAT-PCIAT_15': 'Parent_Child_Internet_Addiction_Test_Q15',\n    'PCIAT-PCIAT_16': 'Parent_Child_Internet_Addiction_Test_Q16',\n    'PCIAT-PCIAT_17': 'Parent_Child_Internet_Addiction_Test_Q17',\n    'PCIAT-PCIAT_18': 'Parent_Child_Internet_Addiction_Test_Q18',\n    'PCIAT-PCIAT_19': 'Parent_Child_Internet_Addiction_Test_Q19',\n    'PCIAT-PCIAT_20': 'Parent_Child_Internet_Addiction_Test_Q20',\n    'PCIAT-PCIAT_Total': 'Parent_Child_Internet_Addiction_Test_Total',\n    'SDS-Season': 'Sleep_Disturbance_Scale_Season',\n    'SDS-SDS_Total_Raw': 'Sleep_Disturbance_Scale_Total_Raw_score',\n    'SDS-SDS_Total_T': 'Sleep_Disturbance_Scale_Total_T_score',\n    'PreInt_EduHx-Season': 'computer_internet_hours_Season',\n    'PreInt_EduHx-computerinternet_hoursday': 'computer_internet_hours_per_day',\n    'sii': 'Impact_Index'\n}, inplace=True)\n```",
      "votes": 2
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "3014004": "**A lifehack:** Diving straight into the data can be kind of difficult because you may not really know much about the business. So, renaming all the variables based on your understanding is quite a useful tool to quickly construct your notebook and apply the techniques and ideas you have in mind. Once you develop the \"ability\" to memorize the dataset through experience, you can revert the names and just work with the usual terminology.\n\nThat's an example:\n\n```\nRenamed_train = train.copy()\n\n# Rename columns\nRenamed_train.rename(columns={\n    'id': 'id',\n    'Basic_Demos-Enroll_Season': 'Enrollment_Season',\n    'Basic_Demos-Age': 'Age',\n    'Basic_Demos-Sex': 'Sex',\n    'CGAS-Season': 'Mental_State_Season',\n    'CGAS-CGAS_Score': 'Mental_State_Score',\n    'Physical-Season': 'Physical_Season',\n    'Physical-BMI': 'Body_mass_index',\n    'Physical-Height': 'Height',\n    'Physical-Weight': 'Weight',\n    'Physical-Waist_Circumference': 'Waist_Circumference',\n    'Physical-Diastolic_BP': 'Diastolic_Blood_Pressure',\n    'Physical-HeartRate': 'Heart_Rate',\n    'Physical-Systolic_BP': 'Systolic_Blood_Pressure',\n    'Fitness_Endurance-Season': 'Fitness_Endurance_Season',\n    'Fitness_Endurance-Max_Stage': 'Max_Stage',\n    'Fitness_Endurance-Time_Mins': 'Time_Mins',\n    'Fitness_Endurance-Time_Sec': 'Time_Sec',\n    'FGC-Season': 'School_fisical_test_Season',\n    'FGC-FGC_CU': 'School_fisical_test_abs',\n    'FGC-FGC_CU_Zone': 'School_fisical_test_abs_description',\n    'FGC-FGC_GSND': 'School_fisical_test_handgrip_non_dominant_hand',\n    'FGC-FGC_GSND_Zone': 'School_fisical_test_handgrip_non_dominant_hand_description',\n    'FGC-FGC_GSD': 'School_fisical_test_handgrip_dominant_hand',\n    'FGC-FGC_GSD_Zone': 'School_fisical_test_handgrip_dominant_hand_description',\n    'FGC-FGC_PU': 'School_fisical_test_push_up',\n    'FGC-FGC_PU_Zone': 'School_fisical_test_push_up_description',\n    'FGC-FGC_SRL': 'School_fisical_test_sit_and_reach_left',\n    'FGC-FGC_SRL_Zone': 'School_fisical_test_sit_and_reach_left_description',\n    'FGC-FGC_SRR': 'School_fisical_test_sit_and_reach_right',\n    'FGC-FGC_SRR_Zone': 'School_fisical_test_sit_and_reach_right_description',\n    'FGC-FGC_TL': 'School_fisical_test_trunk_lift',\n    'FGC-FGC_TL_Zone': 'School_fisical_test_trunk_lift_description',\n    'BIA-Season': 'Stat_biomass_Season',\n    'BIA-BIA_Activity_Level_num': 'Stat_biomass_Activity_Level_num',\n    'BIA-BIA_BMC': 'Stat_biomass_Bone_Mineral_Content',\n    'BIA-BIA_BMI': 'Stat_biomass_Body_Mass_Index',\n    'BIA-BIA_BMR': 'Stat_biomass_Basal_Metabolic_Rate',\n    'BIA-BIA_DEE': 'Stat_biomass_Daily_Eenergy_Expenditure',\n    'BIA-BIA_ECW': 'Stat_biomass_Extracellular_Water',\n    'BIA-BIA_FFM': 'Stat_biomass_Fat_Free_Mass',\n    'BIA-BIA_FFMI': 'Stat_biomass_Fat_Free_Mass_Index',\n    'BIA-BIA_FMI': 'Stat_biomass_Fat_Mass_Index',\n    'BIA-BIA_Fat': 'Stat_biomass_Fat_percentage',\n    'BIA-BIA_Frame_num': 'Stat_biomass_Body_Frame',\n    'BIA-BIA_ICW': 'Stat_biomass_Intracellular_Water',\n    'BIA-BIA_LDM': 'Stat_biomass_Lean_Dry_Mass',\n    'BIA-BIA_LST': 'Stat_biomass_Lean_Soft_Tissue',\n    'BIA-BIA_SMM': 'Stat_biomass_Skeletal_Muscle_Mass',\n    'BIA-BIA_TBW': 'Stat_biomass_Total_Body_Water',\n    'PAQ_A-Season': 'physical_questionnaire_Adolescent_Season',\n    'PAQ_A-PAQ_A_Total': 'physical_questionnaire_Adolescent_Total',\n    'PAQ_C-Season': 'physical_questionnaire_Children_Season',\n    'PAQ_C-PAQ_C_Total': 'physical_questionnaire_Children_Season',\n    'PCIAT-Season': 'Parent_Child_Internet_Addiction_Test_Season',\n    'PCIAT-PCIAT_01': 'Parent_Child_Internet_Addiction_Test_Q1',\n    'PCIAT-PCIAT_02': 'Parent_Child_Internet_Addiction_Test_Q2',\n    'PCIAT-PCIAT_03': 'Parent_Child_Internet_Addiction_Test_Q3',\n    'PCIAT-PCIAT_04': 'Parent_Child_Internet_Addiction_Test_Q4',\n    'PCIAT-PCIAT_05': 'Parent_Child_Internet_Addiction_Test_Q5',\n    'PCIAT-PCIAT_06': 'Parent_Child_Internet_Addiction_Test_Q6',\n    'PCIAT-PCIAT_07': 'Parent_Child_Internet_Addiction_Test_Q7',\n    'PCIAT-PCIAT_08': 'Parent_Child_Internet_Addiction_Test_Q8',\n    'PCIAT-PCIAT_09': 'Parent_Child_Internet_Addiction_Test_Q9',\n    'PCIAT-PCIAT_10': 'Parent_Child_Internet_Addiction_Test_Q10',\n    'PCIAT-PCIAT_11': 'Parent_Child_Internet_Addiction_Test_Q11',\n    'PCIAT-PCIAT_12': 'Parent_Child_Internet_Addiction_Test_Q12',\n    'PCIAT-PCIAT_13': 'Parent_Child_Internet_Addiction_Test_Q13',\n    'PCIAT-PCIAT_14': 'Parent_Child_Internet_Addiction_Test_Q14',\n    'PCIAT-PCIAT_15': 'Parent_Child_Internet_Addiction_Test_Q15',\n    'PCIAT-PCIAT_16': 'Parent_Child_Internet_Addiction_Test_Q16',\n    'PCIAT-PCIAT_17': 'Parent_Child_Internet_Addiction_Test_Q17',\n    'PCIAT-PCIAT_18': 'Parent_Child_Internet_Addiction_Test_Q18',\n    'PCIAT-PCIAT_19': 'Parent_Child_Internet_Addiction_Test_Q19',\n    'PCIAT-PCIAT_20': 'Parent_Child_Internet_Addiction_Test_Q20',\n    'PCIAT-PCIAT_Total': 'Parent_Child_Internet_Addiction_Test_Total',\n    'SDS-Season': 'Sleep_Disturbance_Scale_Season',\n    'SDS-SDS_Total_Raw': 'Sleep_Disturbance_Scale_Total_Raw_score',\n    'SDS-SDS_Total_T': 'Sleep_Disturbance_Scale_Total_T_score',\n    'PreInt_EduHx-Season': 'computer_internet_hours_Season',\n    'PreInt_EduHx-computerinternet_hoursday': 'computer_internet_hours_per_day',\n    'sii': 'Impact_Index'\n}, inplace=True)\n```"
  }
}