import datetime dt = datetime.datetime.now() print('Version:',dt.strftime('%Yå¹´%mæ%dæ¥')) æ¬ãµã¤ãã«é¢ããã³ã¡ã³ãçã¯GitHubã®Discussionsãããã¯[email protected]ã«ãé£çµ¡ãã ããã ã¯ããã«# æ¬ãµã¤ãã®ç®çã¯æ¬¡ã®ï¼ã¤ã®ãµã¤ããå¦ç¿ããããã«å¿ è¦ãªPythonã®åºç¤ã®è§£èª¬ã§ããã Pythonã§å¦ã¶ãã¯ãçµæ¸å¦ï¼ä¸ç´ï¼ã¬ãã«ï¼ Pythonã§å¦ã¶å ¥éè¨éçµæ¸å¦ 次ã®12ç« ããæ§æããã¦ããã Pythonå ¥éI ããã°ã©ãã³ã°è¨èªã§ããPythonã¯ï¼æ¥æ¬èªã¨åæ§ã«ææ³ã»è¡¨ç¾ã»åèªã決ã¾ã£ã¦ããï¼ãããã®ä½¿ãæ¹ã説æãããå¤å½èªãå¦ã¶ãã¨ã¨ä¼¼ãæ§ãªãã®ãã¨ä¸å®ã«ãªã人ãããããç¥ããªããï¼ããã§ã¯ãªããæ®ã©ã®äººã¯è±èªãå¦ãã ã¨æããï¼å®ã¯Pythonã¯è±
é´æ¨ããã®ãï¼@takanoryï¼ã§ããä»æã®ãPython Monthly Topicsãã§ã¯ãWebãã©ã¦ã¶ä¸ã§Pythonãåä½ããPyScriptã«ã¤ãã¦ãå é¨æ§é ãªã©ãå«ãã¦è©³ãã解説ãããã¨æãã¾ãã PyScriptå ¬å¼ãµã¤ãï¼https://pyscript.net/ï¼ Warningï¼PyScriptã¯ç¾å¨é常ã«æ´»çºã«éçºãé²ãã§ãããããã¯ãã®ãããå°æ¥çã«ãã®è¨äºã®ãµã³ãã«ã³ã¼ããåããªããªãå¯è½æ§ãããã¾ããè¨äºå·çæç¹ã§ã¯ææ°ãã¼ã¸ã§ã³ã§ããPyScript 2023.03.1ã§åä½ç¢ºèªãã¦ãã¾ãããã¾ãåããªãå ´åã¯PyScriptã®å ¬å¼ããã¥ã¡ã³ããªã©ãåç §ãã¦ã¿ã¦ãã ããã PyScript - PyScript documentation PyScriptã¨ã¯ï¼ PyScriptã¯å ¬å¼ãµã¤ãã«ãRun Python in Your HTMLãã¨æ¸ãã¦ããã¨
Pythonã«ããããã¶ã¤ã³ãã¿ã¼ã³ å½ãµã¤ãã«ã¤ã㦠GoFã®å®ç¾©ãã23ã³ã®ãã¶ã¤ã³ãã¿ã¼ã³ãPythonã§å®è£ ãã¾ãã ãã ããPythonã®ãã«ãã¤ã³æ©è½ã§å®ç¾ã§ãããã¿ã¼ã³ãããã¾ãã ãã®éã¯ããã«ãã¤ã³æ©è½ã®ç´¹ä»ã«çãã¾ãã Pythonãããæ¸ãæ¹ï¼Pythonicãªæ¸ãæ¹ï¼ãã§ãããã®ã¯å¤å ¸çãªå®è£ ã¨Pythonicãªå®è£ ã®ä¸¡æ¹ãç´¹ä»ãã¾ãã å ¨ãã¶ã¤ã³ãã¿ã¼ã³ ãã¿ã¼ã³ã«ãã´ãª ãã¿ã¼ã³å ã³ã¡ã³ã
ãã¸ãã¹ææ¸ããã¼ã¿åãæ§é ãå 容ãç解ããã¢ããªã±ã¼ã·ã§ã³ã¯ããã¥ã¡ã³ãã»ã¤ã³ããªã¸ã§ã³ã¹ã¨å¼ã°ããç»åå¦çãèªç¶è¨èªå¦çã¨ãã£ãè¤æ°ã®è¦ç´ æè¡ãçµã¿åããã¦éçºããå¿ è¦ãããã¾ããä½ãå¿ è¦ã§ã©ãå®ç¾ããã°è¯ãã®ãã¨ãã£ã第ä¸æ©ããPythonã§ã®å ·ä½çãªæ§ç¯äºä¾ã¨ã¨ãã«ç´¹ä»ãã¾ãã httpsâ¦
æ©æ¢°å¦ç¿ã®ããã®ãããPythonã©ã¤ãã©ãª Image by Free-Photos from Pixabay ã¯ããã« Pythonã¯æ©æ¢°å¦ç¿ã«ä¸å¯æ¬ ãªè¦ç´ ã§ãã©ã¤ãã©ãªã¯ä½æ¥ãããåç´ã«ãã¦ããã¾ããæè¿ãMLã®ããã¸ã§ã¯ãã«åãçµãã§ããæã«ãç´ æ´ãããã©ã¤ãã©ãªã6ã¤è¦ã¤ãã¾ãããããã§ã¯ããããç´¹ä»ãã¾ãã 1. clean-text clean-textã¯æ¬å½ã«ç´ æ´ãããã©ã¤ãã©ãªã§ãã¹ã¯ã¬ã¤ãã³ã°ãã½ã¼ã·ã£ã«ã¡ãã£ã¢ãã¼ã¿ãå¦çããæã«ã¾ã使ãã¹ããã®ã§ããæãç´ æ´ãããç¹ã¯ããã¼ã¿ãã¯ãªã¼ã³ã¢ããããããã«é·ãåã£ãã³ã¼ããæ£è¦è¡¨ç¾ãå¿ è¦ã¨ããªããã¨ã§ãã ããã¤ãã®ä¾ãè¦ã¦ã¿ã¾ãããã ã¤ã³ã¹ãã¼ã« #Importing the clean text library from cleantext import clean # Sample text text = """
第1ç« Pythonã®æ¦è¦ã¨Google Colabã®ä½¿ãæ¹ 1.1 Pythonã®ç¹å¾´ 1.2 Google Colabã®ä½¿ãæ¹ 1.3 èª²é¡ ç¬¬2ç« æ¡ä»¶åå²ã¨ç¹°ãè¿ãå¦ç 2.1 å¤æ°ã¨å 2.2 æ¡ä»¶åå²ã¨ç¹°ãè¿ã 2.3 ãã¥ã¼ãã³æ³ 2.4 èª²é¡ ç¬¬3ç« é¢æ°ã¨ã¹ã³ã¼ã 3.1 Whileæ 3.2 ã«ã¼ãã®ã¹ãããã¨è±åº 3.3 é¢æ° 3.4 ã¹ã³ã¼ã 3.5 èª²é¡ ç¬¬4ç« ãªã¹ãã¨ã¿ãã« 4.1 ãªã¹ã 4.2 ã¿ãã« 4.3 enumerate 4.4 ã¡ã¢ãªä¸ã§ã®ãªã¹ãã®è¡¨ç¾ 4.5 åç §ã®å¤æ¸¡ã 4.6 ãªã¹ãå å è¡¨è¨ 4.7 ã³ããæ²ç· 4.8 èª²é¡ ç¬¬5ç« æååå¦ç 5.1 æååã¨æåã³ã¼ã 5.2 è¾æ¸ 5.3 æ£è¦è¡¨ç¾ 5.4 ã¯ã¼ãã¯ã©ã¦ã 5.5 èª²é¡ ç¬¬6ç« ãã¡ã¤ã«æä½ 6.1 ãã¡ã¤ã«ã·ã¹ãã 6.2 Pythonã§ã®ãã¡ã¤ã«æä½ 6.3 CSV
æ¬ç¨¿ã¯ã2021å¹´5æ26æ¥ã«å ¬éããè¨äºãã2023å¹´11æ13æ¥ã®ææ°æ å ±ã«åããã¦æ¹è¨ãããã®ã§ããæ±å¤§ã¨äº¬å¤§ã®ã©ã¡ãã2023å¹´çãå ¬éããã¦ãã¾ãã ããã°ã©ãã³ã°è¨èªPythonãç¿å¾ãããå ´åãã¾ãã¯æç§æ¸åã®ã³ã³ãã³ããªã©ã§ä¸éãã®åºç¤ç¥èãå¦ã¶å¿ è¦ãããã ããããããã£ãç®çã«åãã³ã³ãã³ãã¯ãæ¸ç±ãå«ãã¦ãã¾ãã¾ãªãã®ããããæ¬ç¨¿ã§ã¯ãã®ä¸ã§ããæ±äº¬å¤§å¦ãããã¯äº¬é½å¤§å¦ã®ææ¥ã§ä½¿ããã¦ããä¿¡é ¼æ§ãé«ãé»åæ¸ç±ããããç¡æã§å ¥æå¯è½ãªãã®ãç´¹ä»ããã æ±å¤§ï¼äº¬å¤§ã®ãPythonæç§æ¸ãé»åæ¸ç± æ±äº¬å¤§å¦ãPythonããã°ã©ãã³ã°å ¥éã
ãPythonã§ã¯ãããæ°å¦ã®åéº âããã°ã©ãã³ã°ã§å³è§£ãã代æ°ãå¹¾ä½å¦ãä¸è§é¢æ°ã Peter Farrellãèãé´æ¨ 幸æã訳 2020å¹´11æ16æ¥çºå£²äºå® 380ãã¼ã¸ ISBN978-4-87311-930-4 å®ä¾¡3,300åï¼ç¨è¾¼ï¼ æ°å¦ã8å¹´éãã³ã³ãã¥ã¼ã¿ãµã¤ã¨ã³ã¹ã3å¹´éæãããã¨ã®ããèè ããèªãã®çµé¨ã«åºã¥ããããããã®æ代ã«å¿ è¦ãªæ°å¦ã¨ããã°ã©ãã³ã°ã®è½åã身ã«ã¤ãã¦ãããããã¨çãã¨ã£ãæ欲ä½ãå®ç¾©ãå½é¡ããå ¥ãä¼çµ±çãªã¢ããã¼ãã§ã¯ãªããããã°ã©ãã³ã°ã«ããè¦è¦çã¢ããã¼ãã§ç´æçãªç解ãä¿ãã¾ããæ°å¦ã®è¦ç¹ããããã°ã©ãã³ã°ãçºããã¾ãéã«ããã°ã©ãã³ã°ã®è¦ç¹ããæ°å¦ãçºãããã¨ã§ãéå±ãªè¨ç®åé¡ã¯ããã¾ãã¾ãªå·¥å¤«ãå¯è½ãªããã°ã©ãã³ã°ã®èª²é¡ã«ãªããããã°ã©ãã³ã°ã®ææ³ã¯ãæ°å¦ã®åé¡ã解ãä¸ã§ã®å¼·åãªæ¦å¨ã¨ãªããããããã®æ°ããªé åã«æ°ã¥ãããããã£ãã
ã¯ããã« 2020/8/12ã«çºå£²ãããImpractical Python Projects: Playful Programming Activities to Make You Smarterã®æ¥æ¬èªè¨³æ¸ã§ããããå®ç¨çã§ãªãPythonããã°ã©ãã³ã°ããã²ãããªäºããç®æ¬ãã¦ããã ãäºã«ãªã£ããï¼è¨³è ãååã§ããï¼ å®ç¨çã§ãªãPythonããã°ã©ãã³ã°: 楽ããã³ã¼ããæ¸ãã¦è³¢ããªãã! ä½è :ã´ã©ã¼ã³,ãªã¼çºå£²æ¥: 2020/08/12ã¡ãã£ã¢: åè¡æ¬ ãããã¡ãªããã°ã©ãã³ã°åå¦è åãã®æ¬ãã1段ä¸ãã£ãä¸ç´è åãã®è¯ãæ¬ã ã¨æããã®ã§ãå½ããã°ã§ãã¾ã«ãã£ã¦ããçè ã訳è ã«åªã³ã売ãã·ãªã¼ãºã®ä¸è²«ã¨ãã¦ãææ³ãè¨ãã æ¸ç±ã®æ¦è¦ ãå®ç¨çã§ãªãPythonããã°ã©ãã³ã°ãã¯ãæ³å®ããä¸ç´ã¬ãã«ã®ã¢ã«ã´ãªãºã ã®åé¡ãä¾ã«åããPythonã§ã®ç¾ããã³ã¼ãã®æ¸ãæ¹ããã³ã³ãã¥
7-1. pandasã©ã¤ãã©ãªÂ¶ pandasã©ã¤ãã©ãªã«ã¤ãã¦èª¬æãã¾ãã åè http://pandas.pydata.org/pandas-docs/stable/getting_started/index.html http://pandas.pydata.org/pandas-docs/stable/ pandasã©ã¤ãã©ãªã«ã¯ãã¼ã¿åæä½æ¥ãæ¯æ´ããããã®ã¢ã¸ã¥ã¼ã«ãå«ã¾ãã¦ãã¾ãã以ä¸ã§ã¯ãpandasã©ã¤ãã©ãªã®ã¢ã¸ã¥ã¼ã«ã®åºæ¬çãªä½¿ãæ¹ã«ã¤ãã¦èª¬æãã¾ãã pandasã©ã¤ãã©ãªã使ç¨ããã«ã¯ãã¾ã pandas ã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ããã¾ããæ £ä¾ã¨ãã¦ãåã¢ã¸ã¥ã¼ã«ã pd ã¨å¥åãã¤ãã¦ã³ã¼ãã®ä¸ã§ä½¿ç¨ãã¾ãããã¼ã¿ã®çæã«ç¨ãããããããã§ã¯ numpy ã¢ã¸ã¥ã¼ã«ãä½µãã¦ã¤ã³ãã¼ããã¾ãã ã·ãªã¼ãºã¨ãã¼ã¿ãã¬ã¼ã ¶ pandas ã¢ã¸ã¥ã¼ã«ã¯ããªã¹ããé åã
ãããã¤ã³ã¿ã¼ãããã¯5æ22æ¥ã人工è¡æãåå¾ãããã¼ã¿ã使ã£ã¦æ©æ¢°å¦ç¿ãããã°ã©ãã³ã°ã®åºç¤ãå¦ã¹ãeã©ã¼ãã³ã°ææãç¡åå ¬éããã¨çºè¡¨ãããå¨å® ã«ãããªã³ã©ã¤ã³å¦ç¿ããµãã¼ããããèãã æä¾ããã®ã¯ãåç»ã§è¡æãã¼ã¿ãããã°ã©ãã³ã°ã®åºç¤ç¥èããã¼ã¿ã®è§£ææé ãªã©ãå¦ã¹ããTellus Trainerãã¨ãPythonã使ã£ã¦ç°¡åãªç»åå¦çãè¡æç»åã®å å·¥ãªã©ãå¦ã¹ããTellusÃTechAcademy åå¿è åã Tellus å¦ç¿ã³ã¼ã¹ããè¡æãã¼ã¿ãã¯ã©ã¦ãä¸ã§åæã§ããå社ã®ãµã¼ãã¹ãTellusãã®å©ç¨ãæ³å®ãã¦ããã é¢é£è¨äº ããããè¡æãã¼ã¿åºç¤ãTellusãã«ãã¤ã°ããã®æ®å½±ç»åã追å ãæ°å®¿ã¨ãªã¢ãå®ç¹è¦³æ¸¬ ãããã¤ã³ã¿ã¼ãããããJAXAã®äººå·¥è¡æãã¤ã°ãããæ®å½±ããç»åããTellusãã«è¿½å ãæ°å®¿ã¨ãªã¢ã4æ2æ¥ï½5æ10æ¥ã®åå¾4æåããã«æ¯æ¥æ®å½±ãã
å¿ è¦ãªã®ã¯ãã©ã¦ã¶ã ãããã°ã©ãã³ã°ãå§ããæã«ãæåã«ã¤ã¾ã¥ãã®ãç°å¢æ§ç¯ã§ãã PyQã§ã¯ç°å¢æ§ç¯ãªãã§ããã©ã¦ã¶ãã²ããã°10ç§ã§ããã°ã©ãã³ã°ãå§ãããã¾ãã èªãã»æ¸ãã»åãããµã¤ã¯ã«ã§å®çPyQã®ã¨ãã£ã¿ã¼ç»é¢ã§ã¯ãå®éã«ãã©ã¦ã¶ã®å¾ãã§Pythonãåãã¦ãã¾ããããã«ãããææãèªãâã³ã¼ããæ¸ãâå®éã«åããã¨ããæµããç»é¢å ã§å®çµã§ãã¾ãããã¡ãããèªåã§å 容ãå¤æ´ãã¦ãåããã¦è©¦ãã¦ã¿ããã¨ãã§ãã¾ãã ããªãã®èå³ã«å¯ãæ·»ãã1500å以ä¸ããé¸ã¹ãã³ã³ãã³ãPyQã§ã®å¦ç¿ã¯ãæ°åã®åé¡ãããªããã¯ã¨ã¹ããã¨ããåä½ã§é²ã¿ã¾ãã 600ã¯ã¨ã¹ãã»1500å以ä¸åå¨ãããã¹ã¦ã®ã¯ã¨ã¹ãã¯ã好ããªé ã«å¦ã³æ¾é¡ã é¢é£ã®æ·±ãã¯ã¨ã¹ãã¯ãã¼ãã»ã³ã¼ã¹ã«ã¾ã¨ãããã¦ããã ç´æçã«æ§ã ãªã¯ã¨ã¹ããçµã¿åããã¦ãèªåã®èå³ã®ããåéãå¦ã¹ã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}