df['AgeGroup'] = pd.cut(df['Age'], bins=[0, 12, 18, 35, 60, 100], labels=['Child', 'Teen', 'Adult', 'Senior', 'Elder']) Use code with caution. Copied to clipboard

The RMS Carpathia, a passenger ship operated by the Cunard Line, received distress calls from the Titanic and altered its course to provide assistance. The Carpathia arrived on the scene at around 4:00 AM on April 15 and rescued over 700 survivors from the Titanic's lifeboats.

Sütihasználati beállítások

Titanic: ((link))

df['AgeGroup'] = pd.cut(df['Age'], bins=[0, 12, 18, 35, 60, 100], labels=['Child', 'Teen', 'Adult', 'Senior', 'Elder']) Use code with caution. Copied to clipboard

The RMS Carpathia, a passenger ship operated by the Cunard Line, received distress calls from the Titanic and altered its course to provide assistance. The Carpathia arrived on the scene at around 4:00 AM on April 15 and rescued over 700 survivors from the Titanic's lifeboats. Titanic