mirror of
https://github.com/gsi-upm/sitc
synced 2024-11-23 15:02:28 +00:00
final fix in ml2/3_4
This commit is contained in:
parent
b42ba2fe58
commit
06e51db4e3
@ -484,13 +484,17 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
|
"ExecuteTime": {
|
||||||
|
"end_time": "2019-03-06T17:31:13.351504Z",
|
||||||
|
"start_time": "2019-03-06T17:31:13.092499Z"
|
||||||
|
}
|
||||||
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#Small touches\n",
|
"#Small touches\n",
|
||||||
"\n",
|
"\n",
|
||||||
"pclass_labels = ['First', 'Second', 'Third']\n",
|
"pclass_labels = ['First', 'Second', 'Third']\n",
|
||||||
"sex_labels = {'Female': 0, 'Male': 1}\n",
|
|
||||||
"sex_labels = ['Female', 'Male']\n",
|
"sex_labels = ['Female', 'Male']\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt = df.query('Age < 20 and Survived == 1').groupby(['Sex','Pclass']).size().unstack(['Sex']).plot(kind='bar', \n",
|
"plt = df.query('Age < 20 and Survived == 1').groupby(['Sex','Pclass']).size().unstack(['Sex']).plot(kind='bar', \n",
|
||||||
@ -504,12 +508,16 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
|
"ExecuteTime": {
|
||||||
|
"end_time": "2019-03-06T17:31:13.578569Z",
|
||||||
|
"start_time": "2019-03-06T17:31:13.353882Z"
|
||||||
|
}
|
||||||
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#The same horizontal\n",
|
"#The same horizontal\n",
|
||||||
"pclass_labels = ['First', 'Second', 'Third']\n",
|
"pclass_labels = ['First', 'Second', 'Third']\n",
|
||||||
"sex_labels = {'Female': 0, 'Male': 1}\n",
|
|
||||||
"sex_labels = ['Female', 'Male']\n",
|
"sex_labels = ['Female', 'Male']\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt = df.query('Age > 25 and Survived == 1').groupby(['Sex','Pclass']).size().unstack(['Sex']).plot(kind='barh', \n",
|
"plt = df.query('Age > 25 and Survived == 1').groupby(['Sex','Pclass']).size().unstack(['Sex']).plot(kind='barh', \n",
|
||||||
|
Loading…
Reference in New Issue
Block a user