{"id":3198,"date":"2023-07-18T17:44:30","date_gmt":"2023-07-18T17:44:30","guid":{"rendered":"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/"},"modified":"2023-07-18T17:44:30","modified_gmt":"2023-07-18T17:44:30","slug":"%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84","status":"publish","type":"post","link":"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/","title":{"rendered":"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0648\u0638\u0627\u0626\u0641 groupby() \u0648transform() \u0641\u064a pandas"},"content":{"rendered":"<p><\/p>\n<hr>\n<p style=\";text-align:right;direction:rtl\"><span style=\"color: #000000;\">\u064a\u0645\u0643\u0646\u0643 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0637\u0631\u0642 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 <strong>groupby()<\/strong> \u0648 <strong>transform()<\/strong> \u0645\u0639\u064b\u0627 \u0641\u064a pandas DataFrame:<\/span><\/p>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u0623\u0648\u0644\u0649: \u0627\u0633\u062a\u062e\u062f\u0645 groupby() \u0648transform() \u0645\u0639 \u0627\u0644\u0648\u0638\u064a\u0641\u0629 \u0627\u0644\u0645\u0636\u0645\u0646\u0629<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df[' <span style=\"color: #ff0000;\">new<\/span> '] = df. <span style=\"color: #3366ff;\">groupby<\/span> (' <span style=\"color: #ff0000;\">group_var<\/span> ')[' <span style=\"color: #ff0000;\">value_var<\/span> ']. <span style=\"color: #3366ff;\">transform<\/span> (' <span style=\"color: #ff0000;\">mean<\/span> ')\n<\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u062b\u0627\u0646\u064a\u0629: \u0627\u0633\u062a\u062e\u062f\u0627\u0645 groupby() \u0648transform() \u0645\u0639 \u0648\u0638\u064a\u0641\u0629 \u0645\u062e\u0635\u0635\u0629<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df[' <span style=\"color: #ff0000;\">new<\/span> '] = df. <span style=\"color: #3366ff;\">groupby<\/span> (' <span style=\"color: #ff0000;\">group_var<\/span> ')[' <span style=\"color: #ff0000;\">value_var<\/span> ']. <span style=\"color: #3366ff;\">transform<\/span> ( <span style=\"color: #008000;\">lambda<\/span> x: some function)<\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u062a\u0648\u0636\u062d \u0627\u0644\u0623\u0645\u062b\u0644\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0643\u0644 \u0637\u0631\u064a\u0642\u0629 \u0639\u0645\u0644\u064a\u064b\u0627 \u0645\u0639 \u0627\u0644\u0628\u0627\u0646\u062f\u0627 DataFrame \u0627\u0644\u062a\u0627\u0644\u064a\u0629:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <b><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame<\/span>\ndf = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">team<\/span> ': ['A', 'A', 'A', 'A', 'B', 'B', 'B', 'B'],\n                   ' <span style=\"color: #ff0000;\">points<\/span> ': [30, 22, 19, 14, 14, 11, 20, 28]})\n\n<span style=\"color: #008080;\">#view DataFrame\n<span style=\"color: #008000;\">print<\/span><\/span> (df)\n\n  team points\n0 to 30\n1 to 22\n2 to 19\n3 to 14\n4 B 14\n5 B 11\n6 B 20\n7 B 28\n<\/b><\/pre>\n<h3 style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0645\u062b\u0627\u0644 1: \u0627\u0633\u062a\u062e\u062f\u0645 groupby() \u0648transform() \u0645\u0639 \u0648\u0638\u064a\u0641\u0629 \u0645\u062f\u0645\u062c\u0629<\/strong><\/span><\/h3>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u064a\u0648\u0636\u062d \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0629 \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 <strong>groupby(<\/strong> ) \u0648 <strong>transform()<\/strong> \u0644\u0625\u0636\u0627\u0641\u0629 \u0639\u0645\u0648\u062f \u062c\u062f\u064a\u062f \u0625\u0644\u0649 DataFrame \u064a\u0633\u0645\u0649 mean_points:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create new column called mean_points\n<span style=\"color: #000000;\">df[' <span style=\"color: #ff0000;\">mean_points<\/span> '] = df. <span style=\"color: #3366ff;\">groupby<\/span> (' <span style=\"color: #ff0000;\">team<\/span> ')[' <span style=\"color: #ff0000;\">points<\/span> ']. <span style=\"color: #3366ff;\">transform<\/span> (' <span style=\"color: #ff0000;\">mean<\/span> ')\n<\/span>\n#view updated DataFrame\n<span style=\"color: #000000;\"><span style=\"color: #008000;\">print<\/span> (df)\n\n  team points mean_points\n0 to 30 21.25\n1 to 22 21.25\n2 A 19 21.25\n3 to 14 21.25\n4 B 14 18.25\n5 B 11 18.25\n6 B 20 18.25\n7 B 28 18.25<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0643\u0627\u0646 \u0645\u062a\u0648\u0633\u0637 \u0642\u064a\u0645\u0629 \u0627\u0644\u0646\u0642\u0627\u0637 \u0644\u0644\u0627\u0639\u0628\u064a\u0646 \u0641\u064a \u0627\u0644\u0641\u0631\u064a\u0642 \u0623 <strong>21.25<\/strong> \u0648\u0643\u0627\u0646 \u0645\u062a\u0648\u0633\u0637 \u0642\u064a\u0645\u0629 \u0627\u0644\u0646\u0642\u0627\u0637 \u0644\u0644\u0627\u0639\u0628\u064a\u0646 \u0641\u064a \u0627\u0644\u0641\u0631\u064a\u0642 \u0628 <strong>18.25<\/strong> \u060c \u0644\u0630\u0644\u0643 \u062a\u0645 \u062a\u062e\u0635\u064a\u0635 \u0647\u0630\u0647 \u0627\u0644\u0642\u064a\u0645 \u0648\u0641\u0642\u064b\u0627 \u0644\u0630\u0644\u0643 \u0644\u0643\u0644 \u0644\u0627\u0639\u0628 \u0641\u064a \u0639\u0645\u0648\u062f \u062c\u062f\u064a\u062f.<\/span><\/p>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0644\u0627\u062d\u0638 \u0623\u0646\u0647 \u064a\u0645\u0643\u0646\u0646\u0627 \u0623\u064a\u0636\u064b\u0627 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u062f\u0627\u0644\u0629 \u0645\u062f\u0645\u062c\u0629 \u0623\u062e\u0631\u0649 \u0645\u062b\u0644 <strong>sum()<\/strong> \u0644\u0625\u0646\u0634\u0627\u0621 \u0639\u0645\u0648\u062f \u062c\u062f\u064a\u062f \u064a\u0639\u0631\u0636 \u0645\u062c\u0645\u0648\u0639 \u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u0645\u0633\u062c\u0644\u0629 \u0644\u0643\u0644 \u0641\u0631\u064a\u0642:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create new column called sum_points\n<span style=\"color: #000000;\">df[' <span style=\"color: #ff0000;\">sum_points<\/span> '] = df. <span style=\"color: #3366ff;\">groupby<\/span> (' <span style=\"color: #ff0000;\">team<\/span> ')[' <span style=\"color: #ff0000;\">points<\/span> ']. <span style=\"color: #3366ff;\">transform<\/span> (' <span style=\"color: #ff0000;\">sum<\/span> ')\n<\/span>\n#view updated DataFrame\n<span style=\"color: #000000;\"><span style=\"color: #008000;\">print<\/span> (df)\n\n  team points sum_points\n0 to 30 85\n1 to 22 85\n2 A 19 85\n3 to 14 85\n4 B 14 73\n5 B 11 73\n6 B 20 73\n7 B 28 73<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0645\u062c\u0645\u0648\u0639 \u0646\u0642\u0627\u0637 \u0644\u0627\u0639\u0628\u064a \u0627\u0644\u0641\u0631\u064a\u0642 \u0623 \u0643\u0627\u0646 <b>85<\/b> \u0648\u0645\u062c\u0645\u0648\u0639 \u0646\u0642\u0627\u0637 \u0644\u0627\u0639\u0628\u064a \u0627\u0644\u0641\u0631\u064a\u0642 \u0628 <strong>73<\/strong> \u060c \u0644\u0630\u0644\u0643 \u062a\u0645 \u062a\u062e\u0635\u064a\u0635 \u0647\u0630\u0647 \u0627\u0644\u0642\u064a\u0645 \u0648\u0641\u0642\u064b\u0627 \u0644\u0630\u0644\u0643 \u0644\u0643\u0644 \u0644\u0627\u0639\u0628 \u0641\u064a \u0639\u0645\u0648\u062f \u062c\u062f\u064a\u062f.<\/span><\/p>\n<h3 style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0627\u0644\u0645\u062b\u0627\u0644 2: \u0627\u0633\u062a\u062e\u062f\u0645 groupby() \u0648transform() \u0645\u0639 \u0648\u0638\u064a\u0641\u0629 \u0645\u062e\u0635\u0635\u0629<\/strong><\/span><\/h3>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u064a\u0648\u0636\u062d \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0629 \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 <strong>groupby(<\/strong> ) \u0648 <strong>transform()<\/strong> \u0644\u0625\u0646\u0634\u0627\u0621 \u0648\u0638\u064a\u0641\u0629 \u0645\u062e\u0635\u0635\u0629 \u062a\u062d\u0633\u0628 \u0627\u0644\u0646\u0633\u0628\u0629 \u0627\u0644\u0645\u0626\u0648\u064a\u0629 \u0644\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u062a\u064a \u0633\u062c\u0644\u0647\u0627 \u0643\u0644 \u0644\u0627\u0639\u0628 \u0641\u064a \u0641\u0631\u0642\u0647 \u0627\u0644\u062e\u0627\u0635\u0629:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create new column called percent_of_points\n<span style=\"color: #000000;\">df[' <span style=\"color: #ff0000;\">percent_of_points<\/span> '] = df. <span style=\"color: #3366ff;\">groupby<\/span> (' <span style=\"color: #ff0000;\">team<\/span> ')[' <span style=\"color: #ff0000;\">points<\/span> ']. <span style=\"color: #3366ff;\">transform<\/span> ( <span style=\"color: #008000;\">lambda<\/span> x:x\/ <span style=\"color: #3366ff;\">x.sum<\/span> ())\n<\/span>\n#view updated DataFrame\n<span style=\"color: #000000;\"><span style=\"color: #008000;\">print<\/span> (df)\n\n  team points percent_of_points\n0 A 30 0.352941\n1 A 22 0.258824\n2 A 19 0.223529\n3 A 14 0.164706\n4 B 14 0.191781\n5 B 11 0.150685\n6 B 20 0.273973\n7 B 28 0.383562\n<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><span style=\"color: #000000;\">\u0648\u0625\u0644\u064a\u0643 \u0643\u064a\u0641\u064a\u0629 \u062a\u0641\u0633\u064a\u0631 \u0627\u0644\u0646\u062a\u064a\u062c\u0629:<\/span><\/span><\/p>\n<ul style=\";text-align:right;direction:rtl\">\n<li style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u062d\u0635\u0644 \u0627\u0644\u0644\u0627\u0639\u0628 \u0627\u0644\u0623\u0648\u0644 \u0645\u0646 \u0641\u0631\u064a\u0642 \u0623 \u0639\u0644\u0649 30 \u0646\u0642\u0637\u0629 \u0645\u0646 \u0625\u062c\u0645\u0627\u0644\u064a 85 \u0628\u064a\u0646 \u0644\u0627\u0639\u0628\u064a \u0641\u0631\u064a\u0642 \u0623\u060c \u0648\u0628\u0630\u0644\u0643 \u0623\u0635\u0628\u062d\u062a \u0646\u0633\u0628\u062a\u0647 \u0645\u0646 \u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u0645\u0633\u062c\u0644\u0629 30\/85 = <strong>0.352941<\/strong> .<\/span><\/li>\n<li style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u062d\u0635\u0644 \u0627\u0644\u0644\u0627\u0639\u0628 \u0627\u0644\u062b\u0627\u0646\u064a \u0645\u0646 \u0641\u0631\u064a\u0642 (\u0623) \u0639\u0644\u0649 22 \u0646\u0642\u0637\u0629 \u0645\u0646 \u0625\u062c\u0645\u0627\u0644\u064a 85 \u0628\u064a\u0646 \u0644\u0627\u0639\u0628\u064a \u0627\u0644\u0641\u0631\u064a\u0642 (\u0623) \u0648\u0628\u0630\u0644\u0643 \u062a\u0643\u0648\u0646 \u0646\u0633\u0628\u062a\u0647 \u0645\u0646 \u0645\u062c\u0645\u0648\u0639 \u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u0645\u0633\u062c\u0644\u0629 22\/85 = <strong>0.258824<\/strong> .<\/span><\/li>\n<\/ul>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0648\u0645\u0627 \u0625\u0644\u0649 \u0630\u0644\u0643 \u0648\u0647\u0644\u0645 \u062c\u0631\u0627.<\/span><\/p>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0644\u0627\u062d\u0638 \u0623\u0646\u0647 \u064a\u0645\u0643\u0646\u0646\u0627 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0648\u0633\u064a\u0637\u0629 <strong>lambda<\/strong> \u0641\u064a \u0648\u0638\u064a\u0641\u0629 <strong>\u0627\u0644\u062a\u062d\u0648\u064a\u0644 ()<\/strong> \u0644\u0625\u062c\u0631\u0627\u0621 \u0623\u064a \u0639\u0645\u0644\u064a\u0629 \u062d\u0633\u0627\u0628\u064a\u0629 \u0645\u062e\u0635\u0635\u0629 \u0646\u0631\u064a\u062f\u0647\u0627.<\/span><\/p>\n<h3 style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0645\u0635\u0627\u062f\u0631 \u0625\u0636\u0627\u0641\u064a\u0629<\/strong><\/span><\/h3>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u062a\u0634\u0631\u062d \u0627\u0644\u0628\u0631\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0643\u064a\u0641\u064a\u0629 \u062a\u0646\u0641\u064a\u0630 \u0627\u0644\u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0644\u0634\u0627\u0626\u0639\u0629 \u0627\u0644\u0623\u062e\u0631\u0649 \u0641\u064a \u0627\u0644\u0628\u0627\u0646\u062f\u0627:<\/span><\/p>\n<p style=\";text-align:right;direction:rtl\"> <a href=\"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-\u0645\u062c\u0645\u0648\u0639\u0629-\u062d\u0633\u0628-\u0627\u0644\u0645\u0628\u0644\u063a\/\" target=\"_blank\" rel=\"noopener\">\u0643\u064a\u0641\u064a\u0629 \u0625\u062c\u0631\u0627\u0621 \u0645\u062c\u0645\u0648\u0639 GroupBy \u0641\u064a Pandas<\/a><br \/> <a href=\"https:\/\/statorials.org\/ar\/\u0645\u062c\u0645\u0648\u0639\u0629-\u0627\u0644\u0628\u0627\u0646\u062f\u0627-\u0639\u0646-\u0637\u0631\u064a\u0642-\u0627\u0644\u0645\u0648\u0654\u0627\u0645\u0631\u0629\/\" target=\"_blank\" rel=\"noopener\">\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 Groupby \u0648Plot \u0641\u064a Pandas<\/a><br \/> <a href=\"https:\/\/statorials.org\/ar\/\u0639\u062f\u062f-\u0645\u062c\u0645\u0648\u0639\u0627\u062a-\u0627\u0644\u0628\u0627\u0646\u062f\u0627-\u0641\u0631\u064a\u062f-\u0645\u0646-\u0646\u0648\u0639\u0647\/\" target=\"_blank\" rel=\"noopener\">\u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0642\u064a\u0645 \u0627\u0644\u0641\u0631\u064a\u062f\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GroupBy \u0641\u064a Pandas<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u064a\u0645\u0643\u0646\u0643 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0637\u0631\u0642 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648 transform() \u0645\u0639\u064b\u0627 \u0641\u064a pandas DataFrame: \u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u0623\u0648\u0644\u0649: \u0627\u0633\u062a\u062e\u062f\u0645 groupby() \u0648transform() \u0645\u0639 \u0627\u0644\u0648\u0638\u064a\u0641\u0629 \u0627\u0644\u0645\u0636\u0645\u0646\u0629 df[&#8216; new &#8216;] = df. groupby (&#8216; group_var &#8216;)[&#8216; value_var &#8216;]. transform (&#8216; mean &#8216;) \u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u062b\u0627\u0646\u064a\u0629: \u0627\u0633\u062a\u062e\u062f\u0627\u0645 groupby() \u0648transform() \u0645\u0639 \u0648\u0638\u064a\u0641\u0629 \u0645\u062e\u0635\u0635\u0629 df[&#8216; new &#8216;] = df. groupby (&#8216; group_var &#8216;)[&#8216; value_var &#8216;]. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0641\u064a Pandas - \u0639\u0644\u0645 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a<\/title>\n<meta name=\"description\" content=\"\u064a\u0634\u0631\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0645\u0639\u064b\u0627 \u0641\u064a \u062d\u064a\u0648\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0627\u0646\u062f\u0627\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0645\u062b\u0644\u0629.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-groupby-\u062a\u062d\u0648\u064a\u0644\/\" \/>\n<meta property=\"og:locale\" content=\"az_AZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0641\u064a Pandas - \u0639\u0644\u0645 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a\" \/>\n<meta property=\"og:description\" content=\"\u064a\u0634\u0631\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0645\u0639\u064b\u0627 \u0641\u064a \u062d\u064a\u0648\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0627\u0646\u062f\u0627\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0645\u062b\u0644\u0629.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-groupby-\u062a\u062d\u0648\u064a\u0644\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-18T17:44:30+00:00\" \/>\n<meta name=\"author\" content=\"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/\",\"url\":\"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/\",\"name\":\"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0641\u064a Pandas - \u0639\u0644\u0645 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ar\/#website\"},\"datePublished\":\"2023-07-18T17:44:30+00:00\",\"dateModified\":\"2023-07-18T17:44:30+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ar\/#\/schema\/person\/a0a26e65f97483429b863aae1a11e3b3\"},\"description\":\"\u064a\u0634\u0631\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0645\u0639\u064b\u0627 \u0641\u064a \u062d\u064a\u0648\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0627\u0646\u062f\u0627\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0645\u062b\u0644\u0629.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/#breadcrumb\"},\"inLanguage\":\"azb\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0628\u064a\u062a\",\"item\":\"https:\/\/statorials.org\/ar\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0648\u0638\u0627\u0626\u0641 groupby() \u0648transform() \u0641\u064a pandas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ar\/#website\",\"url\":\"https:\/\/statorials.org\/ar\/\",\"name\":\"Statorials\",\"description\":\"\u062f\u0644\u064a\u0644\u0643 \u0644\u0645\u062d\u0648 \u0627\u0644\u0623\u0645\u064a\u0629 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0629!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ar\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"azb\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ar\/#\/schema\/person\/a0a26e65f97483429b863aae1a11e3b3\",\"name\":\"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"azb\",\"@id\":\"https:\/\/statorials.org\/ar\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/ar\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/ar\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646\"},\"description\":\"\u0645\u0631\u062d\u0628\u064b\u0627\u060c \u0623\u0646\u0627 \u0628\u0646\u062c\u0627\u0645\u064a\u0646\u060c \u0623\u0633\u062a\u0627\u0630 \u0627\u0644\u0625\u062d\u0635\u0627\u0621 \u0627\u0644\u0645\u062a\u0642\u0627\u0639\u062f \u0627\u0644\u0630\u064a \u062a\u062d\u0648\u0644 \u0625\u0644\u0649 \u0645\u062f\u0631\u0633 \u0645\u062a\u062e\u0635\u0635 \u0641\u064a Statorials. \u0628\u0641\u0636\u0644 \u062e\u0628\u0631\u062a\u064a \u0627\u0644\u0648\u0627\u0633\u0639\u0629 \u0641\u064a \u0645\u062c\u0627\u0644 \u0627\u0644\u0625\u062d\u0635\u0627\u0621\u060c \u0641\u0623\u0646\u0627 \u062d\u0631\u064a\u0635 \u0639\u0644\u0649 \u0645\u0634\u0627\u0631\u0643\u0629 \u0645\u0639\u0631\u0641\u062a\u064a \u0644\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0637\u0644\u0627\u0628 \u0645\u0646 \u062e\u0644\u0627\u0644 Statorials. \u062a\u0639\u0631\u0641 \u0623\u0643\u062b\u0631\",\"sameAs\":[\"https:\/\/statorials.org\/ar\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0641\u064a Pandas - \u0639\u0644\u0645 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a","description":"\u064a\u0634\u0631\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0645\u0639\u064b\u0627 \u0641\u064a \u062d\u064a\u0648\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0627\u0646\u062f\u0627\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0645\u062b\u0644\u0629.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-groupby-\u062a\u062d\u0648\u064a\u0644\/","og_locale":"az_AZ","og_type":"article","og_title":"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0641\u064a Pandas - \u0639\u0644\u0645 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a","og_description":"\u064a\u0634\u0631\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0645\u0639\u064b\u0627 \u0641\u064a \u062d\u064a\u0648\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0627\u0646\u062f\u0627\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0645\u062b\u0644\u0629.","og_url":"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-groupby-\u062a\u062d\u0648\u064a\u0644\/","og_site_name":"Statorials","article_published_time":"2023-07-18T17:44:30+00:00","author":"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/","url":"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/","name":"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0641\u064a Pandas - \u0639\u0644\u0645 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a","isPartOf":{"@id":"https:\/\/statorials.org\/ar\/#website"},"datePublished":"2023-07-18T17:44:30+00:00","dateModified":"2023-07-18T17:44:30+00:00","author":{"@id":"https:\/\/statorials.org\/ar\/#\/schema\/person\/a0a26e65f97483429b863aae1a11e3b3"},"description":"\u064a\u0634\u0631\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u064a \u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062f\u0627\u0644\u062a\u064a\u0646 groupby() \u0648transform() \u0645\u0639\u064b\u0627 \u0641\u064a \u062d\u064a\u0648\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0627\u0646\u062f\u0627\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0645\u062b\u0644\u0629.","breadcrumb":{"@id":"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/#breadcrumb"},"inLanguage":"azb","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ar\/%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7-groupby-%d8%aa%d8%ad%d9%88%d9%8a%d9%84\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0628\u064a\u062a","item":"https:\/\/statorials.org\/ar\/"},{"@type":"ListItem","position":2,"name":"\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0648\u0638\u0627\u0626\u0641 groupby() \u0648transform() \u0641\u064a pandas"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ar\/#website","url":"https:\/\/statorials.org\/ar\/","name":"Statorials","description":"\u062f\u0644\u064a\u0644\u0643 \u0644\u0645\u062d\u0648 \u0627\u0644\u0623\u0645\u064a\u0629 \u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0629!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ar\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"azb"},{"@type":"Person","@id":"https:\/\/statorials.org\/ar\/#\/schema\/person\/a0a26e65f97483429b863aae1a11e3b3","name":"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646","image":{"@type":"ImageObject","inLanguage":"azb","@id":"https:\/\/statorials.org\/ar\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/ar\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/ar\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u062f\u0643\u062a\u0648\u0631 \u0628\u0646\u064a\u0627\u0645\u064a\u0646 \u0623\u0646\u062f\u0631\u0633\u0648\u0646"},"description":"\u0645\u0631\u062d\u0628\u064b\u0627\u060c \u0623\u0646\u0627 \u0628\u0646\u062c\u0627\u0645\u064a\u0646\u060c \u0623\u0633\u062a\u0627\u0630 \u0627\u0644\u0625\u062d\u0635\u0627\u0621 \u0627\u0644\u0645\u062a\u0642\u0627\u0639\u062f \u0627\u0644\u0630\u064a \u062a\u062d\u0648\u0644 \u0625\u0644\u0649 \u0645\u062f\u0631\u0633 \u0645\u062a\u062e\u0635\u0635 \u0641\u064a Statorials. \u0628\u0641\u0636\u0644 \u062e\u0628\u0631\u062a\u064a \u0627\u0644\u0648\u0627\u0633\u0639\u0629 \u0641\u064a \u0645\u062c\u0627\u0644 \u0627\u0644\u0625\u062d\u0635\u0627\u0621\u060c \u0641\u0623\u0646\u0627 \u062d\u0631\u064a\u0635 \u0639\u0644\u0649 \u0645\u0634\u0627\u0631\u0643\u0629 \u0645\u0639\u0631\u0641\u062a\u064a \u0644\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0637\u0644\u0627\u0628 \u0645\u0646 \u062e\u0644\u0627\u0644 Statorials. \u062a\u0639\u0631\u0641 \u0623\u0643\u062b\u0631","sameAs":["https:\/\/statorials.org\/ar"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/posts\/3198"}],"collection":[{"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/comments?post=3198"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/posts\/3198\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/media?parent=3198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/categories?post=3198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/tags?post=3198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}