{"id":88,"date":"2024-02-20T23:25:16","date_gmt":"2024-02-20T23:25:16","guid":{"rendered":"https:\/\/belenagurtoc.virgen.io\/tech\/?p=88"},"modified":"2024-02-20T23:36:41","modified_gmt":"2024-02-20T23:36:41","slug":"python-snipets","status":"publish","type":"post","link":"https:\/\/belenagurtoc.virgen.io\/tech\/2024\/02\/20\/python-snipets\/","title":{"rendered":"Python Snipets"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">import seaborn\nseaborn.__version__\n\n\nimport pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport seaborn as sns\n\n\n  only22_PeriodLast_uniques &lt;- filtered_sum_salidas_only22_PeriodLast %>% group_by(CODIGO_ARTICULO) %>% summarise (n = n())\n\n#Number of survivors\ntitanic.pivot_table('survived', index='sex', columns='class', aggfunc=\"sum\")\n\njupyter nbconvert --to webpdf --no-input your-notebook-file.ipynb\njupyter nbconvert --to webpdf ML_classification_v2.ipynb\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>import seaborn seaborn.__version__ import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns only22_PeriodLast_uniques &lt;- filtered_sum_salidas_only22_PeriodLast %>% group_by(CODIGO_ARTICULO) %>% summarise (n = n()) #Number of survivors titanic.pivot_table(&#8216;survived&#8217;, index=&#8217;sex&#8217;, columns=&#8217;class&#8217;, aggfunc=&#8221;sum&#8221;) jupyter nbconvert &#8211;to webpdf &#8211;no-input your-notebook-file.ipynb jupyter nbconvert &#8211;to webpdf ML_classification_v2.ipynb<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":1,"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/posts\/88\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belenagurtoc.virgen.io\/tech\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}