jq Manual jqã§ç°¡åJSONå å·¥ ï½ Developers.IO jqã³ãã³ããå®ã¯é«æ§è½ããã¦ãããã話 - beatsync.net JSONãè¶ çµ¶ã«èªã¿ããããã jq ã³ãã³ã - WebAPIããªããªä½¿ãoréçºããäººå¿ é CLIã§JSONã®æ´å½¢ããã - ( êªâêª) ããããæ¥è¨ JSONå½¢å¼ã®æ å ±ãæ§ã ãªæ¡ä»¶ãæ¸å¼ã¨ãã¦æå½¢ããã£ã«ã¿ãªã³ã°ãã¼ã«ãjqããä¸è¨é¢é£ã¨ã³ããªã§ç§ããã®ãã¼ã«ã®åå¨ãç¥ãäºã«ãªã£ãã®ã§ããããã¼ã«ã®ç°¡æãã»ä¾¿å©ãã«æåããªããç§ãã¡ããã¡ããå©ç¨ããã¦ããã£ã¦ãã¾ãã ããã§ãã®ã¨ã³ããªã§ã¯ãjqå ¬å¼ãã¼ã¸ã«å±éããã¦ããå©ç¨ã¬ã¤ãã»ãªãã¡ã¬ã³ã¹çãªä½ç½®ä»ãã®ãjq Manualããåçµãã¦ããã£ããæ¥æ¬èªè¨³ãã¦ã¿ã¾ããããã£ãã訳ãªã®ã§ãã®é¨åã®è¨³ããããã»ééã£ã¦ãçããã¾ããã御ææé ããã¨å¹¸ãã§ããä¾ç¤ºããã¦ãããµã³ãã«ã³ã¼ãã
jq åã«ä»¥ä¸ã®ãã³ãã³åç»ã®ãã¼ã¿ã»ããã®è¨äºã§ã使ãã¾ããããjqã³ãã³ãã¯JSONãå¤å½¢ãããä¸é¨ãæ½åºãããããã®ã«ã¨ã¦ã便å©ãªã³ãã³ãã§ã ãã³ãã³åç»ã®ãã¼ã¿ã»ãããå ¬éãããããã - å¯ç©æ¯ç @Scaled_Wurm ããã¥ã¢ã«ãè¦ãã¨ãæ¡ä»¶ã«å¿ããå¦çã¨ãæ大å¤ãæ±ããã¨ãæå¤ã¨è¤éãªæ©è½ã使ããã¨ãã§ãã¾ã jq Manual 軽éJSONãã¼ãµã¼ãjqãã®ããã¥ã¡ã³ãï¼ãjq Manualãããã£ããæ¥æ¬èªè¨³ãã¦ã¿ã¾ãã ï½ Developers.IO ã¾ã以ä¸ã®ãµã¤ãã§ãªã³ã©ã¤ã³ä¸ã§è©¦ãã¾ã jq play JSONãCSVã«å¤æ JSONãCSVã«ç´ãããæããã£ã¦ä½¿ãæ¹ã調ã¹ãã®ã§ã¡ã¢ãã¦ããã¾ã åç´ãªä¾ ã¾ãã¯åç´ã«ä»¥ä¸ã®ãããªJSONãCSVã«å¤æãã¾ã {"key1": 1, "key2": 2} æ¹æ³1 - æååå±é æååä¸ã®\()ã®ä¸èº«ã¯å±éã
ãã¡ãã®ç¶ãã ä¸ã®è¨äºã§ã¯ bool ã§ã®ãã¼ã¿é¸æã«ã¤ã㦠æå¾ã«ããã£ã¨æ¸ãã¦çµããããã®ã ããä¸çªãã使ãã¨ãããªã®ã§ä¸ç·¨ã¨ãã¦è£è¶³ã ã¾ã __getitem__ ã ix ã®è¨æ³ã§ã¯ã次ã®ãããªæå®ã«ãã£ã¦ è¡ / åãé¸æãããã¨ãã§ããã index, columns ã®ã©ãã«ãç´æ¥æå®ãã¦ã®é¸æ index, columns ã®çªå·(é åº)ãæå®ãã¦ã®é¸æ index, columns ã«å¯¾å¿ãã bool ã®ãªã¹ããæå®ãã¦ã®é¸æ ããã§ã¯ä¸è¨ã®é¸ææ¹æ³ããã¼ã¹ã¨ãã¦ãã¦ã¼ã¹ã±ã¼ã¹ãã¨ã« Index ã Series ã®ãããã㣠/ ã¡ã½ããã使ã£ã¦ã§ããã ãã·ã³ãã«ã«ãã¼ã¿é¸æãè¡ãæ¹æ³ãã¾ã¨ããã è£è¶³ ä¸é¨ã®å 容ã¯ãã¡ãã®è¨äºã¨ããã¶ããä¸ã®è¨äºã®ã»ããç°¡åãªå 容ãªã®ã§ãå¿ è¦ãªæ¹ã¯ã¾ããã¡ããåç §ã ç°¡åãªãã¼ã¿æä½ã Python pandas ã§è¡ã - S
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}