Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 033526c

Browse files
Add files via upload
1 parent 38e1046 commit 033526c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎Python-Data Combining.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@
12211221
}
12221222
],
12231223
"source": [
1224-
"#1.4 Combining dataframes using Merge function (Inner Join)\n",
1224+
"#1.3 Combining dataframes using Merge function (Inner Join)\n",
12251225
"# This bascially is similar to inner join where the two customers who exist in Info didn't appear because they dont have transactions\n",
12261226
"# As we have name variable in both datasets, on combining python creates automatically name_x and name_y in the final dataset\n",
12271227
"# If we don't submit how, its inner join by default\n",
@@ -1372,7 +1372,7 @@
13721372
}
13731373
],
13741374
"source": [
1375-
"#1.5 Combining dataframes using Merge function (left Join)\n",
1375+
"#1.4 Combining dataframes using Merge function (left Join)\n",
13761376
"# Now you can see 106 and 107 customers who doesn't have transactions\n",
13771377
"merge_left=pd.merge(left=Info, right=Trans, how='left',on='Id')\n",
13781378
"\n",
@@ -1521,7 +1521,7 @@
15211521
}
15221522
],
15231523
"source": [
1524-
"#1.6 Combining dataframes using Merge function (right Join)\n",
1524+
"#1.5 Combining dataframes using Merge function (right Join)\n",
15251525
"\n",
15261526
"merge_right=pd.merge(left=Info, right=Trans, how='right',on='Id')\n",
15271527
"merge_right.head()"
@@ -1890,7 +1890,7 @@
18901890
}
18911891
],
18921892
"source": [
1893-
"#1.7 Combining dataframes using Merge function (outer Join)\n",
1893+
"#1.6 Combining dataframes using Merge function (outer Join)\n",
18941894
"\n",
18951895
"merge_outer=pd.merge(left=Info, right=Trans, how='outer',on='Id')\n",
18961896
"\n",
@@ -2039,7 +2039,7 @@
20392039
}
20402040
],
20412041
"source": [
2042-
"#1.8 Use of suffixes\n",
2042+
"#1.7 Use of suffixes\n",
20432043
"# If the variable exists in both datasets during merging, python creates them as var_x and var_y by default\n",
20442044
"#However, if we want to specify the suffix explicitly- we can use the suffix option like below\n",
20452045
"\n",
@@ -3946,7 +3946,7 @@
39463946
}
39473947
],
39483948
"source": [
3949-
"#4.3 Imputation of missing values with mean or any fixed value- Using fillno()\n",
3949+
"#4.4 Imputation of missing values with mean or any fixed value- Using fillno()\n",
39503950
"\n",
39513951
"mean_income= Info['Income'].mean()\n",
39523952
"print(mean_income)\n",
@@ -3962,7 +3962,7 @@
39623962
"metadata": {},
39633963
"outputs": [],
39643964
"source": [
3965-
"#4.4 Dropping rows/columns which contains missing values\n",
3965+
"#4.5 Dropping rows/columns which contains missing values\n",
39663966
"\n",
39673967
"# df.dropna()- Drop rows with missing values\n",
39683968
"# df.drop(columns_to_drop, axis=1)\n",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /