{"id":2971,"date":"2023-07-19T20:21:26","date_gmt":"2023-07-19T20:21:26","guid":{"rendered":"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/"},"modified":"2023-07-19T20:21:26","modified_gmt":"2023-07-19T20:21:26","slug":"%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7","status":"publish","type":"post","link":"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/","title":{"rendered":"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646"},"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 \u0628\u0646\u0627\u0621 \u0627\u0644\u062c\u0645\u0644\u0629 \u0627\u0644\u062a\u0627\u0644\u064a \u0644\u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a pandas DataFrame:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df[' <span style=\"color: #ff0000;\">diff_days<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">D<\/span> ')\n<\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u064a\u0642\u0648\u0645 \u0647\u0630\u0627 \u0627\u0644\u0645\u062b\u0627\u0644 \u062a\u062d\u062f\u064a\u062f\u064b\u0627 \u0628\u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u0627\u0644\u062a\u0648\u0627\u0631\u064a\u062e \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0629 \u0641\u064a \u0627\u0644\u0639\u0645\u0648\u062f\u064a\u0646 <strong>end_date<\/strong> \u0648 <strong>start_date<\/strong> \u0645\u0646 \u062d\u064a\u062b \u0627\u0644\u0623\u064a\u0627\u0645.<\/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\u0628\u062f\u0627\u0644 &#8220;D&#8221; \u0641\u064a \u0627\u0644\u062f\u0627\u0644\u0629 <strong>timedelta64()<\/strong> \u0628\u0627\u0644\u0642\u064a\u0645 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0644\u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u0648\u062d\u062f\u0627\u062a \u0645\u062e\u062a\u0644\u0641\u0629:<\/span><\/p>\n<ul style=\";text-align:right;direction:rtl\">\n<li style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u062b<\/strong> : \u0623\u0633\u0627\u0628\u064a\u0639<\/span><\/li>\n<li style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0645<\/strong> : \u0634\u0647\u0631<\/span><\/li>\n<li style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u064a<\/strong> : \u0633\u0646\u0648\u0627\u062a<\/span><\/li>\n<\/ul>\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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0641\u064a Pandas DataFrame \u0639\u0645\u0644\u064a\u064b\u0627.<\/span><\/p>\n<h3 style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0627\u0644\u0645\u062b\u0627\u0644 1: \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0623\u0639\u0645\u062f\u0629 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0648\u0627\u0644\u0648\u0642\u062a<\/strong><\/span><\/h3>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0644\u0646\u0641\u062a\u0631\u0636 \u0623\u0646 \u0644\u062f\u064a\u0646\u0627 DataFrame \u0627\u0644\u0628\u0627\u0646\u062f\u0627 \u0627\u0644\u062a\u0627\u0644\u064a\u0629:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame<span style=\"color: #000000;\">\ndf = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">start_date<\/span> ': pd. <span style=\"color: #3366ff;\">date_range<\/span> (start=' <span style=\"color: #ff0000;\">1\/5\/2020<\/span> ', periods= <span style=\"color: #008000;\">6<\/span> , freq=' <span style=\"color: #ff0000;\">W<\/span> '),\n                   ' <span style=\"color: #ff0000;\">end_date<\/span> ': pd. <span style=\"color: #3366ff;\">date_range<\/span> (start=' <span style=\"color: #ff0000;\">6\/1\/2020<\/span> ', periods= <span style=\"color: #008000;\">6<\/span> , freq=' <span style=\"color: #ff0000;\">M<\/span> ')})\n\n<span style=\"color: #008080;\">#view DataFrame\n<\/span><span style=\"color: #008000;\">print<\/span> (df)\n\n  start_date end_date\n0 2020-01-05 2020-06-30\n1 2020-01-12 2020-07-31\n2 2020-01-19 2020-08-31\n3 2020-01-26 2020-09-30\n4 2020-02-02 2020-10-31\n5 2020-02-09 2020-11-30\n\n<span style=\"color: #008080;\">#view dtype of each column in DataFrame<\/span>\ndf. <span style=\"color: #3366ff;\">dtypes\n\n<span style=\"color: #000000;\">start_date datetime64[ns]\nend_date datetime64[ns]\ndtype:object<\/span><\/span>\n<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0646\u0638\u0631\u064b\u0627 \u0644\u0623\u0646 \u0643\u0644\u0627 \u0627\u0644\u0639\u0645\u0648\u062f\u064a\u0646 \u0641\u064a DataFrame \u064a\u062d\u062a\u0648\u064a\u0627\u0646 \u0628\u0627\u0644\u0641\u0639\u0644 \u0639\u0644\u0649 \u0646\u0648\u0639 <strong>datetime64<\/strong> \u060c \u0641\u064a\u0645\u0643\u0646\u0646\u0627 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0635\u064a\u063a\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u0644\u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a \u0627\u0644\u0628\u062f\u0621 \u0648\u0627\u0644\u0627\u0646\u062a\u0647\u0627\u0621:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#create new columns that contains date differences\n<\/span>df[' <span style=\"color: #ff0000;\">diff_days<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">D<\/span> ')\ndf[' <span style=\"color: #ff0000;\">diff_weeks<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">W<\/span> ')\ndf[' <span style=\"color: #ff0000;\">diff_months<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">M<\/span> ')\ndf[' <span style=\"color: #ff0000;\">diff_years<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">Y<\/span> ')\n\n<span style=\"color: #008080;\">#view updated DataFrame\n<\/span><span style=\"color: #008000;\">print<\/span> (df)\n\n  start_date end_date diff_days diff_weeks diff_months diff_years\n0 2020-01-05 2020-06-30 177.0 25.285714 5.815314 0.484610\n1 2020-01-12 2020-07-31 201.0 28.714286 6.603832 0.550319\n2 2020-01-19 2020-08-31 225.0 32.142857 7.392349 0.616029\n3 2020-01-26 2020-09-30 248.0 35.428571 8.148011 0.679001\n4 2020-02-02 2020-10-31 272.0 38.857143 8.936528 0.744711\n5 2020-02-09 2020-11-30 295.0 42.142857 9.692191 0.807683\n<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u062a\u062d\u062a\u0648\u064a \u0627\u0644\u0623\u0639\u0645\u062f\u0629 \u0627\u0644\u062c\u062f\u064a\u062f\u0629 \u0639\u0644\u0649 \u0641\u0631\u0648\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a \u0627\u0644\u0628\u062f\u0621 \u0648\u0627\u0644\u0627\u0646\u062a\u0647\u0627\u0621 \u0645\u0646 \u062d\u064a\u062b \u0627\u0644\u0623\u064a\u0627\u0645 \u0648\u0627\u0644\u0623\u0633\u0627\u0628\u064a\u0639 \u0648\u0627\u0644\u0634\u0647\u0648\u0631 \u0648\u0627\u0644\u0633\u0646\u0648\u0627\u062a.<\/span><\/p>\n<h3 style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\"><strong>\u0627\u0644\u0645\u062b\u0627\u0644 2: \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0623\u0639\u0645\u062f\u0629 \u0627\u0644\u0633\u0644\u0633\u0644\u0629<\/strong><\/span><\/h3>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0644\u0646\u0641\u062a\u0631\u0636 \u0623\u0646 \u0644\u062f\u064a\u0646\u0627 DataFrame \u0627\u0644\u0628\u0627\u0646\u062f\u0627 \u0627\u0644\u062a\u0627\u0644\u064a\u0629:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame<span style=\"color: #000000;\">\ndf = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">start_date<\/span> ': ['2020-01-05', '2020-01-12', '2020-01-19'],\n                   ' <span style=\"color: #ff0000;\">end_date<\/span> ': ['2020-06-30', '2020-07-31', '2020-08-31']})\n\n<span style=\"color: #008080;\">#view dtype of each column<\/span>\n<span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">df.dtypes<\/span> )\n\nstart_date object\nend_date object\ndtype:object\n<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0646\u0638\u0631\u064b\u0627 \u0644\u0639\u062f\u0645 \u0627\u062d\u062a\u0648\u0627\u0621 \u0623\u064a \u0639\u0645\u0648\u062f \u0641\u064a DataFrame \u0639\u0644\u0649 \u0646\u0648\u0639 <strong>datetime64<\/strong> \u060c \u0641\u0633\u0648\u0641 \u0646\u062a\u0644\u0642\u0649 \u062e\u0637\u0623 \u0625\u0630\u0627 \u062d\u0627\u0648\u0644\u0646\u0627 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u0627\u0644\u062a\u0648\u0627\u0631\u064a\u062e:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#attempt to calculate date difference\n<\/span>df[' <span style=\"color: #ff0000;\">diff_days<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">D<\/span> ')\n\n<span style=\"color: #ff0000;\">TypeError<\/span> : unsupported operand type(s) for -: 'str' and 'str'\n<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u064a\u062c\u0628 \u0639\u0644\u064a\u0643 \u0623\u0648\u0644\u0627\u064b \u0627\u0633\u062a\u062e\u062f\u0627\u0645 <strong>pd.to_datetime<\/strong> \u0644\u062a\u062d\u0648\u064a\u0644 \u0643\u0644 \u0639\u0645\u0648\u062f \u0625\u0644\u0649 \u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0648\u0627\u0644\u0648\u0642\u062a \u0642\u0628\u0644 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u0627\u0644\u062a\u0648\u0627\u0631\u064a\u062e:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#convert columns to datetime\n<\/span>df[[' <span style=\"color: #ff0000;\">start_date<\/span> ', ' <span style=\"color: #ff0000;\">end_date<\/span> ']] = df[[' <span style=\"color: #ff0000;\">start_date<\/span> ', ' <span style=\"color: #ff0000;\">end_date<\/span> ']]. <span style=\"color: #3366ff;\">apply<\/span> (pd. <span style=\"color: #3366ff;\">to_datetime<\/span> )\n\n<span style=\"color: #008080;\">#calculate difference between dates\n<\/span>df[' <span style=\"color: #ff0000;\">diff_days<\/span> '] = (df[' <span style=\"color: #ff0000;\">end_date<\/span> '] - df[' <span style=\"color: #ff0000;\">start_date<\/span> ']) \/ np. <span style=\"color: #3366ff;\">timedelta64<\/span> ( <span style=\"color: #008000;\">1<\/span> ,' <span style=\"color: #ff0000;\">D<\/span> ')\n\n<span style=\"color: #008080;\">#view updated DataFrame\n<\/span><span style=\"color: #008000;\">print<\/span> (df)\n\n  start_date end_date diff_days\n0 2020-01-05 2020-06-30 177.0\n1 2020-01-12 2020-07-31 201.0\n2 2020-01-19 2020-08-31 225.0\n<\/span><\/span><\/strong><\/pre>\n<p style=\";text-align:right;direction:rtl\"> <span style=\"color: #000000;\">\u0645\u0646\u0630 \u0623\u0646 \u0642\u0645\u0646\u0627 \u0623\u0648\u0644\u0627\u064b \u0628\u062a\u062d\u0648\u064a\u0644 \u0643\u0644 \u0639\u0645\u0648\u062f \u0625\u0644\u0649 \u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0648\u0627\u0644\u0648\u0642\u062a\u060c \u062a\u0645\u0643\u0646\u0627 \u0645\u0646 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u0627\u0644\u062a\u0648\u0627\u0631\u064a\u062e \u0628\u0646\u062c\u0627\u062d \u062f\u0648\u0646 \u0623\u064a \u0623\u062e\u0637\u0627\u0621.<\/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\u0646\u0637\u0627\u0642-\u0627\u0644\u0632\u0645\u0646\u064a-\u0627\u0644\u0628\u0627\u0646\u062f\u0627\/\" target=\"_blank\" rel=\"noopener\">\u0643\u064a\u0641\u064a\u0629 \u0625\u0646\u0634\u0627\u0621 \u0646\u0637\u0627\u0642 \u0632\u0645\u0646\u064a \u0641\u064a \u0627\u0644\u0628\u0627\u0646\u062f\u0627<\/a><br \/> <a href=\"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-\u0627\u0633\u062a\u062e\u0631\u0627\u062c-\u0634\u0647\u0631-\u0645\u0646-\u0627\u0644\u062a\u0627\u0631\u064a\u062e\/\" target=\"_blank\" rel=\"noopener\">\u0643\u064a\u0641\u064a\u0629 \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u0627\u0644\u0634\u0647\u0631 \u0645\u0646 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0641\u064a \u0627\u0644\u0628\u0627\u0646\u062f\u0627<\/a><br \/> <a href=\"https:\/\/statorials.org\/ar\/\u0627\u0644\u0628\u0627\u0646\u062f\u0627-\u0627\u0644\u0637\u0627\u0628\u0639-\u0627\u0644\u0632\u0645\u0646\u064a-\u0627\u0644\u062a\u0627\u0631\u064a\u062e-\u0627\u0644\u0648\u0642\u062a\/\" target=\"_blank\" rel=\"noopener\">\u0643\u064a\u0641\u064a\u0629 \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0637\u0627\u0628\u0639 \u0627\u0644\u0632\u0645\u0646\u064a \u0625\u0644\u0649 \u0627\u0644\u062a\u0627\u0631\u064a\u062e\/\u0627\u0644\u0648\u0642\u062a \u0641\u064a Pandas<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u064a\u0645\u0643\u0646\u0643 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0628\u0646\u0627\u0621 \u0627\u0644\u062c\u0645\u0644\u0629 \u0627\u0644\u062a\u0627\u0644\u064a \u0644\u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a pandas DataFrame: df[&#8216; diff_days &#8216;] = (df[&#8216; end_date &#8216;] &#8211; df[&#8216; start_date &#8216;]) \/ np. timedelta64 ( 1 ,&#8217; D &#8216;) \u064a\u0642\u0648\u0645 \u0647\u0630\u0627 \u0627\u0644\u0645\u062b\u0627\u0644 \u062a\u062d\u062f\u064a\u062f\u064b\u0627 \u0628\u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u0627\u0644\u062a\u0648\u0627\u0631\u064a\u062e \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0629 \u0641\u064a \u0627\u0644\u0639\u0645\u0648\u062f\u064a\u0646 end_date \u0648 start_date \u0645\u0646 \u062d\u064a\u062b \u0627\u0644\u0623\u064a\u0627\u0645. \u0644\u0627\u062d\u0638 \u0623\u0646\u0647 \u064a\u0645\u0643\u0646\u0646\u0627 \u0627\u0633\u062a\u0628\u062f\u0627\u0644 &#8220;D&#8221; \u0641\u064a \u0627\u0644\u062f\u0627\u0644\u0629 [&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>\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 - Statorials<\/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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a Pandas DataFrame\u060c \u0645\u0639 \u0639\u062f\u0629 \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\u062e\u062a\u0644\u0627\u0641-\u062a\u0627\u0631\u064a\u062e-\u0627\u0644\u0628\u0627\u0646\u062f\u0627\/\" \/>\n<meta property=\"og:locale\" content=\"az_AZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 - Statorials\" \/>\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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a Pandas DataFrame\u060c \u0645\u0639 \u0639\u062f\u0629 \u0623\u0645\u062b\u0644\u0629.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ar\/\u0627\u062e\u062a\u0644\u0627\u0641-\u062a\u0627\u0631\u064a\u062e-\u0627\u0644\u0628\u0627\u0646\u062f\u0627\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-19T20:21:26+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/\",\"url\":\"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/\",\"name\":\"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ar\/#website\"},\"datePublished\":\"2023-07-19T20:21:26+00:00\",\"dateModified\":\"2023-07-19T20:21:26+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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a Pandas DataFrame\u060c \u0645\u0639 \u0639\u062f\u0629 \u0623\u0645\u062b\u0644\u0629.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/#breadcrumb\"},\"inLanguage\":\"azb\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0628\u064a\u062a\",\"item\":\"https:\/\/statorials.org\/ar\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646\"}]},{\"@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":"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 - Statorials","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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a Pandas DataFrame\u060c \u0645\u0639 \u0639\u062f\u0629 \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\u062e\u062a\u0644\u0627\u0641-\u062a\u0627\u0631\u064a\u062e-\u0627\u0644\u0628\u0627\u0646\u062f\u0627\/","og_locale":"az_AZ","og_type":"article","og_title":"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 - Statorials","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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a Pandas DataFrame\u060c \u0645\u0639 \u0639\u062f\u0629 \u0623\u0645\u062b\u0644\u0629.","og_url":"https:\/\/statorials.org\/ar\/\u0627\u062e\u062a\u0644\u0627\u0641-\u062a\u0627\u0631\u064a\u062e-\u0627\u0644\u0628\u0627\u0646\u062f\u0627\/","og_site_name":"Statorials","article_published_time":"2023-07-19T20:21:26+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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/","url":"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/","name":"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/ar\/#website"},"datePublished":"2023-07-19T20:21:26+00:00","dateModified":"2023-07-19T20:21:26+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 \u062d\u0633\u0627\u0628 \u0641\u0631\u0642 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646 \u0641\u064a Pandas DataFrame\u060c \u0645\u0639 \u0639\u062f\u0629 \u0623\u0645\u062b\u0644\u0629.","breadcrumb":{"@id":"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/#breadcrumb"},"inLanguage":"azb","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ar\/%d8%a7%d8%ae%d8%aa%d9%84%d8%a7%d9%81-%d8%aa%d8%a7%d8%b1%d9%8a%d8%ae-%d8%a7%d9%84%d8%a8%d8%a7%d9%86%d8%af%d8%a7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0628\u064a\u062a","item":"https:\/\/statorials.org\/ar\/"},{"@type":"ListItem","position":2,"name":"\u0627\u0644\u0628\u0627\u0646\u062f\u0627: \u0643\u064a\u0641\u064a\u0629 \u062d\u0633\u0627\u0628 \u0627\u0644\u0641\u0631\u0642 \u0628\u064a\u0646 \u062a\u0627\u0631\u064a\u062e\u064a\u0646"}]},{"@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\/2971"}],"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=2971"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/posts\/2971\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/media?parent=2971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/categories?post=2971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ar\/wp-json\/wp\/v2\/tags?post=2971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}