Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 71fe143d..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/404.html b/404.html index a647326c..00ceda83 100644 --- a/404.html +++ b/404.html @@ -5,8 +5,8 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
["'])(?.*?)\1/,Ar=/\{(? [\d,-]+)\}/,Er={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Sr={...Er,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Nr=Object.keys(Er);function jr(e,t){const n=e.map((e=>{const{start:n,end:s}=Sr[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Rr(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:r}=t;if(r&&Ar.test(r)){const e=r.match(Ar).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${r}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=wr()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return jr(["js","jsBlock"],t);case"jsx":case"tsx":return jr(["js","jsBlock","jsx"],t);case"html":return jr(["js","jsBlock","html"],t);case"python":case"py":case"bash":return jr(["bash"],t);case"markdown":case"md":return jr(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return jr(["tex"],t);case"lua":case"haskell":case"sql":return jr(["lua"],t);case"wasm":return jr(["wasm"],t);case"vb":case"vba":case"visual-basic":return jr(["vb","rem"],t);case"vbnet":return jr(["vbnet","rem"],t);case"batch":return jr(["rem"],t);case"basic":return jr(["rem","f90"],t);case"fsharp":return jr(["js","ml"],t);case"ocaml":case"sml":return jr(["ml"],t);case"fortran":return jr(["f90"],t);case"cobol":return jr(["cobol"],t);default:return jr(Nr,t)}}(s,o),a=n.split("\n"),c=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),l=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),h=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d void 0!==e));l[t]?c[l[t]].range+=`${d},`:u[t]?c[u[t]].start=d:h[t]&&(c[h[t]].range+=`${c[h[t]].start}-${d-1},`),a.splice(d,1)}n=a.join("\n");const p={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;wr()(n).forEach((e=>{p[e]??=[],p[e].push(t)}))})),{lineClassNames:p,code:n}}const Lr={codeBlockContainer:"codeBlockContainer_Ckt0"};function Or(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const r=t[s];r&&"string"==typeof o&&(n[r]=o)})),n}(hr());return(0,x.jsx)(t,{...n,style:s,className:(0,i.A)(n.className,Lr.codeBlockContainer,vr.G.common.codeBlock)})}const Dr={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function Pr(e){let{children:t,className:n}=e;return(0,x.jsx)(Or,{as:"pre",tabIndex:0,className:(0,i.A)(Dr.codeBlockStandalone,"thin-scrollbar",n),children:(0,x.jsx)("code",{className:Dr.codeBlockLines,children:t})})}var Br=n(9532);const qr={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Mr(e,t){const[n,o]=(0,s.useState)(),r=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{r()}),[r]),function(e,t,n){void 0===n&&(n=qr);const o=(0,Br._q)(t),r=(0,Br.Be)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,r),()=>t.disconnect()}),[e,o,r])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),r())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const Fr={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function $r(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:r}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const a=o({line:t,className:(0,i.A)(n,s&&Fr.codeLine)}),c=t.map(((e,t)=>(0,x.jsx)("span",{...r({token:e,key:t})},t)));return(0,x.jsxs)("span",{...a,children:[s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:Fr.codeLineNumber}),(0,x.jsx)("span",{className:Fr.codeLineContent,children:c})]}):c,(0,x.jsx)("br",{})]})}function Kr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function Hr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Vr={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Ur(e){let{code:t,className:n}=e;const[o,r]=(0,s.useState)(!1),a=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),o=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const r=document.getSelection(),i=r.rangeCount>0&&r.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}s.remove(),i&&(r.removeAllRanges(),r.addRange(i)),o&&o.focus()}(t),r(!0),a.current=window.setTimeout((()=>{r(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,x.jsx)("button",{type:"button","aria-label":o?(0,rr.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,rr.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,rr.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.A)("clean-btn",n,Vr.copyButton,o&&Vr.copyButtonCopied),onClick:c,children:(0,x.jsxs)("span",{className:Vr.copyButtonIcons,"aria-hidden":"true",children:[(0,x.jsx)(Kr,{className:Vr.copyButtonIcon}),(0,x.jsx)(Hr,{className:Vr.copyButtonSuccessIcon})]})})}function Wr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const zr={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Gr(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,rr.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,x.jsx)("button",{type:"button",onClick:n,className:(0,i.A)("clean-btn",t,s&&zr.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,x.jsx)(Wr,{className:zr.wordWrapButtonIcon,"aria-hidden":"true"})})}function Xr(e){let{children:t,className:n="",metastring:o,title:r,showLineNumbers:a,language:l}=e;const{prism:{defaultLanguage:u,magicComments:h}}=(0,ur.p)(),p=function(e){return e?.toLowerCase()}(l??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??u),d=hr(),f=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),r=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=r.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[r,e]),a=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=r.current,n=e>t||r.current.querySelector("code").hasAttribute("style");o(n)}),[r]);return Mr(r,a),(0,s.useEffect)((()=>{a()}),[e,a]),(0,s.useEffect)((()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)})),[a]),{codeBlockRef:r,isEnabled:e,isCodeScrollable:n,toggle:i}}(),m=function(e){return e?.match(Cr)?.groups.title??""}(o)||r,{lineClassNames:k,code:g}=Rr(t,{metastring:o,language:p,magicComments:h}),_=a??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,x.jsxs)(Or,{as:"div",className:(0,i.A)(n,p&&!n.includes(`language-${p}`)&&`language-${p}`),children:[m&&(0,x.jsx)("div",{className:Dr.codeBlockTitle,children:m}),(0,x.jsxs)("div",{className:Dr.codeBlockContent,children:[(0,x.jsx)(c.f4,{theme:d,code:g,language:p??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:r}=e;return(0,x.jsx)("pre",{tabIndex:0,ref:f.codeBlockRef,className:(0,i.A)(t,Dr.codeBlock,"thin-scrollbar"),style:n,children:(0,x.jsx)("code",{className:(0,i.A)(Dr.codeBlockLines,_&&Dr.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,x.jsx)($r,{line:e,getLineProps:o,getTokenProps:r,classNames:k[t],showLineNumbers:_},t)))})})}}),(0,x.jsxs)("div",{className:Dr.buttonGroup,children:[(f.isEnabled||f.isCodeScrollable)&&(0,x.jsx)(Gr,{className:Dr.codeButton,onClick:()=>f.toggle(),isEnabled:f.isEnabled}),(0,x.jsx)(Ur,{className:Dr.codeButton,code:g})]})]})]})}const Jr=(Yr=function(e){let{children:t,...n}=e;const o=(0,a.A)(),r=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof r?Xr:Pr;return(0,x.jsx)(i,{...n,children:r},String(o))},function(e){return e.live?(0,x.jsx)(Tr,{scope:br,...e}):(0,x.jsx)(Yr,{...e})});var Yr;function Qr(e){return(0,x.jsx)("code",{...e})}var Zr=n(8774);var ei=n(3427),ti=n(1422);const ni={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function si(e){return!!e&&("SUMMARY"===e.tagName||si(e.parentElement))}function oi(e,t){return!!e&&(e===t||oi(e.parentElement,t))}function ri(e){let{summary:t,children:n,...o}=e;(0,ei.A)().collectAnchor(o.id);const r=(0,a.A)(),c=(0,s.useRef)(null),{collapsed:l,setCollapsed:u}=(0,ti.u)({initialState:!o.open}),[h,p]=(0,s.useState)(o.open),d=s.isValidElement(t)?t:(0,x.jsx)("summary",{children:t??"Details"});return(0,x.jsxs)("details",{...o,ref:c,open:h,"data-collapsed":l,className:(0,i.A)(ni.details,r&&ni.isBrowser,o.className),onMouseDown:e=>{si(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;si(t)&&oi(t,c.current)&&(e.preventDefault(),l?(u(!1),p(!0)):u(!0))},children:[d,(0,x.jsx)(ti.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{u(e),p(!e)},children:(0,x.jsx)("div",{className:ni.collapsibleContent,children:n})})]})}const ii={details:"details_b_Ee"},ai="alert alert--info";function ci(e){let{...t}=e;return(0,x.jsx)(ri,{...t,className:(0,i.A)(ai,ii.details,t.className)})}function li(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),o=(0,x.jsx)(x.Fragment,{children:t.filter((e=>e!==n))});return(0,x.jsx)(ci,{...e,summary:n,children:o})}var ui=n(1107);function hi(e){return(0,x.jsx)(ui.A,{...e})}const pi={containsTaskList:"containsTaskList_mC6p"};function di(e){if(void 0!==e)return(0,i.A)(e,e?.includes("contains-task-list")&&pi.containsTaskList)}const fi={img:"img_ev3q"};var mi=n(7293),ki=n(418);const gi={Head:r.A,details:li,Details:li,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,x.jsx)(Qr,{...e}):(0,x.jsx)(Jr,{...e})},a:function(e){return(0,x.jsx)(Zr.A,{...e})},pre:function(e){return(0,x.jsx)(x.Fragment,{children:e.children})},ul:function(e){return(0,x.jsx)("ul",{...e,className:di(e.className)})},li:function(e){return(0,ei.A)().collectAnchor(e.id),(0,x.jsx)("li",{...e})},img:function(e){return(0,x.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,i.A)(t,fi.img))});var t},h1:e=>(0,x.jsx)(hi,{as:"h1",...e}),h2:e=>(0,x.jsx)(hi,{as:"h2",...e}),h3:e=>(0,x.jsx)(hi,{as:"h3",...e}),h4:e=>(0,x.jsx)(hi,{as:"h4",...e}),h5:e=>(0,x.jsx)(hi,{as:"h5",...e}),h6:e=>(0,x.jsx)(hi,{as:"h6",...e}),admonition:mi.A,mermaid:ki.A};function xi(e){let{children:t}=e;return(0,x.jsx)(o.x,{components:gi,children:t})}},89:(e,t)=>{"use strict";var n="\n",s=function(){function e(e){this.string=e;for(var t=[0],s=0;s this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()},8426:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,r]=t;if(s&&r){s=parseInt(s),r=parseInt(r);const e=s 0&&s.push(o+" more"),n._failMsg="is none of "+s.join(", ")):n._failMsg="is none of "+o+" types",n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.ttypes.map((function(n){return n.getChecker(e,t)}));return function(e,t){for(var o=t.unionResolver(),r=0;r =s._score)&&(s=i)}s&&s._score>0&&((t=this._propNames).push.apply(t,s._propNames),(n=this._messages).push.apply(n,s._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var r=this._messages[n];r&&t.push(e+" "+r)}return new o(e,t.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var o=this._messages[n];o&&t.push({path:e,message:o})}var r=null;for(n=t.length-1;n>=0;n--)r&&(t[n].nested=[r]),r=t[n];return r},e}();t.DetailContext=i;var a=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new i;return this.contexts.push(e),e},e}()},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,x:()=>a});var s=n(6540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7036],{9320:function(e,t,n){!function(e,t,n,s){"use strict";const o=0,r=1,i=2,a=3,c=4,l=-1;class u{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function h(e){return e}function p(e,t,n,s,o,r,i,a){return b(!1,e,t,n,s,o,r,i,a)}function d(e,t){return N(!1,e,t)}const f=(e,t,n,s,o,r,i,a)=>b(!0,e,t,n,s,o,r,i,a),m=(e,t)=>N(!0,e,t);function k(e,n,s){const{_sources:o,_sourcesContent:r}=h(e);r[t.put(o,n)]=s}function g(e,n,s=!0){const{_sources:o,_sourcesContent:r,_ignoreList:i}=h(e),a=t.put(o,n);a===r.length&&(r[a]=null),s?t.put(i,a):t.remove(i,a)}function x(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:o,_ignoreList:r}=h(e);return C(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:r.array}}function _(e){const t=x(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})}function y(e){const t=new s.TraceMap(e),n=new u({file:t.file,sourceRoot:t.sourceRoot});return A(h(n)._names,t.names),A(h(n)._sources,t.sources),h(n)._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),h(n)._mappings=s.decodedMappings(t),t.ignoreList&&A(h(n)._ignoreList,t.ignoreList),n}function T(e){const t=[],{_mappings:n,_sources:s,_names:l}=h(e);for(let u=0;u =0&&!(t>=e[s][o]);n=s--);return n}function w(e,t,n){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=n}function C(e){const{length:t}=e;let n=t;for(let s=n-1;s>=0&&!(e[s].length>0);n=s,s--);n s&&(s=o)}f(n,s);const o=n.query+n.hash;switch(s){case 2:case 3:return o;case 4:{const s=n.path.slice(1);return s?a(t||e)&&!a(s)?"./"+s+o:s+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return m}()},3534:function(e,t){!function(e){"use strict";class t{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(e){return e}function s(e,t){return n(e)._indexes[t]}function o(e,t){const o=s(e,t);if(void 0!==o)return o;const{array:r,_indexes:i}=n(e),a=r.push(t);return i[t]=a-1}function r(e){const{array:t,_indexes:s}=n(e);0!==t.length&&(s[t.pop()]=void 0)}function i(e,t){const o=s(e,t);if(void 0===o)return;const{array:r,_indexes:i}=n(e);for(let n=o+1;n Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n >>=1,c&&(o=-2147483648|-o),n[s]+=o,t}function u(e,n,s){return!(n>=s)&&e.charCodeAt(n)!==t}function h(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function d(e){const s=new Int32Array(5),o=16384,r=o-36,a=new Uint8Array(o),c=a.subarray(0,r);let l=0,u="";for(let h=0;h 0&&(l===o&&(u+=i.decode(a),l=0),a[l++]=n),0!==p.length){s[0]=0;for(let e=0;e r&&(u+=i.decode(c),a.copyWithin(0,r,l),l-=r),e>0&&(a[l++]=t),l=f(a,l,s,n,0),1!==n.length&&(l=f(a,l,s,n,1),l=f(a,l,s,n,2),l=f(a,l,s,n,3),4!==n.length&&(l=f(a,l,s,n,4)))}}}return u+i.decode(a.subarray(0,l))}function f(e,t,n,s,r){const i=s[r];let a=i-n[r];n[r]=i,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=o[n]}while(a>0);return t}e.decode=a,e.encode=d,Object.defineProperty(e,"__esModule",{value:!0})}(t)},2802:function(e,t,n){!function(e,t,n){"use strict";function s(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function o(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const r=0,i=1,a=2,c=3,l=4,u=1,h=2;function p(e,t){const n=d(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s >1),i=e[o][r]-t;if(0===i)return g=!0,o;i<0?n=o+1:s=o-1}return g=!1,n-1}function _(e,t,n){for(let s=n+1;s =0&&e[s][r]===t;n=s--);return n}function T(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function b(e,t,n,s){const{lastKey:o,lastNeedle:i,lastIndex:a}=n;let c=0,l=e.length-1;if(s===o){if(t===i)return g=-1!==a&&e[a][r]===t,a;t>=i?c=-1===a?0:a:l=a}return n.lastKey=s,n.lastNeedle=t,n.lastIndex=x(e,t,c,l)}function v(e,t){const n=t.map(w);for(let s=0;s t;s--)e[s]=e[s-1];e[t]=n}function w(){return{__proto__:null}}const C=function(e,t){const n=A(e);if(!("sections"in n))return new P(n,t);const s=[],o=[],r=[],i=[],a=[];return E(n,t,s,o,r,i,a,0,0,1/0,1/0),G({version:3,file:n.file,names:i,sources:o,sourcesContent:r,mappings:s,ignoreList:a})};function A(e){return"string"==typeof e?JSON.parse(e):e}function E(e,t,n,s,o,r,i,a,c,l,u){const{sections:h}=e;for(let p=0;p f)return;const t=j(n,e),s=0===I?d:0,o=y[I];for(let n=0;n =m)return;if(1===u.length){t.push([h]);continue}const p=x+u[i],d=u[a],k=u[c];t.push(4===u.length?[h,p,d,k]:[h,p,d,k,_+u[l]])}}}function N(e,t){for(let n=0;n s(e||"",d)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=p(f,n)),this._decodedMemo=T(),this._bySources=void 0,this._bySourceMemos=void 0}}function B(e){return e}function q(e){var n,s;return null!==(n=(s=B(e))._encoded)&&void 0!==n?n:s._encoded=t.encode(B(e)._decoded)}function M(e){var n;return(n=B(e))._decoded||(n._decoded=t.decode(B(e)._encoded))}function F(e,t,n){const s=M(e);if(t>=s.length)return null;const o=s[t],r=ee(o,B(e)._decodedMemo,t,n,D);return-1===r?null:o[r]}function $(e,t){let{line:n,column:s,bias:o}=t;if(n--,n<0)throw new Error(R);if(s<0)throw new Error(L);const r=M(e);if(n>=r.length)return Q(null,null,null,null);const u=r[n],h=ee(u,B(e)._decodedMemo,n,s,o||D);if(-1===h)return Q(null,null,null,null);const p=u[h];if(1===p.length)return Q(null,null,null,null);const{names:d,resolvedSources:f}=e;return Q(f[p[i]],p[a]+1,p[c],5===p.length?d[p[l]]:null)}function K(e,t){const{source:n,line:s,column:o,bias:r}=t;return ne(e,n,s,o,r||D,!1)}function H(e,t){const{source:n,line:s,column:o,bias:r}=t;return ne(e,n,s,o,r||O,!0)}function V(e,t){const n=M(e),{names:s,resolvedSources:o}=e;for(let r=0;r {"use strict";n.d(t,{A:()=>S});var s=n(6540),o=n(4848);function r(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),r=t.filter((e=>e!==n)),i=n?.props.children;return{mdxAdmonitionTitle:i,rest:r.length>0?(0,o.jsx)(o.Fragment,{children:r}):null}}(e.children),r=e.title??t;return{...e,...r&&{title:r},children:n}}var i=n(4164),a=n(1312),c=n(7559);const l={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function u(e){let{type:t,className:n,children:s}=e;return(0,o.jsx)("div",{className:(0,i.A)(c.G.common.admonition,c.G.common.admonitionType(t),l.admonition,n),children:s})}function h(e){let{icon:t,title:n}=e;return(0,o.jsxs)("div",{className:l.admonitionHeading,children:[(0,o.jsx)("span",{className:l.admonitionIcon,children:t}),n]})}function p(e){let{children:t}=e;return t?(0,o.jsx)("div",{className:l.admonitionContent,children:t}):null}function d(e){const{type:t,icon:n,title:s,children:r,className:i}=e;return(0,o.jsxs)(u,{type:t,className:i,children:[(0,o.jsx)(h,{title:s,icon:n}),(0,o.jsx)(p,{children:r})]})}function f(e){return(0,o.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const m={icon:(0,o.jsx)(f,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function k(e){return(0,o.jsx)(d,{...m,...e,className:(0,i.A)("alert alert--secondary",e.className),children:e.children})}function g(e){return(0,o.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const x={icon:(0,o.jsx)(g,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function _(e){return(0,o.jsx)(d,{...x,...e,className:(0,i.A)("alert alert--success",e.className),children:e.children})}function y(e){return(0,o.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const T={icon:(0,o.jsx)(y,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function b(e){return(0,o.jsx)(d,{...T,...e,className:(0,i.A)("alert alert--info",e.className),children:e.children})}function v(e){return(0,o.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const I={icon:(0,o.jsx)(v,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function w(e){return(0,o.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const C={icon:(0,o.jsx)(w,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const A={icon:(0,o.jsx)(v,{}),title:(0,o.jsx)(a.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const E={...{note:k,tip:_,info:b,warning:function(e){return(0,o.jsx)(d,{...I,...e,className:(0,i.A)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,o.jsx)(d,{...C,...e,className:(0,i.A)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,o.jsx)(k,{title:"secondary",...e}),important:e=>(0,o.jsx)(b,{title:"important",...e}),success:e=>(0,o.jsx)(_,{title:"success",...e}),caution:function(e){return(0,o.jsx)(d,{...A,...e,className:(0,i.A)("alert alert--warning",e.className),children:e.children})}}};function S(e){const t=r(e),n=(s=t.type,E[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),E.info));var s;return(0,o.jsx)(n,{...t})}},7036:(e,t,n)=>{"use strict";n.d(t,{A:()=>xi});var s=n(6540),o=n(8453),r=n(5260),i=n(4164),a=n(2303),c=n(1765),l={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function u(e){var t=window.getSelection();t.empty(),t.addRange(e)}function h(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&"KeyZ"===e.code}function p(e){e=[e.firstChild];for(var t,n="";t=e.pop();)t.nodeType===Node.TEXT_NODE?n+=t.textContent:t.nodeType===Node.ELEMENT_NODE&&"BR"===t.nodeName&&(n+="\n"),t.nextSibling&&e.push(t.nextSibling),t.firstChild&&e.push(t.firstChild);return"\n"!==n[n.length-1]&&(n+="\n"),n}function d(e){var t=window.getSelection().getRangeAt(0),n=t.collapsed?0:t.toString().length,s=document.createRange();return s.setStart(e,0),s.setEnd(t.startContainer,t.startOffset),{position:e=(s=s.toString()).length,extent:n,content:s=(s=s.split("\n"))[t=s.length-1],line:t}}function f(e,t,n){0>=t&&(t=0),(!n||0>n)&&(n=t);var s=document.createRange();e=[e.firstChild];for(var o,r=0,i=t;o=e[e.length-1];){if(o.nodeType===Node.TEXT_NODE){if(r+o.textContent.length>=i){var a=i-r;if(i===t){if(i=s,a =i){if(i===t){if(a=s,0 ";case k.template:return"template";case k.ellipsis:return"...";case k.backQuote:return"`";case k.dollarBraceL:return"${";case k.at:return"@";case k.hash:return"#";case k.eq:return"=";case k.assign:return"_=";case k.preIncDec:case k.postIncDec:return"++/--";case k.bang:return"!";case k.tilde:return"~";case k.pipeline:return"|>";case k.nullishCoalescing:return"??";case k.logicalOR:return"||";case k.logicalAND:return"&&";case k.bitwiseOR:return"|";case k.bitwiseXOR:return"^";case k.bitwiseAND:return"&";case k.equality:return"==/!=";case k.lessThan:return"<";case k.greaterThan:return">";case k.relationalOrEqual:return"<=/>=";case k.bitShiftL:return"<<";case k.bitShiftR:return">>/>>>";case k.plus:return"+";case k.minus:return"-";case k.modulo:return"%";case k.star:return"*";case k.slash:return"/";case k.exponent:return"**";case k.jsxName:return"jsxName";case k.jsxText:return"jsxText";case k.jsxEmptyText:return"jsxEmptyText";case k.jsxTagStart:return"jsxTagStart";case k.jsxTagEnd:return"jsxTagEnd";case k.typeParameterStart:return"typeParameterStart";case k.nonNullAssertion:return"nonNullAssertion";case k._break:return"break";case k._case:return"case";case k._catch:return"catch";case k._continue:return"continue";case k._debugger:return"debugger";case k._default:return"default";case k._do:return"do";case k._else:return"else";case k._finally:return"finally";case k._for:return"for";case k._function:return"function";case k._if:return"if";case k._return:return"return";case k._switch:return"switch";case k._throw:return"throw";case k._try:return"try";case k._var:return"var";case k._let:return"let";case k._const:return"const";case k._while:return"while";case k._with:return"with";case k._new:return"new";case k._this:return"this";case k._super:return"super";case k._class:return"class";case k._extends:return"extends";case k._export:return"export";case k._import:return"import";case k._yield:return"yield";case k._null:return"null";case k._true:return"true";case k._false:return"false";case k._in:return"in";case k._instanceof:return"instanceof";case k._typeof:return"typeof";case k._void:return"void";case k._delete:return"delete";case k._async:return"async";case k._get:return"get";case k._set:return"set";case k._declare:return"declare";case k._readonly:return"readonly";case k._abstract:return"abstract";case k._static:return"static";case k._public:return"public";case k._private:return"private";case k._protected:return"protected";case k._override:return"override";case k._as:return"as";case k._enum:return"enum";case k._type:return"type";case k._implements:return"implements";default:return""}}(e)}"`)}function K(e="Unexpected token",t=w.start){if(w.error)return;const n=new SyntaxError(e);n.pos=t,w.error=n,w.pos=C.length,ve(k.eof)}const H=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],V=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,U=new Uint8Array(65536);for(const _i of H)U[_i]=1;function W(e){if(e<48)return 36===e;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return 95===e;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const z=new Uint8Array(65536);for(let _i=0;_i<128;_i++)z[_i]=W(_i)?1:0;for(let _i=128;_i<65536;_i++)z[_i]=1;for(const _i of H)z[_i]=0;z[8232]=0,z[8233]=0;const G=z.slice();for(let _i=g.digit0;_i<=g.digit9;_i++)G[_i]=0;const X=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,m._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-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){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.FunctionScopedDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function Z(e){const t=e.identifierRole;return t===J.FunctionScopedDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function ee(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ImportDeclaration}function te(e){const t=e.identifierRole;return t===J.TopLevelDeclaration||t===J.BlockScopedDeclaration||t===J.ObjectShorthandTopLevelDeclaration||t===J.ObjectShorthandBlockScopedDeclaration}function ne(e){const t=e.identifierRole;return t===J.FunctionScopedDeclaration||t===J.ObjectShorthandFunctionScopedDeclaration}function se(e){return e.identifierRole===J.ObjectShorthandTopLevelDeclaration||e.identifierRole===J.ObjectShorthandBlockScopedDeclaration||e.identifierRole===J.ObjectShorthandFunctionScopedDeclaration}!function(e){e[e.Access=0]="Access";e[e.ExportAccess=1]="ExportAccess";e[e.TopLevelDeclaration=2]="TopLevelDeclaration";e[e.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";e[e.BlockScopedDeclaration=4]="BlockScopedDeclaration";e[e.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";e[e.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";e[e.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";e[e.ObjectShorthand=8]="ObjectShorthand";e[e.ImportDeclaration=9]="ImportDeclaration";e[e.ObjectKey=10]="ObjectKey";e[e.ImportAccess=11]="ImportAccess"}(J||(J={})),function(e){e[e.NoChildren=0]="NoChildren";e[e.OneChild=1]="OneChild";e[e.StaticChildren=2]="StaticChildren";e[e.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(Y||(Y={}));class oe{constructor(){this.type=w.type,this.contextualKeyword=w.contextualKeyword,this.start=w.start,this.end=w.end,this.scopeDepth=w.scopeDepth,this.isType=w.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function re(){w.tokens.push(new oe),_e()}function ie(){w.tokens.push(new oe),w.start=w.pos,function(){for(;;){if(w.pos>=C.length)return void K("Unterminated template");const e=C.charCodeAt(w.pos);if(e===g.graveAccent||e===g.dollarSign&&C.charCodeAt(w.pos+1)===g.leftCurlyBrace)return w.pos===w.start&&pe(k.template)?e===g.dollarSign?(w.pos+=2,void ve(k.dollarBraceL)):(++w.pos,void ve(k.backQuote)):void ve(k.template);e===g.backslash&&w.pos++,w.pos++}}()}function ae(){w.type===k.assign&&--w.pos,function(){const e=w.pos;let t=!1,n=!1;for(;;){if(w.pos>=C.length)return void K("Unterminated regular expression",e);const s=C.charCodeAt(w.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)n=!0;else if(s===g.rightSquareBracket&&n)n=!1;else if(s===g.slash&&!n)break;t=s===g.backslash}++w.pos}++w.pos,function(){for(;w.pos =C.length){const e=w.tokens;return e.length>=2&&e[e.length-1].start>=C.length&&e[e.length-2].start>=C.length&&K("Unexpectedly reached the end of input."),void ve(k.eof)}var e;e=C.charCodeAt(w.pos),G[e]||e===g.backslash||e===g.atSign&&C.charCodeAt(w.pos+1)===g.atSign?function(){let e=0,t=0,n=w.pos;for(;n g.lowercaseZ));){const s=X[e+(t-g.lowercaseA)+1];if(-1===s)break;e=s,n++}const s=X[e];if(s>-1&&!z[t])return w.pos=n,void(1&s?ve(s>>>1):ve(k.name,s>>>1));for(;n C.length)return void K("Unterminated comment",w.pos-2);w.pos+=2}function Te(e){let t=C.charCodeAt(w.pos+=e);if(w.pos =g.digit0&&e<=g.digit9?Se(!0):e===g.dot&&C.charCodeAt(w.pos+2)===g.dot?(w.pos+=3,ve(k.ellipsis)):(++w.pos,ve(k.dot))}();case g.leftParenthesis:return++w.pos,void ve(k.parenL);case g.rightParenthesis:return++w.pos,void ve(k.parenR);case g.semicolon:return++w.pos,void ve(k.semi);case g.comma:return++w.pos,void ve(k.comma);case g.leftSquareBracket:return++w.pos,void ve(k.bracketL);case g.rightSquareBracket:return++w.pos,void ve(k.bracketR);case g.leftCurlyBrace:return void(I&&C.charCodeAt(w.pos+1)===g.verticalBar?Ae(k.braceBarL,2):(++w.pos,ve(k.braceL)));case g.rightCurlyBrace:return++w.pos,void ve(k.braceR);case g.colon:return void(C.charCodeAt(w.pos+1)===g.colon?Ae(k.doubleColon,2):(++w.pos,ve(k.colon)));case g.questionMark:return void function(){const e=C.charCodeAt(w.pos+1),t=C.charCodeAt(w.pos+2);e!==g.questionMark||I&&w.isType?e!==g.dot||t>=g.digit0&&t<=g.digit9?(++w.pos,ve(k.question)):(w.pos+=2,ve(k.questionDot)):t===g.equalsTo?Ae(k.assign,3):Ae(k.nullishCoalescing,2)}();case g.atSign:return++w.pos,void ve(k.at);case g.graveAccent:return++w.pos,void ve(k.backQuote);case g.digit0:{const e=C.charCodeAt(w.pos+1);if(e===g.lowercaseX||e===g.uppercaseX||e===g.lowercaseO||e===g.uppercaseO||e===g.lowercaseB||e===g.uppercaseB)return void function(){w.pos+=2;for(;;){const e=C.charCodeAt(w.pos);if(!(e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF||e===g.underscore))break;w.pos++}const e=C.charCodeAt(w.pos);e===g.lowercaseN?(++w.pos,ve(k.bigint)):ve(k.num)}()}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:return void Se(!1);case g.quotationMark:case g.apostrophe:return void function(e){for(w.pos++;;){if(w.pos>=C.length)return void K("Unterminated string constant");const t=C.charCodeAt(w.pos);if(t===g.backslash)w.pos++;else if(t===e)break;w.pos++}w.pos++,ve(k.string)}(e);case g.slash:return void(C.charCodeAt(w.pos+1)===g.equalsTo?Ae(k.assign,2):Ae(k.slash,1));case g.percentSign:case g.asterisk:return void function(e){let t=e===g.asterisk?k.star:k.modulo,n=1,s=C.charCodeAt(w.pos+1);e===g.asterisk&&s===g.asterisk&&(n++,s=C.charCodeAt(w.pos+2),t=k.exponent),s===g.equalsTo&&C.charCodeAt(w.pos+2)!==g.greaterThan&&(n++,t=k.assign),Ae(t,n)}(e);case g.verticalBar:case g.ampersand:return void function(e){const t=C.charCodeAt(w.pos+1);if(t!==e){if(e===g.verticalBar){if(t===g.greaterThan)return void Ae(k.pipeline,2);if(t===g.rightCurlyBrace&&I)return void Ae(k.braceBarR,2)}t!==g.equalsTo?Ae(e===g.verticalBar?k.bitwiseOR:k.bitwiseAND,1):Ae(k.assign,2)}else C.charCodeAt(w.pos+2)===g.equalsTo?Ae(k.assign,3):Ae(e===g.verticalBar?k.logicalOR:k.logicalAND,2)}(e);case g.caret:return void(C.charCodeAt(w.pos+1)===g.equalsTo?Ae(k.assign,2):Ae(k.bitwiseXOR,1));case g.plusSign:case g.dash:return void function(e){const t=C.charCodeAt(w.pos+1);t!==e?t===g.equalsTo?Ae(k.assign,2):e===g.plusSign?Ae(k.plus,1):Ae(k.minus,1):Ae(k.preIncDec,2)}(e);case g.lessThan:return void function(){const e=C.charCodeAt(w.pos+1);if(e===g.lessThan)return C.charCodeAt(w.pos+2)===g.equalsTo?void Ae(k.assign,3):void(w.isType?Ae(k.lessThan,1):Ae(k.bitShiftL,2));e===g.equalsTo?Ae(k.relationalOrEqual,2):Ae(k.lessThan,1)}();case g.greaterThan:return void Ie();case g.equalsTo:case g.exclamationMark:return void function(e){const t=C.charCodeAt(w.pos+1);if(t!==g.equalsTo)return e===g.equalsTo&&t===g.greaterThan?(w.pos+=2,void ve(k.arrow)):void Ae(e===g.equalsTo?k.eq:k.bang,1);Ae(k.equality,C.charCodeAt(w.pos+2)===g.equalsTo?3:2)}(e);case g.tilde:return void Ae(k.tilde,1)}K(`Unexpected character '${String.fromCharCode(e)}'`,w.pos)}function Ae(e,t){w.pos+=t,ve(e)}function Ee(){for(;;){const e=C.charCodeAt(w.pos);if(!(e>=g.digit0&&e<=g.digit9||e===g.underscore))break;w.pos++}}function Se(e){let t=!1,n=!1;e||Ee();let s=C.charCodeAt(w.pos);s===g.dot&&(++w.pos,Ee(),s=C.charCodeAt(w.pos)),s!==g.uppercaseE&&s!==g.lowercaseE||(s=C.charCodeAt(++w.pos),s!==g.plusSign&&s!==g.dash||++w.pos,Ee(),s=C.charCodeAt(w.pos)),s===g.lowercaseN?(++w.pos,t=!0):s===g.lowercaseM&&(++w.pos,n=!0),ve(t?k.bigint:n?k.decimal:k.num)}function Ne(e,t=e.currentIndex()){let n=t+1;if(je(e,n)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,je(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,je(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,je(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}function je(e,t){const n=e.tokens[t];return n.type===k.braceR||n.type===k.comma}const Re=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Le(e){const[t,n]=Oe(e.jsxPragma||"React.createElement"),[s,o]=Oe(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:s,fragmentSuffix:o}}function Oe(e){let t=e.indexOf(".");return-1===t&&(t=e.length),[e.slice(0,t),e.slice(t)]}class De{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Pe extends De{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,n,s,o){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.options=o,Pe.prototype.__init.call(this),Pe.prototype.__init2.call(this),Pe.prototype.__init3.call(this),Pe.prototype.__init4.call(this),Pe.prototype.__init5.call(this),this.jsxPragmaInfo=Le(o),this.isAutomaticRuntime="automatic"===o.jsxRuntime,this.jsxImportSource=o.jsxImportSource||"react"}process(){return!!this.tokens.matches1(k.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{const{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);const s=Object.entries(n).map((([e,t])=>`${e} as ${t}`)).join(", ");if(s){e+=`import {${s}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==Y.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t)}s&&this.tokens.appendCode(`, ${s}`)}for(this.options.production||(null===s&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(k.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(k.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),this.tokens.matches2(k.slash,k.jsxTagEnd));else{if(!this.tokens.matches1(k.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(k.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){const n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,k.jsxName,k.jsxName)&&!this.tokens.matches2AtIndex(e-1,k.greaterThan,k.jsxName)&&!this.tokens.matches1AtIndex(e,k.braceL)&&!this.tokens.matches1AtIndex(e,k.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,k.slash,k.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const e=this.tokens.identifierName();Be(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex() =g.lowercaseA&&t<=g.lowercaseZ}function qe(e){let t=0,n=0;for(const s of e)"\n"===s?(t++,n=0):" "===s&&n++;return"\n".repeat(t)+" ".repeat(n)}function Me(e,t){let n,s="",o=0,r=t;if("#"===e[r]){let t,s=10;if(r++,"x"===e[r])for(s=16,r++,t=r;r =g.digit0&&i<=g.digit9||i>=g.lowercaseA&&i<=g.lowercaseF||i>=g.uppercaseA&&i<=g.uppercaseF);)r++;else for(t=r;r =g.digit0&&e<=g.digit9}function $e(e,t){const n=Le(t),s=new Set;for(let o=0;o 0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map((({localName:e})=>e))].every((e=>this.shouldAutomaticallyElideImportedName(e)))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:o,namedExports:r,exportStarNames:i,hasStarExport:a}=t;if(0===n.length&&0===s.length&&0===o.length&&0===r.length&&0===i.length&&!a){this.importsToReplace.set(e,`require('${e}');`);continue}const c=this.getFreeIdentifierForPath(e);let l;l=this.enableLegacyTypeScriptModuleInterop?c:s.length>0?s[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(s.length>0)for(const e of s){u+=` var ${e} = ${this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName("interopRequireWildcard")}(${c})`};`}else i.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName("interopRequireDefault")}(${c});`);for(const{importedName:e,localName:t}of r)u+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${c}, '${t}', '${e}');`;for(const e of i)u+=` exports.${e} = ${l};`;a&&(u+=` ${this.helperManager.getHelperName("createStarExport")}(${c});`),this.importsToReplace.set(e,u);for(const e of n)this.identifierReplacements.set(e,`${l}.default`);for(const{importedName:e,localName:t}of o)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),n=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){const t=[],n=[],s=[];if(e++,(this.tokens.matchesContextualAtIndex(e,m._type)||this.tokens.matches1AtIndex(e,k._typeof))&&!this.tokens.matches1AtIndex(e+1,k.comma)&&!this.tokens.matchesContextualAtIndex(e+1,m._from))return;if(this.tokens.matches1AtIndex(e,k.parenL))return;if(this.tokens.matches1AtIndex(e,k.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,k.comma)&&e++),this.tokens.matches1AtIndex(e,k.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,k.braceL)){const n=this.getNamedImports(e+1);e=n.newIndex;for(const e of n.namedImports)"default"===e.importedName?t.push(e.localName):s.push(e)}if(this.tokens.matchesContextualAtIndex(e,m._from)&&e++,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(o);r.defaultNames.push(...t),r.wildcardNames.push(...n),r.namedImports.push(...s),0===t.length&&0===n.length&&0===s.length&&(r.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,k._export,k._var)||this.tokens.matches2AtIndex(e,k._export,k._let)||this.tokens.matches2AtIndex(e,k._export,k._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,k._export,k._function)||this.tokens.matches2AtIndex(e,k._export,k._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,k._export,k.name,k._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,k._export,k.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,k._export,k.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,k.braceL)||this.tokens.matches1AtIndex(n,k.dollarBraceL)||this.tokens.matches1AtIndex(n,k.bracketL))t++;else if(this.tokens.matches1AtIndex(n,k.braceR)||this.tokens.matches1AtIndex(n,k.bracketR))t--;else{if(0===t&&!this.tokens.matches1AtIndex(n,k.name))break;if(this.tokens.matches1AtIndex(1,k.eq)){const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");n=e-1}else{if(Q(this.tokens.tokens[n])){const e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,!this.tokens.matchesContextualAtIndex(e,m._from)){for(const{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(e++,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of import statement.");const s=this.tokens.stringValueAtIndex(e);this.getImportInfo(s).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,k._export,k.star,k._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,k.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(e),s=this.getImportInfo(n);null!==t?s.exportStarNames.push(t):s.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,k.braceR)){e++;break}const n=Ne(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,k.comma,k.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,k.braceR)){e++;break}if(!this.tokens.matches1AtIndex(e,k.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`);e++}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return t&&0!==t.length?t.map((e=>`exports.${e}`)).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var He=n(9320);function Ve({code:e,mappings:t},n,s,o,r){const i=function(e,t){const n=new Array(t.length);let s=0,o=t[s].start,r=0;for(let i=0;i obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class We{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,We.prototype.__init.call(this),We.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,n]of Object.entries(Ue)){const s=this.helperNames[t];let o=n;"optionalChainDelete"===t?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===t?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===t&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),s&&(e+=" ",e+=o.replace(t,s).replace(/\s+/g," ").trim())}return e}}function ze(e,t,n){(function(e,t){for(const n of e.tokens)if(n.type===k.name&&!n.isType&&Z(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1})(e,n)&&function(e,t,n){const s=[];let o=t.length-1;for(let r=e.tokens.length-1;;r--){for(;s.length>0&&s[s.length-1].startTokenIndex===r+1;)s.pop();for(;o>=0&&t[o].endTokenIndex===r+1;)s.push(t[o]),o--;if(r<0)break;const i=e.tokens[r],a=e.identifierNameForToken(i);if(s.length>1&&!i.isType&&i.type===k.name&&n.has(a))if(te(i))Ge(s[s.length-1],e,a);else if(ne(i)){let t=s.length-1;for(;t>0&&!s[t].isFunctionScope;)t--;if(t<0)throw new Error("Did not find parent function scope.");Ge(s[t],e,a)}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}(e,t,n)}function Ge(e,t,n){for(let s=e.startTokenIndex;s 0&&!w.error;)pe(k.braceL)||pe(k.bracketL)?e++:(pe(k.braceR)||pe(k.bracketR))&&e--,re();return!0}return!1}()){if(pe(k.colon)||pe(k.comma)||pe(k.question)||pe(k.eq))return!0;if(pe(k.parenR)&&(re(),pe(k.arrow)))return!0}return!1}();return w.restoreFromSnapshot(e),t}()}function Ot(e){const t=ce(0);$(e);(function(){const e=w.snapshot();if(R(m._asserts))return re(),O(m._is)?(Bt(),!0):lt()||pe(k._this)?(re(),O(m._is)&&Bt(),!0):(w.restoreFromSnapshot(e),!1);if(lt()||pe(k._this))return re(),R(m._is)&&!B()?(re(),Bt(),!0):(w.restoreFromSnapshot(e),!1);return!1})()||Bt(),le(t)}function Dt(){pe(k.colon)&&Pt()}function Pt(){const e=ce(0);$(k.colon),Bt(),le(e)}function Bt(){if(qt(),w.inDisallowConditionalTypesContext||B()||!ue(k._extends))return;const e=w.inDisallowConditionalTypesContext;w.inDisallowConditionalTypesContext=!0,qt(),w.inDisallowConditionalTypesContext=e,$(k.question),Bt(),$(k.colon),Bt()}function qt(){Lt()?St(Et.TSFunctionType):pe(k._new)?St(Et.TSConstructorType):R(m._abstract)&&de()===k._new?St(Et.TSAbstractConstructorType):function(){if(ue(k.bitwiseOR),Rt(),pe(k.bitwiseOR))for(;ue(k.bitwiseOR);)Rt()}()}function Mt(){for(;!pe(k.braceL)&&!w.error;)Ft(),ue(k.comma)}function Ft(){dt(),pe(k.lessThan)&&Zt()}function $t(){if(pe(k.string)?Sn():Un(),ue(k.eq)){const e=w.tokens.length-1;fn(),w.tokens[e].rhsEndIndex=w.tokens.length}}function Kt(){for(tt(!1),$(k.braceL);!ue(k.braceR)&&!w.error;)$t(),ue(k.comma)}function Ht(){$(k.braceL),Ns(k.braceR)}function Vt(){tt(!1),ue(k.dot)?Vt():Ht()}function Ut(){R(m._global)?Un():pe(k.string)?An():K(),pe(k.braceL)?Ht():F()}function Wt(){nt(),$(k.eq),R(m._require)&&de()===k.parenL?(D(m._require),$(k.parenL),pe(k.string)||K(),Sn(),$(k.parenR)):dt(),F()}function zt(){return Xt(w.contextualKeyword,!0)}function Gt(e){switch(e){case m._declare:{const e=w.tokens.length-1,t=function(){if(M())return!1;switch(w.type){case k._function:{const e=ce(1);return re(),Ds(w.start,!0),le(e),!0}case k._class:{const e=ce(1);return Bs(!0,!1),le(e),!0}case k._const:if(pe(k._const)&&L(m._enum)){const e=ce(1);return $(k._const),D(m._enum),w.tokens[w.tokens.length-1].type=k._enum,Kt(),le(e),!0}case k._var:case k._let:{const e=ce(1);return Es(w.type!==k._var),le(e),!0}case k.name:{const e=ce(1),t=w.contextualKeyword;let n=!1;return t===m._global?(Ut(),n=!0):n=Xt(t,!0),le(e),n}default:return!1}}();if(t)return w.tokens[e].type=k._declare,!0;break}case m._global:if(pe(k.braceL))return Ht(),!0;break;default:return Xt(e,!1)}return!1}function Xt(e,t){switch(e){case m._abstract:if(Jt(t)&&pe(k._class))return w.tokens[w.tokens.length-1].type=k._abstract,Bs(!0,!1),!0;break;case m._enum:if(Jt(t)&&pe(k.name))return w.tokens[w.tokens.length-1].type=k._enum,Kt(),!0;break;case m._interface:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return tt(!1),kt(),ue(k._extends)&&Mt(),It(),le(e),!0}break;case m._module:if(Jt(t)){if(pe(k.string)){const e=ce(t?2:1);return Ut(),le(e),!0}if(pe(k.name)){const e=ce(t?2:1);return Vt(),le(e),!0}}break;case m._namespace:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return Vt(),le(e),!0}break;case m._type:if(Jt(t)&&pe(k.name)){const e=ce(t?2:1);return tt(!1),kt(),$(k.eq),Bt(),F(),le(e),!0}}return!1}function Jt(e){return e?(re(),!0):!M()}function Yt(){const e=w.snapshot();return gt(),Ps(),pe(k.colon)&&Ot(k.colon),$(k.arrow),w.error?(w.restoreFromSnapshot(e),!1):(Kn(!0),!0)}function Qt(){w.type===k.bitShiftL&&(w.pos-=1,ve(k.lessThan)),Zt()}function Zt(){const e=ce(0);for($(k.lessThan);!pe(k.greaterThan)&&!w.error;)Bt(),ue(k.comma);e?($(k.greaterThan),le(e)):(le(e),we(),$(k.greaterThan),w.tokens[w.tokens.length-1].isType=!0)}function en(){if(pe(k.name))switch(w.contextualKeyword){case m._abstract:case m._declare:case m._enum:case m._interface:case m._module:case m._namespace:case m._type:return!0}return!1}function tn(e,t){return b?function(e,t){if(!pe(k.lessThan))return mn(e,t);const n=w.snapshot();let s=mn(e,t);if(!w.error)return s;w.restoreFromSnapshot(n);w.type=k.typeParameterStart,gt(),s=mn(e,t),s||K();return s}(e,t):function(e,t){if(!pe(k.lessThan))return mn(e,t);const n=w.snapshot();gt();const s=mn(e,t);s||K();if(!w.error)return s;w.restoreFromSnapshot(n);return mn(e,t)}(e,t)}function nn(){un()}function sn(e){nn(),ue(k.colon)?nn():w.tokens[w.tokens.length-1].identifierRole=e}function on(){const e=w.tokens.length;sn(J.Access);let t=!1;for(;pe(k.dot);)t=!0,un(),nn();if(!t){const t=w.tokens[e],n=C.charCodeAt(t.start);n>=g.lowercaseA&&n<=g.lowercaseZ&&(t.identifierRole=null)}}function rn(){switch(w.type){case k.braceL:return re(),dn(),void un();case k.jsxTagStart:return ln(),void un();case k.string:return void un();default:K("JSX value should be either an expression or a quoted JSX text")}}function an(e){if(pe(k.jsxTagEnd))return!1;on(),v&&function(){if(ue(k.jsxTagStart)){w.tokens[w.tokens.length-1].type=k.typeParameterStart;const e=ce(1);for(;!pe(k.greaterThan)&&!w.error;)Bt(),ue(k.comma);un(),le(e)}}();let t=!1;for(;!pe(k.slash)&&!pe(k.jsxTagEnd)&&!w.error;)ue(k.braceL)?(t=!0,$(k.ellipsis),fn(),un()):(t&&w.end-w.start==3&&C.charCodeAt(w.start)===g.lowercaseK&&C.charCodeAt(w.start+1)===g.lowercaseE&&C.charCodeAt(w.start+2)===g.lowercaseY&&(w.tokens[e].jsxRole=Y.KeyAfterPropSpread),sn(J.ObjectKey),pe(k.eq)&&(un(),rn()));const n=pe(k.slash);return n&&un(),n}function cn(){const e=w.tokens.length-1;w.tokens[e].jsxRole=Y.NoChildren;let t=0;if(!an(e))for(hn();;)switch(w.type){case k.jsxTagStart:if(un(),pe(k.slash))return un(),pe(k.jsxTagEnd)||on(),void(w.tokens[e].jsxRole!==Y.KeyAfterPropSpread&&(1===t?w.tokens[e].jsxRole=Y.OneChild:t>1&&(w.tokens[e].jsxRole=Y.StaticChildren)));t++,cn(),hn();break;case k.jsxText:t++,hn();break;case k.jsxEmptyText:hn();break;case k.braceL:re(),pe(k.ellipsis)?($(k.ellipsis),dn(),hn(),t+=2):(pe(k.braceR)||(t++,dn()),hn());break;default:return void K()}}function ln(){un(),cn()}function un(){w.tokens.push(new oe),be(),w.start=w.pos;const e=C.charCodeAt(w.pos);if(G[e])!function(){let e;do{if(w.pos>C.length)return void K("Unexpectedly reached the end of input.");e=C.charCodeAt(++w.pos)}while(z[e]||e===g.dash);ve(k.jsxName)}();else if(e===g.quotationMark||e===g.apostrophe)!function(e){for(w.pos++;;){if(w.pos>=C.length)return void K("Unterminated string constant");if(C.charCodeAt(w.pos)===e){w.pos++;break}w.pos++}ve(k.string)}(e);else switch(++w.pos,e){case g.greaterThan:ve(k.jsxTagEnd);break;case g.lessThan:ve(k.jsxTagStart);break;case g.slash:ve(k.slash);break;case g.equalsTo:ve(k.eq);break;case g.leftCurlyBrace:ve(k.braceL);break;case g.dot:ve(k.dot);break;case g.colon:ve(k.colon);break;default:K()}}function hn(){w.tokens.push(new oe),w.start=w.pos,function(){let e=!1,t=!1;for(;;){if(w.pos>=C.length)return void K("Unterminated JSX contents");const n=C.charCodeAt(w.pos);if(n===g.lessThan||n===g.leftCurlyBrace)return w.pos===w.start?n===g.lessThan?(w.pos++,void ve(k.jsxTagStart)):void Ce(n):void ve(e&&!t?k.jsxEmptyText:k.jsxText);n===g.lineFeed?e=!0:n!==g.space&&n!==g.carriageReturn&&n!==g.tab&&(t=!0),w.pos++}}()}!function(e){e[e.TSFunctionType=0]="TSFunctionType";e[e.TSConstructorType=1]="TSConstructorType";e[e.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(Et||(Et={}));class pn{constructor(e){this.stop=e}}function dn(e=!1){if(fn(e),pe(k.comma))for(;ue(k.comma);)fn(e)}function fn(e=!1,t=!1){return v?tn(e,t):I?function(e,t){if(pe(k.lessThan)){const n=w.snapshot();let s=mn(e,t);if(!w.error)return s;w.restoreFromSnapshot(n),w.type=k.typeParameterStart;const o=ce(0);if(ns(),le(o),s=mn(e,t),s)return!0;K()}return mn(e,t)}(e,t):mn(e,t)}function mn(e,t){if(pe(k._yield))return re(),pe(k.semi)||P()||(ue(k.star),fn()),!1;(pe(k.parenL)||pe(k.name)||pe(k._yield))&&(w.potentialArrowAt=w.start);const n=function(e){const t=function(e){const t=w.tokens.length,n=xn();if(n)return!0;return gn(t,-1,e),!1}(e);if(t)return!0;return function(e){v||I?function(e){if(pe(k.question)){const e=de();if(e===k.colon||e===k.comma||e===k.parenR)return}kn(e)}(e):kn(e)}(e),!1}(e);return t&&Ln(),w.type&k.IS_ASSIGN?(re(),fn(e),!1):n}function kn(e){ue(k.question)&&(fn(),$(k.colon),fn(e))}function gn(e,t,n){if(v&&(k._in&k.PRECEDENCE_MASK)>t&&!B()&&(O(m._as)||O(m._satisfies))){const s=ce(1);return Bt(),le(s),we(),void gn(e,t,n)}const s=w.type&k.PRECEDENCE_MASK;if(s>0&&(!n||!pe(k._in))&&s>t){const o=w.type;re(),o===k.nullishCoalescing&&(w.tokens[w.tokens.length-1].nullishStartIndex=e);const r=w.tokens.length;xn(),gn(r,o&k.IS_RIGHT_ASSOCIATIVE?s-1:s,n),o===k.nullishCoalescing&&(w.tokens[e].numNullishCoalesceStarts++,w.tokens[w.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,n)}}function xn(){if(v&&!b&&ue(k.lessThan))return function(){const e=ce(1);Bt(),$(k.greaterThan),le(e),xn()}(),!1;if(R(m._module)&&xe()===g.leftCurlyBrace&&!q())return D(m._module),$(k.braceL),Ns(k.braceR),!1;if(w.type&k.IS_PREFIX)return re(),xn(),!1;if(_n())return!0;for(;w.type&k.IS_POSTFIX&&!P();)w.type===k.preIncDec&&(w.type=k.postIncDec),re();return!1}function _n(){const e=w.tokens.length;return!!An()||(yn(e),w.tokens.length>e&&w.tokens[e].isOptionalChainStart&&(w.tokens[w.tokens.length-1].isOptionalChainEnd=!0),!1)}function yn(e,t=!1){I?function(e,t=!1){if(w.tokens[w.tokens.length-1].contextualKeyword===m._async&&pe(k.lessThan)){const e=w.snapshot(),t=function(){w.scopeDepth++;const e=w.tokens.length;if(Ps(),!Rn())return!1;return Fn(e),!0}();if(t&&!w.error)return;w.restoreFromSnapshot(e)}Tn(e,t)}(e,t):Tn(e,t)}function Tn(e,t=!1){const n=new pn(!1);do{bn(e,t,n)}while(!n.stop&&!w.error)}function bn(e,t,n){v?function(e,t,n){if(B()||!ue(k.bang)){if(pe(k.lessThan)||pe(k.bitShiftL)){const n=w.snapshot();if(!t&&In()&&Yt())return;if(Qt(),!t&&ue(k.parenL)?(w.tokens[w.tokens.length-1].subscriptStartIndex=e,wn()):pe(k.backQuote)?On():(w.type===k.greaterThan||w.type!==k.parenL&&Boolean(w.type&k.IS_EXPRESSION_START)&&!B())&&K(),!w.error)return;w.restoreFromSnapshot(n)}else!t&&pe(k.questionDot)&&de()===k.lessThan&&(re(),w.tokens[e].isOptionalChainStart=!0,w.tokens[w.tokens.length-1].subscriptStartIndex=e,Zt(),$(k.parenL),wn());vn(e,t,n)}else w.tokens[w.tokens.length-1].type=k.nonNullAssertion}(e,t,n):I?function(e,t,n){if(pe(k.questionDot)&&de()===k.lessThan)return t?void(n.stop=!0):(re(),ss(),$(k.parenL),void wn());if(!t&&pe(k.lessThan)){const e=w.snapshot();if(ss(),$(k.parenL),wn(),!w.error)return;w.restoreFromSnapshot(e)}vn(e,t,n)}(e,t,n):vn(e,t,n)}function vn(e,t,n){if(!t&&ue(k.doubleColon))Cn(),n.stop=!0,yn(e,t);else if(pe(k.questionDot)){if(w.tokens[e].isOptionalChainStart=!0,t&&de()===k.parenL)return void(n.stop=!0);re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e,ue(k.bracketL)?(dn(),$(k.bracketR)):ue(k.parenL)?wn():En()}else if(ue(k.dot))w.tokens[w.tokens.length-1].subscriptStartIndex=e,En();else if(ue(k.bracketL))w.tokens[w.tokens.length-1].subscriptStartIndex=e,dn(),$(k.bracketR);else if(!t&&pe(k.parenL))if(In()){const t=w.snapshot(),s=w.tokens.length;re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e;const o=E();w.tokens[w.tokens.length-1].contextId=o,wn(),w.tokens[w.tokens.length-1].contextId=o,(pe(k.colon)||pe(k.arrow))&&(w.restoreFromSnapshot(t),n.stop=!0,w.scopeDepth++,Ps(),function(e){v?pe(k.colon)&&Pt():I&&function(){if(pe(k.colon)){const e=w.noAnonFunctionType;w.noAnonFunctionType=!0,gs(),w.noAnonFunctionType=e}}();$(k.arrow),Fn(e)}(s))}else{re(),w.tokens[w.tokens.length-1].subscriptStartIndex=e;const t=E();w.tokens[w.tokens.length-1].contextId=t,wn(),w.tokens[w.tokens.length-1].contextId=t}else pe(k.backQuote)?On():n.stop=!0}function In(){return w.tokens[w.tokens.length-1].contextualKeyword===m._async&&!P()}function wn(){let e=!0;for(;!ue(k.parenR)&&!w.error;){if(e)e=!1;else if($(k.comma),ue(k.parenR))break;Vn(!1)}}function Cn(){const e=w.tokens.length;An(),yn(e,!0)}function An(){if(ue(k.modulo))return Un(),!1;if(pe(k.jsxText)||pe(k.jsxEmptyText))return Sn(),!1;if(pe(k.lessThan)&&b)return w.type=k.jsxTagStart,ln(),re(),!1;const e=w.potentialArrowAt===w.start;switch(w.type){case k.slash:case k.assign:ae();case k._super:case k._this:case k.regexp:case k.num:case k.bigint:case k.decimal:case k.string:case k._null:case k._true:case k._false:return re(),!1;case k._import:return re(),pe(k.dot)&&(w.tokens[w.tokens.length-1].type=k.name,re(),Un()),!1;case k.name:{const t=w.tokens.length,n=w.start,s=w.contextualKeyword;return Un(),s===m._await?(xn(),!1):s===m._async&&pe(k._function)&&!P()?(re(),Ds(n,!1),!1):e&&s===m._async&&!P()&&pe(k.name)?(w.scopeDepth++,tt(!1),$(k.arrow),Fn(t),!0):pe(k._do)&&!P()?(re(),Ss(),!1):e&&!P()&&pe(k.arrow)?(w.scopeDepth++,st(!1),$(k.arrow),Fn(t),!0):(w.tokens[w.tokens.length-1].identifierRole=J.Access,!1)}case k._do:return re(),Ss(),!1;case k.parenL:return jn(e);case k.bracketL:return re(),Hn(k.bracketR,!0),!1;case k.braceL:return Dn(!1,!1),!1;case k._function:return function(){const e=w.start;Un(),ue(k.dot)&&Un();Ds(e,!1)}(),!1;case k.at:ws();case k._class:return Bs(!1),!1;case k._new:return function(){if($(k._new),ue(k.dot))return void Un();Cn(),void ue(k.questionDot),I&&function(){if(pe(k.lessThan)){const e=w.snapshot();ss(),w.error&&w.restoreFromSnapshot(e)}}();ue(k.parenL)&&Hn(k.parenR)}(),!1;case k.backQuote:return On(),!1;case k.doubleColon:return re(),Cn(),!1;case k.hash:{const e=xe();return G[e]||e===g.backslash?En():re(),!1}default:return K(),!1}}function En(){ue(k.hash),Un()}function Sn(){re()}function Nn(){$(k.parenL),dn(),$(k.parenR)}function jn(e){const t=w.snapshot(),n=w.tokens.length;$(k.parenL);let s=!0;for(;!pe(k.parenR)&&!w.error;){if(s)s=!1;else if($(k.comma),pe(k.parenR))break;if(pe(k.ellipsis)){et(!1),Ln();break}fn(!1,!0)}if($(k.parenR),e&&(pe(k.colon)||!P())){if(Rn())return w.restoreFromSnapshot(t),w.scopeDepth++,Ps(),Rn(),Fn(n),!w.error||(w.restoreFromSnapshot(t),jn(!1),!1)}return!1}function Rn(){return v?function(){if(pe(k.colon)){const e=w.snapshot();Ot(k.colon),P()&&K(),pe(k.arrow)||K(),w.error&&w.restoreFromSnapshot(e)}return ue(k.arrow)}():I?function(){if(pe(k.colon)){const e=ce(0),t=w.snapshot(),n=w.noAnonFunctionType;w.noAnonFunctionType=!0,Gn(),w.noAnonFunctionType=n,P()&&K(),pe(k.arrow)||K(),w.error&&w.restoreFromSnapshot(t),le(e)}return ue(k.arrow)}():ue(k.arrow)}function Ln(){(v||I)&&(he(k.question),pe(k.colon)&&(v?Pt():I&&gs()))}function On(){for(ie(),ie();!pe(k.backQuote)&&!w.error;)$(k.dollarBraceL),dn(),ie(),ie();re()}function Dn(e,t){const n=E();let s=!0;for(re(),w.tokens[w.tokens.length-1].contextId=n;!ue(k.braceR)&&!w.error;){if(s)s=!1;else if($(k.comma),ue(k.braceR))break;let o=!1;if(pe(k.ellipsis)){const n=w.tokens.length;if(Ze(),e&&(w.tokens.length===n+2&&st(t),ue(k.braceR)))break}else e||(o=ue(k.star)),!e&&R(m._async)?(o&&K(),Un(),pe(k.colon)||pe(k.parenL)||pe(k.braceR)||pe(k.eq)||pe(k.comma)||(pe(k.star)&&(re(),o=!0),qn(n))):qn(n),Bn(e,t,n)}w.tokens[w.tokens.length-1].contextId=n}function Pn(e,t){const n=w.start;return pe(k.parenL)?(e&&K(),Mn(n,!1),!0):!!function(e){return!e&&(pe(k.string)||pe(k.num)||pe(k.bracketL)||pe(k.name)||!!(w.type&k.IS_KEYWORD))}(e)&&(qn(t),Mn(n,!1),!0)}function Bn(e,t,n){v?kt():I&&pe(k.lessThan)&&(ns(),pe(k.parenL)||K());Pn(e,n)||function(e,t){if(ue(k.colon))return void(e?ct(t):fn(!1));let n;n=e?0===w.scopeDepth?J.ObjectShorthandTopLevelDeclaration:t?J.ObjectShorthandBlockScopedDeclaration:J.ObjectShorthandFunctionScopedDeclaration:J.ObjectShorthand,w.tokens[w.tokens.length-1].identifierRole=n,ct(t,!0)}(e,t)}function qn(e){I&&_s(),ue(k.bracketL)?(w.tokens[w.tokens.length-1].contextId=e,fn(),$(k.bracketR),w.tokens[w.tokens.length-1].contextId=e):(pe(k.num)||pe(k.string)||pe(k.bigint)||pe(k.decimal)?An():En(),w.tokens[w.tokens.length-1].identifierRole=J.ObjectKey,w.tokens[w.tokens.length-1].contextId=e)}function Mn(e,t){const n=E();w.scopeDepth++;const s=w.tokens.length;Ps(t,n),$n(e,n);const o=w.tokens.length;w.scopes.push(new _(s,o,!0)),w.scopeDepth--}function Fn(e){Kn(!0);const t=w.tokens.length;w.scopes.push(new _(e,t,!0)),w.scopeDepth--}function $n(e,t=0){v?function(e,t){if(pe(k.colon)&&Ot(k.colon),pe(k.braceL)||!M())Kn(!1,t);else{let t=w.tokens.length-1;for(;t>=0&&(w.tokens[t].start>=e||w.tokens[t].type===k._default||w.tokens[t].type===k._export);)w.tokens[t].isType=!0,t--}}(e,t):I?function(e){pe(k.colon)&&Gn();Kn(!1,e)}(t):Kn(!1,t)}function Kn(e,t=0){e&&!pe(k.braceL)?fn():Ss(!0,t)}function Hn(e,t=!1){let n=!0;for(;!ue(e)&&!w.error;){if(n)n=!1;else if($(k.comma),ue(e))break;Vn(t)}}function Vn(e){e&&pe(k.comma)||(pe(k.ellipsis)?(Ze(),Ln()):pe(k.question)?re():fn(!1,!0))}function Un(){re(),w.tokens[w.tokens.length-1].type=k.name}function Wn(e){const t=ce(0);$(e||k.colon),ks(),le(t)}function zn(){$(k.modulo),D(m._checks),ue(k.parenL)&&(dn(),$(k.parenR))}function Gn(){const e=ce(0);$(k.colon),pe(k.modulo)?zn():(ks(),pe(k.modulo)&&zn()),le(e)}function Xn(){pe(k._class)?(re(),Jn(!0)):pe(k._function)?(re(),Un(),pe(k.lessThan)&&ns(),$(k.parenL),hs(),$(k.parenR),Gn(),F()):pe(k._var)?(re(),xs(),F()):O(m._module)?ue(k.dot)?(D(m._exports),gs(),F()):function(){pe(k.string)?An():Un();$(k.braceL);for(;!pe(k.braceR)&&!w.error;)pe(k._import)?(re(),Qs()):K();$(k.braceR)}():R(m._type)?(re(),es()):R(m._opaque)?(re(),ts(!0)):R(m._interface)?(re(),Jn()):pe(k._export)?($(k._export),ue(k._default)?pe(k._function)||pe(k._class)?Xn():(ks(),F()):pe(k._var)||pe(k._function)||pe(k._class)||R(m._opaque)?Xn():pe(k.star)||pe(k.braceL)||R(m._interface)||R(m._type)||R(m._opaque)?Us():K()):K()}function Jn(e=!1){if(Zn(),pe(k.lessThan)&&ns(),ue(k._extends))do{Yn()}while(!e&&ue(k.comma));if(R(m._mixins)){re();do{Yn()}while(ue(k.comma))}if(R(m._implements)){re();do{Yn()}while(ue(k.comma))}is(e,!1,e)}function Yn(){ls(!1),pe(k.lessThan)&&ss()}function Qn(){Jn()}function Zn(){Un()}function es(){Zn(),pe(k.lessThan)&&ns(),Wn(k.eq),F()}function ts(e){D(m._type),Zn(),pe(k.lessThan)&&ns(),pe(k.colon)&&Wn(k.colon),e||Wn(k.eq),F()}function ns(){const e=ce(0);pe(k.lessThan)||pe(k.typeParameterStart)?re():K();do{_s(),xs(),ue(k.eq)&&ks(),pe(k.greaterThan)||$(k.comma)}while(!pe(k.greaterThan)&&!w.error);$(k.greaterThan),le(e)}function ss(){const e=ce(0);for($(k.lessThan);!pe(k.greaterThan)&&!w.error;)ks(),pe(k.greaterThan)||$(k.comma);$(k.greaterThan),le(e)}function os(){pe(k.num)||pe(k.string)?An():Un()}function rs(){for(pe(k.lessThan)&&ns(),$(k.parenL);!pe(k.parenR)&&!pe(k.ellipsis)&&!w.error;)us(),pe(k.parenR)||$(k.comma);ue(k.ellipsis)&&us(),$(k.parenR),Wn()}function is(e,t,n){let s;for(t&&pe(k.braceBarL)?($(k.braceBarL),s=k.braceBarR):($(k.braceL),s=k.braceR);!pe(s)&&!w.error;){if(n&&R(m._proto)){const t=de();t!==k.colon&&t!==k.question&&(re(),e=!1)}if(e&&R(m._static)){const e=de();e!==k.colon&&e!==k.question&&re()}if(_s(),ue(k.bracketL))ue(k.bracketL)?(os(),$(k.bracketR),$(k.bracketR),pe(k.lessThan)||pe(k.parenL)?rs():(ue(k.question),Wn())):(de()===k.colon?(os(),Wn()):ks(),$(k.bracketR),Wn());else if(pe(k.parenL)||pe(k.lessThan))rs();else{if(R(m._get)||R(m._set)){const e=de();e!==k.name&&e!==k.string&&e!==k.num||re()}as()}cs()}$(s)}function as(){if(pe(k.ellipsis)){if($(k.ellipsis),ue(k.comma)||ue(k.semi),pe(k.braceR))return;ks()}else os(),pe(k.lessThan)||pe(k.parenL)?rs():(ue(k.question),Wn())}function cs(){ue(k.semi)||ue(k.comma)||pe(k.braceR)||pe(k.braceBarR)||K()}function ls(e){for(e||Un();ue(k.dot);)Un()}function us(){const e=de();e===k.colon||e===k.question?(Un(),ue(k.question),Wn()):ks()}function hs(){for(;!pe(k.parenR)&&!pe(k.ellipsis)&&!w.error;)us(),pe(k.parenR)||$(k.comma);ue(k.ellipsis)&&us()}function ps(){let e=!1;const t=w.noAnonFunctionType;switch(w.type){case k.name:return R(m._interface)?void function(){if(D(m._interface),ue(k._extends))do{Yn()}while(ue(k.comma));is(!1,!1,!1)}():(Un(),ls(!0),void(pe(k.lessThan)&&ss()));case k.braceL:return void is(!1,!1,!1);case k.braceBarL:return void is(!1,!0,!1);case k.bracketL:return void function(){for($(k.bracketL);w.pos 0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex 0&&t 0&&this.tokenAtRelativeIndex(-1).type===k._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t ${e}require`);const t=this.tokens.currentToken().contextId;if(null==t)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(k.parenR,t);)this.rootTransformer.processToken();return void this.tokens.replaceToken(e?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}mo(this.tokens),this.tokens.matches1(k.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(m._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,k.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,m._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(k.name)||this.tokens.matches1(k.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(k.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(k.string);)(!e&&this.tokens.matches1(k.braceL)||this.tokens.matches1(k.comma))&&(this.tokens.removeToken(),this.tokens.matches1(k.braceR)||(t=!0),(this.tokens.matches2(k.name,k.comma)||this.tokens.matches2(k.name,k.braceR)||this.tokens.matches4(k.name,k.name,k.name,k.comma)||this.tokens.matches4(k.name,k.name,k.name,k.braceR))&&(e=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!e:!!this.isFlowTransformEnabled&&(t&&!e))}removeRemainingImport(){for(;!this.tokens.matches1(k.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===J.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==J.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n =2&&this.tokens.matches1AtIndex(e-2,k.dot))return!1;if(e>=2&&[k._var,k._let,k._const].includes(this.tokens.tokens[e-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e>=2&&this.tokens.matches1AtIndex(e-2,k.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==k.name)return!1;if(t.shadowsGlobal)return!1;if(e+2 =1&&this.tokens.matches1AtIndex(e-1,k.dot))return!1;const s=this.tokens.identifierNameForToken(t),o=this.importProcessor.resolveExportBinding(s);if(!o)return!1;const r=this.tokens.rawCodeForToken(n),i=this.importProcessor.getIdentifierReplacement(s)||s;if("++"===r)this.tokens.replaceToken(`(${i} = ${o} = ${i} + 1, ${i} - 1)`);else{if("--"!==r)throw new Error(`Unexpected operator: ${r}`);this.tokens.replaceToken(`(${i} = ${o} = ${i} - 1, ${i} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(k._export,k._default,k._function,k.name)||this.tokens.matches5(k._export,k._default,k.name,k._function,k.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,m._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(k._export,k._default,k._class,k.name)||this.tokens.matches5(k._export,k._default,k._abstract,k._class,k.name)||this.tokens.matches3(k._export,k._default,k.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(k._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(ko(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(k.at);)if(this.tokens.copyToken(),this.tokens.matches1(k.parenL))this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR);else{for(this.tokens.copyExpectedToken(k.name);this.tokens.matches1(k.dot);)this.tokens.copyExpectedToken(k.dot),this.tokens.copyExpectedToken(k.name);this.tokens.matches1(k.parenL)&&(this.tokens.copyExpectedToken(k.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,k.name))return!1;for(e++;e n.call(t,...e))),t=void 0)}return n}([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(yo)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map((e=>`${e}();`)).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(k.dot,k.name,k.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(To.includes(t)){const t=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${yo}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${yo}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.parenR),e=!0}return!0}}class vo extends De{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(k.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class Io extends De{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return!!this.tokens.matches2(k._catch,k.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class wo extends De{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(k.nullishCoalescing)){const e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(k._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const e=this.tokens.currentToken().subscriptStartIndex;if(null!=e&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==k._super){const t=this.nameManager.claimFreeName("_");let n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,k._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(k.questionDot,k.parenL)||this.tokens.matches2(k.questionDot,k.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(k.questionDot,k.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(k.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(k.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(k.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(k.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(0===e&&null!=this.tokens.tokens[t].subscriptStartIndex)return this.tokens.tokens[t-1].type===k._super;t--}}}class Co extends De{constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=s}process(){const e=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(k.name,k.dot,k.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(k.parenL),this.tokens.copyExpectedToken(k.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(k.braceR),this.tokens.copyExpectedToken(k.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,k.name,k.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===J.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,k._export,k._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const e=(this.options.filePath||"unknown").split("/"),t=e[e.length-1],n=t.lastIndexOf("."),s=-1===n?t:t.slice(0,n);return"index"===s&&e[e.length-2]?e[e.length-2]:s}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(k.parenL,k.braceL))return!1;const t=e+1,n=this.tokens.tokens[t].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;e ({variableName:e,uniqueLocalName:e})));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${t.map((({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||"")});`)).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Eo=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function So(e){if(0===e.length)return!1;if(!G[e.charCodeAt(0)])return!1;for(let t=1;t ` var ${e};`)).join("");for(const o of this.transformers)e+=o.getHoistedCode();let t="";for(const o of this.transformers)t+=o.getSuffixCode();const n=this.tokens.finish();let{code:s}=n;if(s.startsWith("#!")){let o=s.indexOf("\n");return-1===o&&(o=s.length,s+="\n"),{code:s.slice(0,o+1)+e+s.slice(o+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+s+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(k.braceL)||this.tokens.matches1(k.dollarBraceL))e++;else if(this.tokens.matches1(k.braceR)){if(0===e)return;e--}if(this.tokens.matches1(k.parenL))t++;else if(this.tokens.matches1(k.parenR)){if(0===t)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(k._class))this.processClass();else{for(const e of this.transformers){if(e.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(k._class,k.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=ro(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const s=this.tokens.currentToken().contextId;if(null==s)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(k._class);!this.tokens.matchesContextIdAndLabel(k.braceL,s);)this.processToken();this.processClassBody(e,n);const o=e.staticInitializerNames.map((e=>`${n}.${e}()`));t?this.tokens.appendCode(`, ${o.map((e=>`${e}, `)).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${o.map((e=>`${e};`)).join(" ")}`)}processClassBody(e,t){const{headerInfo:n,constructorInsertPos:s,constructorInitializerStatements:o,fields:r,instanceInitializerNames:i,rangesToRemove:a}=e;let c=0,l=0;const u=this.tokens.currentToken().contextId;if(null==u)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(k.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const h=o.length+i.length>0;if(null===s&&h){const e=this.makeConstructorInitCode(o,i,t);if(n.hasSuperclass){const t=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(k.braceR,u);)if(c =a[l].start){for(this.tokens.currentIndex()`${n}.prototype.${e}.call(this)`))].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(k.parenR,k.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,k.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex() "),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(m._async)&&!this.tokens.matches1(k._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==k.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,k.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex() t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ko=(e,t)=>{for(var n in t||(t={}))Mo.call(t,n)&&$o(e,n,t[n]);if(qo)for(var n of qo(t))Fo.call(t,n)&&$o(e,n,t[n]);return e},Ho=(e,t)=>Po(e,Bo(t)),Vo=e=>{const{tabMode:t="indentation"}=e,n=(0,s.useRef)(null),[o,r]=(0,s.useState)(e.code||""),{theme:i}=e;return(0,s.useEffect)((()=>{r(e.code)}),[e.code]),function(e,t,n){function o(t){var n=e.current;if(n){var s=d(n);n=p(n),s.position+=t.length-n.length,k.position=s,k.onChange(t,s)}}function r(t,n){var s=e.current;if(s){var o=window.getSelection().getRangeAt(0);o.deleteContents(),o.collapse();var r=n||0;(o=f(s,n=(o=d(s)).position+(0>r?r:0),o.position+(0 r-c||i&&i[1]===s?c=r:(n=++k.historyAt,k.history[n]=[o,s],k.history.splice(n+1),500 r(e.slice(0,-1))),{disabled:e.disabled,indentation:"indentation"===t?2:void 0}),(0,s.useEffect)((()=>{e.onChange&&e.onChange(o)}),[o]),(0,x.jsx)("div",{className:e.className,style:e.style,children:(0,x.jsx)(c.f4,{code:o,theme:e.theme||c.Zj.nightOwl,language:e.language,children:({className:e,tokens:t,getLineProps:s,getTokenProps:o,style:r})=>(0,x.jsx)("pre",{className:e,style:Ko(Ko({margin:0,outline:"none",padding:10,fontFamily:"inherit"},i&&"object"==typeof i.plain?i.plain:{}),r),ref:n,spellCheck:"false",children:t.map(((e,t)=>(0,x.jsxs)("span",Ho(Ko({},s({line:e})),{children:[e.filter((e=>!e.empty)).map(((e,t)=>(0,x.jsx)("span",Ko({},o({token:e})),`token-${t}`))),"\n"]}),`line-${t}`)))})})})},Uo=(0,s.createContext)({}),Wo=["jsx","imports"];function zo(e={}){const t=Array.isArray(e.transforms)?e.transforms.filter(Boolean):Wo;return e=>Lo(e,{transforms:t}).code}var Go=(e,t)=>class extends s.Component{componentDidCatch(e){t(e)}render(){return"function"==typeof e?(0,x.jsx)(e,{}):s.isValidElement(e)?e:null}},Xo=(e,t)=>{const n=Object.keys(t),s=n.map((e=>t[e]));return new Function(...n,e)(...s)};var Jo='const _jsxFileName = "";',Yo=e=>e.trim().replace(/;$/,""),Qo=e=>e.replace(Jo,"").trim(),Zo=e=>Jo+e,er=e=>`return (${e})`;var tr=function({children:e,code:t="",language:n="tsx",theme:o,enableTypeScript:r=!0,disabled:i=!1,scope:a,transformCode:c,noInline:l=!1}){const[u,h]=(0,s.useState)({error:void 0,element:void 0});function p(e){return t=this,n=null,o=function*(){const t=e=>{h({error:e.toString(),element:void 0})};try{const o=c?c(e):e;try{const e=yield Promise.resolve(o),n=e=>h({error:void 0,element:e});if("string"!=typeof e)throw new Error("Code failed to transform");const i={code:e,scope:a,enableTypeScript:r};l?(h({error:void 0,element:null}),(({code:e="",scope:t={},enableTypeScript:n=!0},o,r)=>{if(!/render\s*\(/.test(e))return r(new SyntaxError("No-Inline evaluations must call `render`."));const i=["jsx","imports"];n&&i.splice(1,0,"typescript"),Xo(zo({transforms:i})(e),Ho(Ko({React:s},t),{render:e=>{void 0===e?r(new SyntaxError("`render` must be called with valid JSX.")):o(Go(e,r))}}))})(i,n,t)):n((({code:e="",scope:t={},enableTypeScript:n=!0},o)=>{const r=["jsx"];n&&r.push("typescript");const i=function(...e){return e.reduce(((e,t)=>(...n)=>e(t(...n))))}(Zo,zo({transforms:["imports"]}),er,Qo,Yo,zo({transforms:r}),Yo)(e);return Go(Xo(i,Ko({React:s},t)),o)})(i,t))}catch(n){return t(n)}}catch(o){return t(o),Promise.resolve()}},new Promise(((e,s)=>{var r=e=>{try{a(o.next(e))}catch(t){s(t)}},i=e=>{try{a(o.throw(e))}catch(t){s(t)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,i);a((o=o.apply(t,n)).next())}));var t,n,o}const d=e=>h({error:e.toString()});return(0,s.useEffect)((()=>{p(t).catch(d)}),[t,a,l,c]),(0,x.jsx)(Uo.Provider,{value:Ho(Ko({},u),{code:t,language:n,theme:o,disabled:i,onError:d,onChange:e=>{p(e).catch(d)}}),children:e})};function nr(e){const{code:t,language:n,theme:o,disabled:r,onChange:i}=(0,s.useContext)(Uo);return(0,x.jsx)(Vo,Ko({theme:o,code:t,language:n,disabled:r,onChange:i},e))}function sr(e){const{error:t}=(0,s.useContext)(Uo);return t?(0,x.jsx)("pre",Ho(Ko({},e),{children:t})):null}var or=function(e){var t=e,{Component:n="div"}=t,o=((e,t)=>{var n={};for(var s in e)Mo.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&qo)for(var s of qo(e))t.indexOf(s)<0&&Fo.call(e,s)&&(n[s]=e[s]);return n})(t,["Component"]);const{element:r}=(0,s.useContext)(Uo);return(0,x.jsx)(n,Ho(Ko({},o),{children:r?(0,x.jsx)(r,{}):null}))};var rr=n(1312),ir=n(4586);function ar(e){let{children:t,fallback:n}=e;return(0,a.A)()?(0,x.jsx)(x.Fragment,{children:t?.()}):n??null}var cr=n(2181),lr=n(5293),ur=n(6342);function hr(){const{prism:e}=(0,ur.p)(),{colorMode:t}=(0,lr.G)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var pr=n(7489);const dr={playgroundContainer:"playgroundContainer_X_Ta",playgroundHeader:"playgroundHeader_dyrN",playgroundEditor:"playgroundEditor_Q6Y7",playgroundPreview:"playgroundPreview_DzOI"};function fr(e){let{children:t}=e;return(0,x.jsx)("div",{className:(0,i.A)(dr.playgroundHeader),children:t})}function mr(){return(0,x.jsx)("div",{children:"Loading..."})}function kr(){return(0,x.jsx)(ar,{fallback:(0,x.jsx)(mr,{}),children:()=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(pr.A,{fallback:e=>(0,x.jsx)(cr.MN,{...e}),children:(0,x.jsx)(or,{})}),(0,x.jsx)(sr,{})]})})}function gr(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(fr,{children:(0,x.jsx)(rr.A,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,x.jsx)("div",{className:dr.playgroundPreview,children:(0,x.jsx)(kr,{})})]})}function xr(){const e=(0,a.A)();return(0,x.jsx)(nr,{className:dr.playgroundEditor},String(e))}function _r(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(fr,{children:(0,x.jsx)(rr.A,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,x.jsx)(xr,{})]})}const yr=e=>`${e};`;function Tr(e){let{children:t,transformCode:n,...s}=e;const{siteConfig:{themeConfig:o}}=(0,ir.A)(),{liveCodeBlock:{playgroundPosition:r}}=o,i=hr(),a=s.metastring?.includes("noInline")??!1;return(0,x.jsx)("div",{className:dr.playgroundContainer,children:(0,x.jsx)(tr,{code:t?.replace(/\n$/,""),noInline:a,transformCode:n??yr,theme:i,...s,children:"top"===r?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(gr,{}),(0,x.jsx)(_r,{})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_r,{}),(0,x.jsx)(gr,{})]})})})}const br={React:s,...s};var vr=n(7559),Ir=n(8426),wr=n.n(Ir);const Cr=/title=(? ["'])(?.*?)\1/,Ar=/\{(? [\d,-]+)\}/,Er={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Sr={...Er,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Nr=Object.keys(Er);function jr(e,t){const n=e.map((e=>{const{start:n,end:s}=Sr[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Rr(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:r}=t;if(r&&Ar.test(r)){const e=r.match(Ar).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${r}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=wr()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return jr(["js","jsBlock"],t);case"jsx":case"tsx":return jr(["js","jsBlock","jsx"],t);case"html":return jr(["js","jsBlock","html"],t);case"python":case"py":case"bash":return jr(["bash"],t);case"markdown":case"md":return jr(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return jr(["tex"],t);case"lua":case"haskell":case"sql":return jr(["lua"],t);case"wasm":return jr(["wasm"],t);case"vb":case"vba":case"visual-basic":return jr(["vb","rem"],t);case"vbnet":return jr(["vbnet","rem"],t);case"batch":return jr(["rem"],t);case"basic":return jr(["rem","f90"],t);case"fsharp":return jr(["js","ml"],t);case"ocaml":case"sml":return jr(["ml"],t);case"fortran":return jr(["f90"],t);case"cobol":return jr(["cobol"],t);default:return jr(Nr,t)}}(s,o),a=n.split("\n"),c=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),l=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),h=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d void 0!==e));l[t]?c[l[t]].range+=`${d},`:u[t]?c[u[t]].start=d:h[t]&&(c[h[t]].range+=`${c[h[t]].start}-${d-1},`),a.splice(d,1)}n=a.join("\n");const p={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;wr()(n).forEach((e=>{p[e]??=[],p[e].push(t)}))})),{lineClassNames:p,code:n}}const Lr={codeBlockContainer:"codeBlockContainer_Ckt0"};function Or(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const r=t[s];r&&"string"==typeof o&&(n[r]=o)})),n}(hr());return(0,x.jsx)(t,{...n,style:s,className:(0,i.A)(n.className,Lr.codeBlockContainer,vr.G.common.codeBlock)})}const Dr={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function Pr(e){let{children:t,className:n}=e;return(0,x.jsx)(Or,{as:"pre",tabIndex:0,className:(0,i.A)(Dr.codeBlockStandalone,"thin-scrollbar",n),children:(0,x.jsx)("code",{className:Dr.codeBlockLines,children:t})})}var Br=n(9532);const qr={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Mr(e,t){const[n,o]=(0,s.useState)(),r=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{r()}),[r]),function(e,t,n){void 0===n&&(n=qr);const o=(0,Br._q)(t),r=(0,Br.Be)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,r),()=>t.disconnect()}),[e,o,r])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),r())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const Fr={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function $r(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:r}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const a=o({line:t,className:(0,i.A)(n,s&&Fr.codeLine)}),c=t.map(((e,t)=>(0,x.jsx)("span",{...r({token:e,key:t})},t)));return(0,x.jsxs)("span",{...a,children:[s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:Fr.codeLineNumber}),(0,x.jsx)("span",{className:Fr.codeLineContent,children:c})]}):c,(0,x.jsx)("br",{})]})}function Kr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function Hr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Vr={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Ur(e){let{code:t,className:n}=e;const[o,r]=(0,s.useState)(!1),a=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,{target:t=document.body}={}){if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),s=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const o=document.getSelection(),r=o.rangeCount>0&&o.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let i=!1;try{i=document.execCommand("copy")}catch{}n.remove(),r&&(o.removeAllRanges(),o.addRange(r)),s&&s.focus()}(t),r(!0),a.current=window.setTimeout((()=>{r(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,x.jsx)("button",{type:"button","aria-label":o?(0,rr.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,rr.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,rr.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.A)("clean-btn",n,Vr.copyButton,o&&Vr.copyButtonCopied),onClick:c,children:(0,x.jsxs)("span",{className:Vr.copyButtonIcons,"aria-hidden":"true",children:[(0,x.jsx)(Kr,{className:Vr.copyButtonIcon}),(0,x.jsx)(Hr,{className:Vr.copyButtonSuccessIcon})]})})}function Wr(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const zr={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Gr(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,rr.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,x.jsx)("button",{type:"button",onClick:n,className:(0,i.A)("clean-btn",t,s&&zr.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,x.jsx)(Wr,{className:zr.wordWrapButtonIcon,"aria-hidden":"true"})})}function Xr(e){let{children:t,className:n="",metastring:o,title:r,showLineNumbers:a,language:l}=e;const{prism:{defaultLanguage:u,magicComments:h}}=(0,ur.p)(),p=function(e){return e?.toLowerCase()}(l??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??u),d=hr(),f=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),r=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=r.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[r,e]),a=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=r.current,n=e>t||r.current.querySelector("code").hasAttribute("style");o(n)}),[r]);return Mr(r,a),(0,s.useEffect)((()=>{a()}),[e,a]),(0,s.useEffect)((()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)})),[a]),{codeBlockRef:r,isEnabled:e,isCodeScrollable:n,toggle:i}}(),m=function(e){return e?.match(Cr)?.groups.title??""}(o)||r,{lineClassNames:k,code:g}=Rr(t,{metastring:o,language:p,magicComments:h}),_=a??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,x.jsxs)(Or,{as:"div",className:(0,i.A)(n,p&&!n.includes(`language-${p}`)&&`language-${p}`),children:[m&&(0,x.jsx)("div",{className:Dr.codeBlockTitle,children:m}),(0,x.jsxs)("div",{className:Dr.codeBlockContent,children:[(0,x.jsx)(c.f4,{theme:d,code:g,language:p??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:r}=e;return(0,x.jsx)("pre",{tabIndex:0,ref:f.codeBlockRef,className:(0,i.A)(t,Dr.codeBlock,"thin-scrollbar"),style:n,children:(0,x.jsx)("code",{className:(0,i.A)(Dr.codeBlockLines,_&&Dr.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,x.jsx)($r,{line:e,getLineProps:o,getTokenProps:r,classNames:k[t],showLineNumbers:_},t)))})})}}),(0,x.jsxs)("div",{className:Dr.buttonGroup,children:[(f.isEnabled||f.isCodeScrollable)&&(0,x.jsx)(Gr,{className:Dr.codeButton,onClick:()=>f.toggle(),isEnabled:f.isEnabled}),(0,x.jsx)(Ur,{className:Dr.codeButton,code:g})]})]})]})}const Jr=(Yr=function(e){let{children:t,...n}=e;const o=(0,a.A)(),r=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof r?Xr:Pr;return(0,x.jsx)(i,{...n,children:r},String(o))},function(e){return e.live?(0,x.jsx)(Tr,{scope:br,...e}):(0,x.jsx)(Yr,{...e})});var Yr;function Qr(e){return(0,x.jsx)("code",{...e})}var Zr=n(8774);var ei=n(3427),ti=n(1422);const ni={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function si(e){return!!e&&("SUMMARY"===e.tagName||si(e.parentElement))}function oi(e,t){return!!e&&(e===t||oi(e.parentElement,t))}function ri(e){let{summary:t,children:n,...o}=e;(0,ei.A)().collectAnchor(o.id);const r=(0,a.A)(),c=(0,s.useRef)(null),{collapsed:l,setCollapsed:u}=(0,ti.u)({initialState:!o.open}),[h,p]=(0,s.useState)(o.open),d=s.isValidElement(t)?t:(0,x.jsx)("summary",{children:t??"Details"});return(0,x.jsxs)("details",{...o,ref:c,open:h,"data-collapsed":l,className:(0,i.A)(ni.details,r&&ni.isBrowser,o.className),onMouseDown:e=>{si(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;si(t)&&oi(t,c.current)&&(e.preventDefault(),l?(u(!1),p(!0)):u(!0))},children:[d,(0,x.jsx)(ti.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{u(e),p(!e)},children:(0,x.jsx)("div",{className:ni.collapsibleContent,children:n})})]})}const ii={details:"details_b_Ee"},ai="alert alert--info";function ci(e){let{...t}=e;return(0,x.jsx)(ri,{...t,className:(0,i.A)(ai,ii.details,t.className)})}function li(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),o=(0,x.jsx)(x.Fragment,{children:t.filter((e=>e!==n))});return(0,x.jsx)(ci,{...e,summary:n,children:o})}var ui=n(1107);function hi(e){return(0,x.jsx)(ui.A,{...e})}const pi={containsTaskList:"containsTaskList_mC6p"};function di(e){if(void 0!==e)return(0,i.A)(e,e?.includes("contains-task-list")&&pi.containsTaskList)}const fi={img:"img_ev3q"};var mi=n(7293),ki=n(418);const gi={Head:r.A,details:li,Details:li,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,x.jsx)(Qr,{...e}):(0,x.jsx)(Jr,{...e})},a:function(e){return(0,x.jsx)(Zr.A,{...e})},pre:function(e){return(0,x.jsx)(x.Fragment,{children:e.children})},ul:function(e){return(0,x.jsx)("ul",{...e,className:di(e.className)})},li:function(e){return(0,ei.A)().collectAnchor(e.id),(0,x.jsx)("li",{...e})},img:function(e){return(0,x.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,i.A)(t,fi.img))});var t},h1:e=>(0,x.jsx)(hi,{as:"h1",...e}),h2:e=>(0,x.jsx)(hi,{as:"h2",...e}),h3:e=>(0,x.jsx)(hi,{as:"h3",...e}),h4:e=>(0,x.jsx)(hi,{as:"h4",...e}),h5:e=>(0,x.jsx)(hi,{as:"h5",...e}),h6:e=>(0,x.jsx)(hi,{as:"h6",...e}),admonition:mi.A,mermaid:ki.A};function xi(e){let{children:t}=e;return(0,x.jsx)(o.x,{components:gi,children:t})}},89:(e,t)=>{"use strict";var n="\n",s=function(){function e(e){this.string=e;for(var t=[0],s=0;s this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()},8426:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,r]=t;if(s&&r){s=parseInt(s),r=parseInt(r);const e=s 0&&s.push(o+" more"),n._failMsg="is none of "+s.join(", ")):n._failMsg="is none of "+o+" types",n}return o(t,e),t.prototype.getChecker=function(e,t){var n=this,s=this.ttypes.map((function(n){return n.getChecker(e,t)}));return function(e,t){for(var o=t.unionResolver(),r=0;r =s._score)&&(s=i)}s&&s._score>0&&((t=this._propNames).push.apply(t,s._propNames),(n=this._messages).push.apply(n,s._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var r=this._messages[n];r&&t.push(e+" "+r)}return new o(e,t.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+="number"==typeof s?"["+s+"]":s?"."+s:"";var o=this._messages[n];o&&t.push({path:e,message:o})}var r=null;for(n=t.length-1;n>=0;n--)r&&(t[n].nested=[r]),r=t[n];return r},e}();t.DetailContext=i;var a=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new i;return this.contexts.push(e),e},e}()},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,x:()=>a});var s=n(6540);const o={},r=s.createContext(o);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/74ef759f.28820be2.js b/assets/js/74ef759f.28820be2.js deleted file mode 100644 index 78ee0ad4..00000000 --- a/assets/js/74ef759f.28820be2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7006],{8861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var r=t(4848),s=t(8453);t(8597);const i={sidebar_position:1},a=void 0,c={id:"Functions/Writing Functions",title:"Writing Functions",description:"def function_name(parameters):",source:"@site/docs/Functions/Writing Functions.md",sourceDirName:"Functions",slug:"/Functions/Writing Functions",permalink:"/bpd-reference/docs/Functions/Writing Functions",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/Functions/Writing Functions.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Logical Operators",permalink:"/bpd-reference/docs/if-statements/Logical Operators"},next:{title:"Applying Functions",permalink:"/bpd-reference/docs/Functions/Applying Functions"}},o={},d=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"def function_name(parameters):"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Define a customise function in Python."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["parameters: ",(0,r.jsx)("em",{children:"any data type"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"These parameters are variables that act as placeholders for the values you pass to the function. A function can take a single parameter or a comma-separated list of parameters. Including parameters is optional; a function may operate without any."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"The result of the function. If there is no return statement, the function returns None by default."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"The type of the returned object depends on the value provided by the return expression. If no return statement is used, the return type is NoneType."})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"def is_dog(species):\n if species == 'dog':\n return True\n return False\n"})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"is_dog('dog')\n"})}),"\n",(0,r.jsx)(n.p,{children:"True"})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>s});t(6540);var r=t(4848);const s=e=>{let{data:n}=e,t=[],s=[],i="",a=[];if(n){const e=JSON.parse(n);t=e.columns||[],s=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i})," ",t.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:s.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:a[n]})," ",e.map(((e,n)=>(0,r.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},n)))]},n)))})]})})}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>c});var r=t(6540);const s={},i=r.createContext(s);function a(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/74ef759f.fd1ca1f9.js b/assets/js/74ef759f.fd1ca1f9.js new file mode 100644 index 00000000..d4912c3f --- /dev/null +++ b/assets/js/74ef759f.fd1ca1f9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7006],{8861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var r=t(4848),s=t(8453);t(8597);const i={sidebar_position:1},a=void 0,c={id:"Functions/Writing Functions",title:"Writing Functions",description:"def function_name(parameters):",source:"@site/docs/Functions/Writing Functions.md",sourceDirName:"Functions",slug:"/Functions/Writing Functions",permalink:"/bpd-reference/docs/Functions/Writing Functions",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/Functions/Writing Functions.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"np.array",permalink:"/bpd-reference/docs/data format conversion/np.array"},next:{title:"Applying Functions",permalink:"/bpd-reference/docs/Functions/Applying Functions"}},o={},d=[];function l(e){const n={code:"code",hr:"hr",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"def function_name(parameters):"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Define a customise function in Python."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["parameters: ",(0,r.jsx)("em",{children:"any data type"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"These parameters are variables that act as placeholders for the values you pass to the function. A function can take a single parameter or a comma-separated list of parameters. Including parameters is optional; a function may operate without any."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"The result of the function. If there is no return statement, the function returns None by default."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"The type of the returned object depends on the value provided by the return expression. If no return statement is used, the return type is NoneType."})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"def is_dog(species):\r\n if species == 'dog':\r\n return True\r\n return False\n"})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-python",children:"is_dog('dog')\n"})}),"\n",(0,r.jsx)(n.p,{children:"True"})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8597:(e,n,t)=>{t.d(n,{A:()=>s});t(6540);var r=t(4848);const s=e=>{let{data:n}=e,t=[],s=[],i="",a=[];if(n){const e=JSON.parse(n);t=e.columns||[],s=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,r.jsx)("div",{className:"dataframe-container",children:(0,r.jsxs)("table",{className:"dataframe-table",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:i})," ",t.map(((e,n)=>(0,r.jsx)("th",{children:e},n)))]})}),(0,r.jsx)("tbody",{children:s.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{className:"index-value",children:a[n]})," ",e.map(((e,n)=>(0,r.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},n)))]},n)))})]})})}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>c});var r=t(6540);const s={},i=r.createContext(s);function a(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7661071f.8f82254d.js b/assets/js/7661071f.682d96b7.js similarity index 71% rename from assets/js/7661071f.8f82254d.js rename to assets/js/7661071f.682d96b7.js index 940d82a7..3eddbbbb 100644 --- a/assets/js/7661071f.8f82254d.js +++ b/assets/js/7661071f.682d96b7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8737],{4137:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(5237).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},5237:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8737],{4137:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(74).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},74:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8cfe8d4e.9db14d70.js b/assets/js/8cfe8d4e.20b94bb1.js similarity index 64% rename from assets/js/8cfe8d4e.9db14d70.js rename to assets/js/8cfe8d4e.20b94bb1.js index a24e5e63..2c9e44af 100644 --- a/assets/js/8cfe8d4e.9db14d70.js +++ b/assets/js/8cfe8d4e.20b94bb1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4014],{5638:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>c});var n=t(4848),r=t(8453);t(8597);const i={sidebar_position:1},a=void 0,d={id:"plotting/histogram",title:"histogram",description:"df.plot(kind='hist', y=datacol, bins=thebins, density=True)",source:"@site/docs/plotting/histogram.md",sourceDirName:"plotting",slug:"/plotting/histogram",permalink:"/bpd-reference/docs/plotting/histogram",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/plotting/histogram.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Plotting",permalink:"/bpd-reference/docs/category/plotting"},next:{title:"for-loops",permalink:"/bpd-reference/docs/for-loops/"}},l={},c=[];function o(e){const s={code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"df.plot(kind='hist', y=data_col, bins=the_bins, density=True)"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Create a histogram using a DataFrame."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["kind : ",(0,n.jsx)("em",{children:"string"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"To create a histogram, use kind='hist'"}),(0,n.jsxs)("dd",{className:"parameter",children:["y : ",(0,n.jsx)("em",{children:"label"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Column to calculate frequency/probability density."}),(0,n.jsxs)("dd",{className:"parameter",children:["bins : ",(0,n.jsx)("em",{children:"integer or array"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If integer, number of bins to use."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If array, specifies the bin edges. "}),(0,n.jsxs)("dd",{className:"parameter",children:["density : ",(0,n.jsx)("em",{children:"boolean, default False"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If False, y-axis plots the number of observations."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If True, y-axis plots the probability density."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"plot - Matplotlib plot created using parameters."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Matplotlib plot"}),(0,n.jsx)("dt",{className:"term",children:"Note:"}),(0,n.jsx)("dd",{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:"In a histogram, only the last bin is inclusive of the right endpoint! [left, right)"}),(0,n.jsx)("li",{children:"The bins you specity don't have to include all data values; data values not in any bin won't be shown in the histogram."})]})})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Age', bins=np.arange(0, 15, 3), density=True)\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 1",src:t(2854).A+"",width:"576",height:"413"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Weight', bins=5, density=True)\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 2",src:t(6621).A+"",width:"585",height:"413"})})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:i})," ",t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:a[s]})," ",e.map(((e,s)=>(0,n.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},s)))]},s)))})]})})}},2854:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex1-ad9d7a412f216d31b760c78e8fb86b78.png"},6621:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex2-f50ec1d8e200f6a4ec35561236673662.png"},8453:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>d});var n=t(6540);const r={},i=n.createContext(r);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[4014],{5638:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>c});var n=t(4848),r=t(8453);t(8597);const i={sidebar_position:1},a=void 0,d={id:"plotting/histogram",title:"histogram",description:"df.plot(kind='hist', y=datacol, bins=thebins, density=True)",source:"@site/docs/plotting/histogram.md",sourceDirName:"plotting",slug:"/plotting/histogram",permalink:"/bpd-reference/docs/plotting/histogram",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/plotting/histogram.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Plotting",permalink:"/bpd-reference/docs/category/plotting"},next:{title:"for-loops",permalink:"/bpd-reference/docs/for-loops/"}},l={},c=[];function o(e){const s={code:"code",hr:"hr",img:"img",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"df.plot(kind='hist', y=data_col, bins=the_bins, density=True)"}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Create a histogram using a DataFrame."})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Input:"}),(0,n.jsxs)("dd",{className:"parameter",children:["kind : ",(0,n.jsx)("em",{children:"string"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"To create a histogram, use kind='hist'"}),(0,n.jsxs)("dd",{className:"parameter",children:["y : ",(0,n.jsx)("em",{children:"label"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"Column to calculate frequency/probability density."}),(0,n.jsxs)("dd",{className:"parameter",children:["bins : ",(0,n.jsx)("em",{children:"integer or array"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If integer, number of bins to use."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If array, specifies the bin edges. "}),(0,n.jsxs)("dd",{className:"parameter",children:["density : ",(0,n.jsx)("em",{children:"boolean, default False"})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If False, y-axis plots the number of observations."}),(0,n.jsx)("dd",{className:"parameter-description",children:"If True, y-axis plots the probability density."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"plot - Matplotlib plot created using parameters."}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Matplotlib plot"}),(0,n.jsx)("dt",{className:"term",children:"Note:"}),(0,n.jsx)("dd",{children:(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:"In a histogram, only the last bin is inclusive of the right endpoint! [left, right)"}),(0,n.jsx)("li",{children:"The bins you specity don't have to include all data values; data values not in any bin won't be shown in the histogram."})]})})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Age', bins=np.arange(0, 15, 3), density=True)\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 1",src:t(941).A+"",width:"576",height:"413"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"pets.plot(kind='hist', y='Weight', bins=5, density=True)\n"})}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"Histogram example 2",src:t(9318).A+"",width:"585",height:"413"})})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:i})," ",t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:a[s]})," ",e.map(((e,s)=>(0,n.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},s)))]},s)))})]})})}},941:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex1-ad9d7a412f216d31b760c78e8fb86b78.png"},9318:(e,s,t)=>{t.d(s,{A:()=>n});const n=t.p+"assets/images/histex2-f50ec1d8e200f6a4ec35561236673662.png"},8453:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>d});var n=t(6540);const r={},i=n.createContext(r);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/913421e4.42958f9f.js b/assets/js/913421e4.42958f9f.js deleted file mode 100644 index 2b2f151e..00000000 --- a/assets/js/913421e4.42958f9f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7364],{789:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var r=n(4848),t=n(8453),i=n(8205);const o={sidebar_position:7},a=void 0,c={id:"series-methods/ser.unique()",title:"ser.unique()",description:"ser.unique()",source:"@site/docs/series-methods/ser.unique().md",sourceDirName:"series-methods",slug:"/series-methods/ser.unique()",permalink:"/bpd-reference/docs/series-methods/ser.unique()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.unique().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"ser.median()",permalink:"/bpd-reference/docs/series-methods/ser.median()"},next:{title:"ser.str.split()",permalink:"/bpd-reference/docs/series-methods/ser.str.split()"}},d={},l=[];function u(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.unique()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the unique values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.unique()\n"})}),"\n",(0,r.jsx)(s.p,{children:"array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. ])"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"# Number of unique values\nlen(weight_ser.unique())\n"})}),"\n",(0,r.jsx)(s.p,{children:"8"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",o="";if(s)try{const e=JSON.parse(s);i=e.name||"",o=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const a=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:a.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",o]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>o,x:()=>a});var r=n(6540);const t={},i=r.createContext(t);function o(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/913421e4.660b87f5.js b/assets/js/913421e4.660b87f5.js new file mode 100644 index 00000000..b4280b3e --- /dev/null +++ b/assets/js/913421e4.660b87f5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7364],{789:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var r=n(4848),t=n(8453),i=n(8205);const o={sidebar_position:7},a=void 0,c={id:"series-methods/ser.unique()",title:"ser.unique()",description:"ser.unique()",source:"@site/docs/series-methods/ser.unique().md",sourceDirName:"series-methods",slug:"/series-methods/ser.unique()",permalink:"/bpd-reference/docs/series-methods/ser.unique()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.unique().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"ser.median()",permalink:"/bpd-reference/docs/series-methods/ser.median()"},next:{title:"ser.str.split()",permalink:"/bpd-reference/docs/series-methods/ser.str.split()"}},d={},l=[];function u(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.unique()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the unique values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.unique()\n"})}),"\n",(0,r.jsx)(s.p,{children:"array([40. , 1.5 , 15. , 80. , 25. , 1. , 0.25, 10. ])"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"# Number of unique values\r\nlen(weight_ser.unique())\n"})}),"\n",(0,r.jsx)(s.p,{children:"8"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",o="";if(s)try{const e=JSON.parse(s);i=e.name||"",o=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const a=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:a.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",o]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>o,x:()=>a});var r=n(6540);const t={},i=r.createContext(t);function o(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.2cc55ad0.js b/assets/js/935f2afb.2cc55ad0.js new file mode 100644 index 00000000..1c438e8d --- /dev/null +++ b/assets/js/935f2afb.2cc55ad0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8581],{5610:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"tutorialSidebar":[{"type":"link","label":"Intro","href":"/bpd-reference/docs/intro","docId":"intro","unlisted":false},{"type":"category","label":"Building and Organizing DataFrames","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"bpd.DataFrame()","href":"/bpd-reference/docs/building-organizing/bpd.DataFrame()","docId":"building-organizing/bpd.DataFrame()","unlisted":false},{"type":"link","label":"bpd.read_csv()","href":"/bpd-reference/docs/building-organizing/bpd.read_csv()","docId":"building-organizing/bpd.read_csv()","unlisted":false},{"type":"link","label":"df.assign()","href":"/bpd-reference/docs/building-organizing/df.assign()","docId":"building-organizing/df.assign()","unlisted":false},{"type":"link","label":"df.drop()","href":"/bpd-reference/docs/building-organizing/df.drop()","docId":"building-organizing/df.drop()","unlisted":false},{"type":"link","label":"df.set_index()","href":"/bpd-reference/docs/building-organizing/df.set_index()","docId":"building-organizing/df.set_index()","unlisted":false},{"type":"link","label":"df.reset_index()","href":"/bpd-reference/docs/building-organizing/df.reset_index()","docId":"building-organizing/df.reset_index()","unlisted":false},{"type":"link","label":"df.sort_values()","href":"/bpd-reference/docs/building-organizing/df.sort_values()","docId":"building-organizing/df.sort_values()","unlisted":false},{"type":"link","label":"df.merge()","href":"/bpd-reference/docs/building-organizing/df.merge()","docId":"building-organizing/df.merge()","unlisted":false}],"href":"/bpd-reference/docs/building-organizing/"},{"type":"category","label":"Accessing Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"df.shape","href":"/bpd-reference/docs/accessing-data/df.shape","docId":"accessing-data/df.shape","unlisted":false}],"href":"/bpd-reference/docs/category/accessing-data"},{"type":"category","label":"Series Methods","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"ser.count()","href":"/bpd-reference/docs/series-methods/ser.count()","docId":"series-methods/ser.count()","unlisted":false},{"type":"link","label":"ser.max()","href":"/bpd-reference/docs/series-methods/ser.max()","docId":"series-methods/ser.max()","unlisted":false},{"type":"link","label":"ser.min()","href":"/bpd-reference/docs/series-methods/ser.min()","docId":"series-methods/ser.min()","unlisted":false},{"type":"link","label":"ser.sum()","href":"/bpd-reference/docs/series-methods/ser.sum()","docId":"series-methods/ser.sum()","unlisted":false},{"type":"link","label":"ser.mean()","href":"/bpd-reference/docs/series-methods/ser.mean()","docId":"series-methods/ser.mean()","unlisted":false},{"type":"link","label":"ser.median()","href":"/bpd-reference/docs/series-methods/ser.median()","docId":"series-methods/ser.median()","unlisted":false},{"type":"link","label":"ser.unique()","href":"/bpd-reference/docs/series-methods/ser.unique()","docId":"series-methods/ser.unique()","unlisted":false},{"type":"link","label":"ser.str.split()","href":"/bpd-reference/docs/series-methods/ser.str.split()","docId":"series-methods/ser.str.split()","unlisted":false},{"type":"link","label":"ser.str.strip()","href":"/bpd-reference/docs/series-methods/ser.str.strip()","docId":"series-methods/ser.str.strip()","unlisted":false},{"type":"link","label":"ser.str.lower()","href":"/bpd-reference/docs/series-methods/ser.str.lower()","docId":"series-methods/ser.str.lower()","unlisted":false},{"type":"link","label":"ser.str.upper()","href":"/bpd-reference/docs/series-methods/ser.str.upper()","docId":"series-methods/ser.str.upper()","unlisted":false},{"type":"link","label":"ser.str.capitalize()","href":"/bpd-reference/docs/series-methods/ser.str.capitalize()","docId":"series-methods/ser.str.capitalize()","unlisted":false},{"type":"link","label":"ser.str.title()","href":"/bpd-reference/docs/series-methods/ser.str.title()","docId":"series-methods/ser.str.title()","unlisted":false},{"type":"link","label":"ser.str.replace()","href":"/bpd-reference/docs/series-methods/ser.str.replace()","docId":"series-methods/ser.str.replace()","unlisted":false},{"type":"link","label":"ser.str.len()","href":"/bpd-reference/docs/series-methods/ser.str.len()","docId":"series-methods/ser.str.len()","unlisted":false},{"type":"link","label":"ser.str.contains()","href":"/bpd-reference/docs/series-methods/ser.str.contains()","docId":"series-methods/ser.str.contains()","unlisted":false}],"href":"/bpd-reference/docs/series-methods/"},{"type":"category","label":"Arrays and NumPy","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"arr[]","href":"/bpd-reference/docs/arrays-and-numpy/arr[]","docId":"arrays-and-numpy/arr[]","unlisted":false}],"href":"/bpd-reference/docs/category/arrays-and-numpy"},{"type":"category","label":"Plotting","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"histogram","href":"/bpd-reference/docs/plotting/histogram","docId":"plotting/histogram","unlisted":false}],"href":"/bpd-reference/docs/category/plotting"},{"type":"link","label":"for-loops","href":"/bpd-reference/docs/for-loops/","docId":"for-loops/for-loops","unlisted":false},{"type":"category","label":"if-statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"if-elif-else","href":"/bpd-reference/docs/if-statements/if-elif-else","docId":"if-statements/if-elif-else","unlisted":false},{"type":"link","label":"in \u2044 not in","href":"/bpd-reference/docs/if-statements/in \u2044 not in","docId":"if-statements/in \u2044 not in","unlisted":false},{"type":"link","label":"Logical Operators","href":"/bpd-reference/docs/if-statements/Logical Operators","docId":"if-statements/Logical Operators","unlisted":false}],"href":"/bpd-reference/docs/category/if-statements"},{"type":"category","label":"data format","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"list()","href":"/bpd-reference/docs/data format conversion/list()","docId":"data format conversion/list()","unlisted":false},{"type":"link","label":"np.array","href":"/bpd-reference/docs/data format conversion/np.array","docId":"data format conversion/np.array","unlisted":false}],"href":"/bpd-reference/docs/category/data-format"},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Writing Functions","href":"/bpd-reference/docs/Functions/Writing Functions","docId":"Functions/Writing Functions","unlisted":false},{"type":"link","label":"Applying Functions","href":"/bpd-reference/docs/Functions/Applying Functions","docId":"Functions/Applying Functions","unlisted":false}]},{"type":"category","label":"grouping","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"groupby","href":"/bpd-reference/docs/grouping/groupby","docId":"grouping/groupby","unlisted":false},{"type":"category","label":"aggregation","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"count()","href":"/bpd-reference/docs/grouping/aggregation/count()","docId":"grouping/aggregation/count()","unlisted":false},{"type":"link","label":"max()","href":"/bpd-reference/docs/grouping/aggregation/max()","docId":"grouping/aggregation/max()","unlisted":false},{"type":"link","label":"mean()","href":"/bpd-reference/docs/grouping/aggregation/mean()","docId":"grouping/aggregation/mean()","unlisted":false},{"type":"link","label":"median()","href":"/bpd-reference/docs/grouping/aggregation/median()","docId":"grouping/aggregation/median()","unlisted":false},{"type":"link","label":"min()","href":"/bpd-reference/docs/grouping/aggregation/min()","docId":"grouping/aggregation/min()","unlisted":false},{"type":"link","label":"sum()","href":"/bpd-reference/docs/grouping/aggregation/sum()","docId":"grouping/aggregation/sum()","unlisted":false}]}]}]},"docs":{"accessing-data/df.shape":{"id":"accessing-data/df.shape","title":"df.shape","description":"df.shape","sidebar":"tutorialSidebar"},"arrays-and-numpy/arr[]":{"id":"arrays-and-numpy/arr[]","title":"arr[]","description":"arr[index]","sidebar":"tutorialSidebar"},"building-organizing/bpd.DataFrame()":{"id":"building-organizing/bpd.DataFrame()","title":"bpd.DataFrame()","description":"bpd.DataFrame()","sidebar":"tutorialSidebar"},"building-organizing/bpd.read_csv()":{"id":"building-organizing/bpd.read_csv()","title":"bpd.read_csv()","description":"bpd.read_csv(filepath)","sidebar":"tutorialSidebar"},"building-organizing/df.assign()":{"id":"building-organizing/df.assign()","title":"df.assign()","description":"df.assign(nameofcolumn=column_data)","sidebar":"tutorialSidebar"},"building-organizing/df.drop()":{"id":"building-organizing/df.drop()","title":"df.drop()","description":"df.drop(columns=columnname or [col1name, ..., colk_name])","sidebar":"tutorialSidebar"},"building-organizing/df.merge()":{"id":"building-organizing/df.merge()","title":"df.merge()","description":"df.merge(right, how=\'inner\', on=column, lefton=leftcolumn, righton=rightcolumn, leftindex=False, rightindex=False)","sidebar":"tutorialSidebar"},"building-organizing/df.reset_index()":{"id":"building-organizing/df.reset_index()","title":"df.reset_index()","description":"df.reset_index(drop=False)","sidebar":"tutorialSidebar"},"building-organizing/df.set_index()":{"id":"building-organizing/df.set_index()","title":"df.set_index()","description":"df.setindex(columnname)","sidebar":"tutorialSidebar"},"building-organizing/df.sort_values()":{"id":"building-organizing/df.sort_values()","title":"df.sort_values()","description":"df.sortvalues(by=columnname, ascending=True)","sidebar":"tutorialSidebar"},"building-organizing/index":{"id":"building-organizing/index","title":"Building and Organizing DataFrames","description":"Each function/method creates a new DataFrame. Remember to save it!","sidebar":"tutorialSidebar"},"data format conversion/list()":{"id":"data format conversion/list()","title":"list()","description":"list(array)","sidebar":"tutorialSidebar"},"data format conversion/np.array":{"id":"data format conversion/np.array","title":"np.array","description":"df.assign(nameofcolumn=column_data)","sidebar":"tutorialSidebar"},"for-loops/for-loops":{"id":"for-loops/for-loops","title":"for-loops","description":"for \\\\ in \\\\:","sidebar":"tutorialSidebar"},"Functions/Applying Functions":{"id":"Functions/Applying Functions","title":"Applying Functions","description":"df.get(columnname).apply(functionname)","sidebar":"tutorialSidebar"},"Functions/Writing Functions":{"id":"Functions/Writing Functions","title":"Writing Functions","description":"def function_name(parameters):","sidebar":"tutorialSidebar"},"grouping/aggregation/count()":{"id":"grouping/aggregation/count()","title":"count()","description":"df.groupby(column_name).count()","sidebar":"tutorialSidebar"},"grouping/aggregation/max()":{"id":"grouping/aggregation/max()","title":"max()","description":"df.groupby(column_name).max()","sidebar":"tutorialSidebar"},"grouping/aggregation/mean()":{"id":"grouping/aggregation/mean()","title":"mean()","description":"df.groupby(column_name).mean()","sidebar":"tutorialSidebar"},"grouping/aggregation/median()":{"id":"grouping/aggregation/median()","title":"median()","description":"df.groupby(column_name).median()","sidebar":"tutorialSidebar"},"grouping/aggregation/min()":{"id":"grouping/aggregation/min()","title":"min()","description":"df.groupby(column_name).min()","sidebar":"tutorialSidebar"},"grouping/aggregation/sum()":{"id":"grouping/aggregation/sum()","title":"sum()","description":"df.groupby(column_name).sum()","sidebar":"tutorialSidebar"},"grouping/groupby":{"id":"grouping/groupby","title":"groupby","description":"df.groupby(columnname)ordf.groupby([columnnames])","sidebar":"tutorialSidebar"},"if-statements/if-elif-else":{"id":"if-statements/if-elif-else","title":"if-elif-else","description":"if \\\\:","sidebar":"tutorialSidebar"},"if-statements/in \u2044 not in":{"id":"if-statements/in \u2044 not in","title":"in \u2044 not in","description":"if \\\\ in \\\\:","sidebar":"tutorialSidebar"},"if-statements/Logical Operators":{"id":"if-statements/Logical Operators","title":"Logical Operators","description":"if \\\\ and \\\\:","sidebar":"tutorialSidebar"},"intro":{"id":"intro","title":"intro","description":"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already run import babypandas as bpd and import numpy as np.","sidebar":"tutorialSidebar"},"plotting/histogram":{"id":"plotting/histogram","title":"histogram","description":"df.plot(kind=\'hist\', y=datacol, bins=thebins, density=True)","sidebar":"tutorialSidebar"},"series-methods/index":{"id":"series-methods/index","title":"Series Methods","description":"Methods that can be performed on a Series.","sidebar":"tutorialSidebar"},"series-methods/ser.count()":{"id":"series-methods/ser.count()","title":"ser.count()","description":"ser.count()","sidebar":"tutorialSidebar"},"series-methods/ser.max()":{"id":"series-methods/ser.max()","title":"ser.max()","description":"ser.max()","sidebar":"tutorialSidebar"},"series-methods/ser.mean()":{"id":"series-methods/ser.mean()","title":"ser.mean()","description":"ser.mean()","sidebar":"tutorialSidebar"},"series-methods/ser.median()":{"id":"series-methods/ser.median()","title":"ser.median()","description":"ser.median()","sidebar":"tutorialSidebar"},"series-methods/ser.min()":{"id":"series-methods/ser.min()","title":"ser.min()","description":"ser.min()","sidebar":"tutorialSidebar"},"series-methods/ser.str.capitalize()":{"id":"series-methods/ser.str.capitalize()","title":"ser.str.capitalize()","description":"ser.str.capitalize()","sidebar":"tutorialSidebar"},"series-methods/ser.str.contains()":{"id":"series-methods/ser.str.contains()","title":"ser.str.contains()","description":"ser.str.contains(substring)","sidebar":"tutorialSidebar"},"series-methods/ser.str.len()":{"id":"series-methods/ser.str.len()","title":"ser.str.len()","description":"ser.str.len()","sidebar":"tutorialSidebar"},"series-methods/ser.str.lower()":{"id":"series-methods/ser.str.lower()","title":"ser.str.lower()","description":"ser.str.lower()","sidebar":"tutorialSidebar"},"series-methods/ser.str.replace()":{"id":"series-methods/ser.str.replace()","title":"ser.str.replace()","description":"ser.str.replace(old, new, count=-1)","sidebar":"tutorialSidebar"},"series-methods/ser.str.split()":{"id":"series-methods/ser.str.split()","title":"ser.str.split()","description":"ser.str.split()orser.str.split(seperator)","sidebar":"tutorialSidebar"},"series-methods/ser.str.strip()":{"id":"series-methods/ser.str.strip()","title":"ser.str.strip()","description":"ser.str.strip(to_remove=None)","sidebar":"tutorialSidebar"},"series-methods/ser.str.title()":{"id":"series-methods/ser.str.title()","title":"ser.str.title()","description":"ser.str.title()","sidebar":"tutorialSidebar"},"series-methods/ser.str.upper()":{"id":"series-methods/ser.str.upper()","title":"ser.str.upper()","description":"ser.str.upper()","sidebar":"tutorialSidebar"},"series-methods/ser.sum()":{"id":"series-methods/ser.sum()","title":"ser.sum()","description":"ser.sum()","sidebar":"tutorialSidebar"},"series-methods/ser.unique()":{"id":"series-methods/ser.unique()","title":"ser.unique()","description":"ser.unique()","sidebar":"tutorialSidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.ad982734.js b/assets/js/935f2afb.ad982734.js deleted file mode 100644 index 1523f282..00000000 --- a/assets/js/935f2afb.ad982734.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8581],{5610:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"tutorialSidebar":[{"type":"link","label":"Intro","href":"/bpd-reference/docs/intro","docId":"intro","unlisted":false},{"type":"category","label":"Building and Organizing DataFrames","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"bpd.DataFrame()","href":"/bpd-reference/docs/building-organizing/bpd.DataFrame()","docId":"building-organizing/bpd.DataFrame()","unlisted":false},{"type":"link","label":"bpd.read_csv()","href":"/bpd-reference/docs/building-organizing/bpd.read_csv()","docId":"building-organizing/bpd.read_csv()","unlisted":false},{"type":"link","label":"df.assign()","href":"/bpd-reference/docs/building-organizing/df.assign()","docId":"building-organizing/df.assign()","unlisted":false},{"type":"link","label":"df.drop()","href":"/bpd-reference/docs/building-organizing/df.drop()","docId":"building-organizing/df.drop()","unlisted":false},{"type":"link","label":"df.set_index()","href":"/bpd-reference/docs/building-organizing/df.set_index()","docId":"building-organizing/df.set_index()","unlisted":false},{"type":"link","label":"df.reset_index()","href":"/bpd-reference/docs/building-organizing/df.reset_index()","docId":"building-organizing/df.reset_index()","unlisted":false},{"type":"link","label":"df.sort_values()","href":"/bpd-reference/docs/building-organizing/df.sort_values()","docId":"building-organizing/df.sort_values()","unlisted":false},{"type":"link","label":"df.merge()","href":"/bpd-reference/docs/building-organizing/df.merge()","docId":"building-organizing/df.merge()","unlisted":false}],"href":"/bpd-reference/docs/building-organizing/"},{"type":"category","label":"Accessing Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"df.shape","href":"/bpd-reference/docs/accessing-data/df.shape","docId":"accessing-data/df.shape","unlisted":false}],"href":"/bpd-reference/docs/category/accessing-data"},{"type":"category","label":"Series Methods","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"ser.count()","href":"/bpd-reference/docs/series-methods/ser.count()","docId":"series-methods/ser.count()","unlisted":false},{"type":"link","label":"ser.max()","href":"/bpd-reference/docs/series-methods/ser.max()","docId":"series-methods/ser.max()","unlisted":false},{"type":"link","label":"ser.min()","href":"/bpd-reference/docs/series-methods/ser.min()","docId":"series-methods/ser.min()","unlisted":false},{"type":"link","label":"ser.sum()","href":"/bpd-reference/docs/series-methods/ser.sum()","docId":"series-methods/ser.sum()","unlisted":false},{"type":"link","label":"ser.mean()","href":"/bpd-reference/docs/series-methods/ser.mean()","docId":"series-methods/ser.mean()","unlisted":false},{"type":"link","label":"ser.median()","href":"/bpd-reference/docs/series-methods/ser.median()","docId":"series-methods/ser.median()","unlisted":false},{"type":"link","label":"ser.unique()","href":"/bpd-reference/docs/series-methods/ser.unique()","docId":"series-methods/ser.unique()","unlisted":false},{"type":"link","label":"ser.str.split()","href":"/bpd-reference/docs/series-methods/ser.str.split()","docId":"series-methods/ser.str.split()","unlisted":false},{"type":"link","label":"ser.str.strip()","href":"/bpd-reference/docs/series-methods/ser.str.strip()","docId":"series-methods/ser.str.strip()","unlisted":false},{"type":"link","label":"ser.str.lower()","href":"/bpd-reference/docs/series-methods/ser.str.lower()","docId":"series-methods/ser.str.lower()","unlisted":false},{"type":"link","label":"ser.str.upper()","href":"/bpd-reference/docs/series-methods/ser.str.upper()","docId":"series-methods/ser.str.upper()","unlisted":false},{"type":"link","label":"ser.str.capitalize()","href":"/bpd-reference/docs/series-methods/ser.str.capitalize()","docId":"series-methods/ser.str.capitalize()","unlisted":false},{"type":"link","label":"ser.str.title()","href":"/bpd-reference/docs/series-methods/ser.str.title()","docId":"series-methods/ser.str.title()","unlisted":false},{"type":"link","label":"ser.str.replace()","href":"/bpd-reference/docs/series-methods/ser.str.replace()","docId":"series-methods/ser.str.replace()","unlisted":false},{"type":"link","label":"ser.str.len()","href":"/bpd-reference/docs/series-methods/ser.str.len()","docId":"series-methods/ser.str.len()","unlisted":false},{"type":"link","label":"ser.str.contains()","href":"/bpd-reference/docs/series-methods/ser.str.contains()","docId":"series-methods/ser.str.contains()","unlisted":false}],"href":"/bpd-reference/docs/series-methods/"},{"type":"category","label":"Arrays and NumPy","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"arr[]","href":"/bpd-reference/docs/arrays-and-numpy/arr[]","docId":"arrays-and-numpy/arr[]","unlisted":false}],"href":"/bpd-reference/docs/category/arrays-and-numpy"},{"type":"category","label":"Plotting","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"histogram","href":"/bpd-reference/docs/plotting/histogram","docId":"plotting/histogram","unlisted":false}],"href":"/bpd-reference/docs/category/plotting"},{"type":"link","label":"for-loops","href":"/bpd-reference/docs/for-loops/","docId":"for-loops/for-loops","unlisted":false},{"type":"category","label":"if-statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"if-elif-else","href":"/bpd-reference/docs/if-statements/if-elif-else","docId":"if-statements/if-elif-else","unlisted":false},{"type":"link","label":"in \u2044 not in","href":"/bpd-reference/docs/if-statements/in \u2044 not in","docId":"if-statements/in \u2044 not in","unlisted":false},{"type":"link","label":"Logical Operators","href":"/bpd-reference/docs/if-statements/Logical Operators","docId":"if-statements/Logical Operators","unlisted":false}],"href":"/bpd-reference/docs/category/if-statements"},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Writing Functions","href":"/bpd-reference/docs/Functions/Writing Functions","docId":"Functions/Writing Functions","unlisted":false},{"type":"link","label":"Applying Functions","href":"/bpd-reference/docs/Functions/Applying Functions","docId":"Functions/Applying Functions","unlisted":false}]},{"type":"category","label":"grouping","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"groupby","href":"/bpd-reference/docs/grouping/groupby","docId":"grouping/groupby","unlisted":false},{"type":"category","label":"aggregation","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"count()","href":"/bpd-reference/docs/grouping/aggregation/count()","docId":"grouping/aggregation/count()","unlisted":false},{"type":"link","label":"max()","href":"/bpd-reference/docs/grouping/aggregation/max()","docId":"grouping/aggregation/max()","unlisted":false},{"type":"link","label":"mean()","href":"/bpd-reference/docs/grouping/aggregation/mean()","docId":"grouping/aggregation/mean()","unlisted":false},{"type":"link","label":"median()","href":"/bpd-reference/docs/grouping/aggregation/median()","docId":"grouping/aggregation/median()","unlisted":false},{"type":"link","label":"min()","href":"/bpd-reference/docs/grouping/aggregation/min()","docId":"grouping/aggregation/min()","unlisted":false},{"type":"link","label":"sum()","href":"/bpd-reference/docs/grouping/aggregation/sum()","docId":"grouping/aggregation/sum()","unlisted":false}]}]}]},"docs":{"accessing-data/df.shape":{"id":"accessing-data/df.shape","title":"df.shape","description":"df.shape","sidebar":"tutorialSidebar"},"arrays-and-numpy/arr[]":{"id":"arrays-and-numpy/arr[]","title":"arr[]","description":"arr[index]","sidebar":"tutorialSidebar"},"building-organizing/bpd.DataFrame()":{"id":"building-organizing/bpd.DataFrame()","title":"bpd.DataFrame()","description":"bpd.DataFrame()","sidebar":"tutorialSidebar"},"building-organizing/bpd.read_csv()":{"id":"building-organizing/bpd.read_csv()","title":"bpd.read_csv()","description":"bpd.read_csv(filepath)","sidebar":"tutorialSidebar"},"building-organizing/df.assign()":{"id":"building-organizing/df.assign()","title":"df.assign()","description":"df.assign(nameofcolumn=column_data)","sidebar":"tutorialSidebar"},"building-organizing/df.drop()":{"id":"building-organizing/df.drop()","title":"df.drop()","description":"df.drop(columns=columnname or [col1name, ..., colk_name])","sidebar":"tutorialSidebar"},"building-organizing/df.merge()":{"id":"building-organizing/df.merge()","title":"df.merge()","description":"df.merge(right, how=\'inner\', on=column, lefton=leftcolumn, righton=rightcolumn, leftindex=False, rightindex=False)","sidebar":"tutorialSidebar"},"building-organizing/df.reset_index()":{"id":"building-organizing/df.reset_index()","title":"df.reset_index()","description":"df.reset_index(drop=False)","sidebar":"tutorialSidebar"},"building-organizing/df.set_index()":{"id":"building-organizing/df.set_index()","title":"df.set_index()","description":"df.setindex(columnname)","sidebar":"tutorialSidebar"},"building-organizing/df.sort_values()":{"id":"building-organizing/df.sort_values()","title":"df.sort_values()","description":"df.sortvalues(by=columnname, ascending=True)","sidebar":"tutorialSidebar"},"building-organizing/index":{"id":"building-organizing/index","title":"Building and Organizing DataFrames","description":"Each function/method creates a new DataFrame. Remember to save it!","sidebar":"tutorialSidebar"},"for-loops/for-loops":{"id":"for-loops/for-loops","title":"for-loops","description":"for \\\\ in \\\\:","sidebar":"tutorialSidebar"},"Functions/Applying Functions":{"id":"Functions/Applying Functions","title":"Applying Functions","description":"df.get(columnname).apply(functionname)","sidebar":"tutorialSidebar"},"Functions/Writing Functions":{"id":"Functions/Writing Functions","title":"Writing Functions","description":"def function_name(parameters):","sidebar":"tutorialSidebar"},"grouping/aggregation/count()":{"id":"grouping/aggregation/count()","title":"count()","description":"df.groupby(column_name).count()","sidebar":"tutorialSidebar"},"grouping/aggregation/max()":{"id":"grouping/aggregation/max()","title":"max()","description":"df.groupby(column_name).max()","sidebar":"tutorialSidebar"},"grouping/aggregation/mean()":{"id":"grouping/aggregation/mean()","title":"mean()","description":"df.groupby(column_name).mean()","sidebar":"tutorialSidebar"},"grouping/aggregation/median()":{"id":"grouping/aggregation/median()","title":"median()","description":"df.groupby(column_name).median()","sidebar":"tutorialSidebar"},"grouping/aggregation/min()":{"id":"grouping/aggregation/min()","title":"min()","description":"df.groupby(column_name).min()","sidebar":"tutorialSidebar"},"grouping/aggregation/sum()":{"id":"grouping/aggregation/sum()","title":"sum()","description":"df.groupby(column_name).sum()","sidebar":"tutorialSidebar"},"grouping/groupby":{"id":"grouping/groupby","title":"groupby","description":"df.groupby(columnname)ordf.groupby([columnnames])","sidebar":"tutorialSidebar"},"if-statements/if-elif-else":{"id":"if-statements/if-elif-else","title":"if-elif-else","description":"if \\\\:","sidebar":"tutorialSidebar"},"if-statements/in \u2044 not in":{"id":"if-statements/in \u2044 not in","title":"in \u2044 not in","description":"if \\\\ in \\\\:","sidebar":"tutorialSidebar"},"if-statements/Logical Operators":{"id":"if-statements/Logical Operators","title":"Logical Operators","description":"if \\\\ and \\\\:","sidebar":"tutorialSidebar"},"intro":{"id":"intro","title":"intro","description":"Assumption: Assume that df is a DataFrame, ser is a Series, arr is an array, and we already run import babypandas as bpd and import numpy as np.","sidebar":"tutorialSidebar"},"plotting/histogram":{"id":"plotting/histogram","title":"histogram","description":"df.plot(kind=\'hist\', y=datacol, bins=thebins, density=True)","sidebar":"tutorialSidebar"},"series-methods/index":{"id":"series-methods/index","title":"Series Methods","description":"Methods that can be performed on a Series.","sidebar":"tutorialSidebar"},"series-methods/ser.count()":{"id":"series-methods/ser.count()","title":"ser.count()","description":"ser.count()","sidebar":"tutorialSidebar"},"series-methods/ser.max()":{"id":"series-methods/ser.max()","title":"ser.max()","description":"ser.max()","sidebar":"tutorialSidebar"},"series-methods/ser.mean()":{"id":"series-methods/ser.mean()","title":"ser.mean()","description":"ser.mean()","sidebar":"tutorialSidebar"},"series-methods/ser.median()":{"id":"series-methods/ser.median()","title":"ser.median()","description":"ser.median()","sidebar":"tutorialSidebar"},"series-methods/ser.min()":{"id":"series-methods/ser.min()","title":"ser.min()","description":"ser.min()","sidebar":"tutorialSidebar"},"series-methods/ser.str.capitalize()":{"id":"series-methods/ser.str.capitalize()","title":"ser.str.capitalize()","description":"ser.str.capitalize()","sidebar":"tutorialSidebar"},"series-methods/ser.str.contains()":{"id":"series-methods/ser.str.contains()","title":"ser.str.contains()","description":"ser.str.contains(substring)","sidebar":"tutorialSidebar"},"series-methods/ser.str.len()":{"id":"series-methods/ser.str.len()","title":"ser.str.len()","description":"ser.str.len()","sidebar":"tutorialSidebar"},"series-methods/ser.str.lower()":{"id":"series-methods/ser.str.lower()","title":"ser.str.lower()","description":"ser.str.lower()","sidebar":"tutorialSidebar"},"series-methods/ser.str.replace()":{"id":"series-methods/ser.str.replace()","title":"ser.str.replace()","description":"ser.str.replace(old, new, count=-1)","sidebar":"tutorialSidebar"},"series-methods/ser.str.split()":{"id":"series-methods/ser.str.split()","title":"ser.str.split()","description":"ser.str.split()orser.str.split(seperator)","sidebar":"tutorialSidebar"},"series-methods/ser.str.strip()":{"id":"series-methods/ser.str.strip()","title":"ser.str.strip()","description":"ser.str.strip(to_remove=None)","sidebar":"tutorialSidebar"},"series-methods/ser.str.title()":{"id":"series-methods/ser.str.title()","title":"ser.str.title()","description":"ser.str.title()","sidebar":"tutorialSidebar"},"series-methods/ser.str.upper()":{"id":"series-methods/ser.str.upper()","title":"ser.str.upper()","description":"ser.str.upper()","sidebar":"tutorialSidebar"},"series-methods/ser.sum()":{"id":"series-methods/ser.sum()","title":"ser.sum()","description":"ser.sum()","sidebar":"tutorialSidebar"},"series-methods/ser.unique()":{"id":"series-methods/ser.unique()","title":"ser.unique()","description":"ser.unique()","sidebar":"tutorialSidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/a569f9e9.0f776d77.js b/assets/js/a569f9e9.0f776d77.js new file mode 100644 index 00000000..70f4cbee --- /dev/null +++ b/assets/js/a569f9e9.0f776d77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7415],{4028:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var r=n(4848),t=n(8453),i=n(8205);const a={sidebar_position:6},d=void 0,o={id:"series-methods/ser.median()",title:"ser.median()",description:"ser.median()",source:"@site/docs/series-methods/ser.median().md",sourceDirName:"series-methods",slug:"/series-methods/ser.median()",permalink:"/bpd-reference/docs/series-methods/ser.median()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.median().md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"ser.mean()",permalink:"/bpd-reference/docs/series-methods/ser.mean()"},next:{title:"ser.unique()",permalink:"/bpd-reference/docs/series-methods/ser.unique()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.median()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the median of the values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.median()\n"})}),"\n",(0,r.jsx)(s.p,{children:"12.5"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>d});var r=n(6540);const t={},i=r.createContext(t);function a(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a569f9e9.269af91c.js b/assets/js/a569f9e9.269af91c.js deleted file mode 100644 index d37729de..00000000 --- a/assets/js/a569f9e9.269af91c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7415],{4028:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var r=n(4848),t=n(8453),i=n(8205);const a={sidebar_position:6},d=void 0,o={id:"series-methods/ser.median()",title:"ser.median()",description:"ser.median()",source:"@site/docs/series-methods/ser.median().md",sourceDirName:"series-methods",slug:"/series-methods/ser.median()",permalink:"/bpd-reference/docs/series-methods/ser.median()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.median().md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"ser.mean()",permalink:"/bpd-reference/docs/series-methods/ser.mean()"},next:{title:"ser.unique()",permalink:"/bpd-reference/docs/series-methods/ser.unique()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.median()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the median of the values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.median()\n"})}),"\n",(0,r.jsx)(s.p,{children:"12.5"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(o){console.error("Error parsing data prop in SeriesComponent:",o)}const d=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:d.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>d});var r=n(6540);const t={},i=r.createContext(t);function a(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bcdab8ad.358cc313.js b/assets/js/bcdab8ad.358cc313.js deleted file mode 100644 index f71f1db5..00000000 --- a/assets/js/bcdab8ad.358cc313.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5210],{7689:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),o=t(8205);const i={sidebar_position:13},a=void 0,d={id:"series-methods/ser.str.title()",title:"ser.str.title()",description:"ser.str.title()",source:"@site/docs/series-methods/ser.str.title().md",sourceDirName:"series-methods",slug:"/series-methods/ser.str.title()",permalink:"/bpd-reference/docs/series-methods/ser.str.title()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.str.title().md",tags:[],version:"current",sidebarPosition:13,frontMatter:{sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"ser.str.capitalize()",permalink:"/bpd-reference/docs/series-methods/ser.str.capitalize()"},next:{title:"ser.str.replace()",permalink:"/bpd-reference/docs/series-methods/ser.str.replace()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.title()"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Converts strings in the Series to titlecase. Every beginning character to a string of letters will be uppercased."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element titlecased."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,r.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.title()\n"})}),"\n",(0,r.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There Are No Bad Dogs, Only Bad Owners.","My Best Birthday Present Ever!!!","****All You Need Is Love And A Cat.****","Love Is A Wet Nose And A Wagging Tail.","Be The Person Your Dog Thinks You Are.","No, Thank You!","No, Thank You!","No, Thank You!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],o="",i="";if(s)try{const e=JSON.parse(s);o=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const a=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:a.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>a});var r=t(6540);const n={},o=r.createContext(n);function i(e){const s=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bcdab8ad.d5e6cccc.js b/assets/js/bcdab8ad.d5e6cccc.js new file mode 100644 index 00000000..596e07de --- /dev/null +++ b/assets/js/bcdab8ad.d5e6cccc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5210],{7689:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),o=t(8205);const i={sidebar_position:13},a=void 0,d={id:"series-methods/ser.str.title()",title:"ser.str.title()",description:"ser.str.title()",source:"@site/docs/series-methods/ser.str.title().md",sourceDirName:"series-methods",slug:"/series-methods/ser.str.title()",permalink:"/bpd-reference/docs/series-methods/ser.str.title()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.str.title().md",tags:[],version:"current",sidebarPosition:13,frontMatter:{sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"ser.str.capitalize()",permalink:"/bpd-reference/docs/series-methods/ser.str.capitalize()"},next:{title:"ser.str.replace()",permalink:"/bpd-reference/docs/series-methods/ser.str.replace()"}},c={},l=[];function m(e){const s={code:"code",hr:"hr",pre:"pre",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.title()"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Converts strings in the Series to titlecase. Every beginning character to a string of letters will be uppercased."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element titlecased."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,r.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.title()\n"})}),"\n",(0,r.jsx)(o.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There Are No Bad Dogs, Only Bad Owners.","My Best Birthday Present Ever!!!","****All You Need Is Love And A Cat.****","Love Is A Wet Nose And A Wagging Tail.","Be The Person Your Dog Thinks You Are.","No, Thank You!","No, Thank You!","No, Thank You!"]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],o="",i="";if(s)try{const e=JSON.parse(s);o=e.name||"",i=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const a=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:a.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",o,", dtype: ",i]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>a});var r=t(6540);const n={},o=r.createContext(n);function i(e){const s=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/caa881ba.3af3324d.js b/assets/js/caa881ba.3af3324d.js new file mode 100644 index 00000000..693d2ca5 --- /dev/null +++ b/assets/js/caa881ba.3af3324d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[586],{27:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>c,toc:()=>m});var r=n(4848),t=n(8453),i=n(8205);const a={sidebar_position:5},o=void 0,c={id:"series-methods/ser.mean()",title:"ser.mean()",description:"ser.mean()",source:"@site/docs/series-methods/ser.mean().md",sourceDirName:"series-methods",slug:"/series-methods/ser.mean()",permalink:"/bpd-reference/docs/series-methods/ser.mean()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.mean().md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"ser.sum()",permalink:"/bpd-reference/docs/series-methods/ser.sum()"},next:{title:"ser.median()",permalink:"/bpd-reference/docs/series-methods/ser.median()"}},d={},m=[];function l(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.mean()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the mean of the values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.mean()\n"})}),"\n",(0,r.jsx)(s.p,{children:"21.59375"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>o});var r=n(6540);const t={},i=r.createContext(t);function a(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/caa881ba.b490679a.js b/assets/js/caa881ba.b490679a.js deleted file mode 100644 index f6caa575..00000000 --- a/assets/js/caa881ba.b490679a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[586],{27:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>c,toc:()=>m});var r=n(4848),t=n(8453),i=n(8205);const a={sidebar_position:5},o=void 0,c={id:"series-methods/ser.mean()",title:"ser.mean()",description:"ser.mean()",source:"@site/docs/series-methods/ser.mean().md",sourceDirName:"series-methods",slug:"/series-methods/ser.mean()",permalink:"/bpd-reference/docs/series-methods/ser.mean()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.mean().md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"ser.sum()",permalink:"/bpd-reference/docs/series-methods/ser.sum()"},next:{title:"ser.median()",permalink:"/bpd-reference/docs/series-methods/ser.median()"}},d={},m=[];function l(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.mean()"}),"\n",(0,r.jsx)("div",{className:"base",children:(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Returns the mean of the values in the Series."})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"weight_ser.mean()\n"})}),"\n",(0,r.jsx)(s.p,{children:"21.59375"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8205:(e,s,n)=>{n.d(s,{A:()=>t});n(6540);var r=n(4848);const t=e=>{let{data:s}=e,n=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",n=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=t.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:n[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>o});var r=n(6540);const t={},i=r.createContext(t);function a(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cbe41db6.b9afddd6.js b/assets/js/cbe41db6.b9afddd6.js new file mode 100644 index 00000000..0f11b0bf --- /dev/null +++ b/assets/js/cbe41db6.b9afddd6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5164],{5707:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var n=t(4848),r=t(8453),i=t(8597);const a={sidebar_position:11},d=void 0,o={id:"if-statements/Logical Operators",title:"Logical Operators",description:"if \\ and \\:",source:"@site/docs/if-statements/Logical Operators.md",sourceDirName:"if-statements",slug:"/if-statements/Logical Operators",permalink:"/bpd-reference/docs/if-statements/Logical Operators",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/if-statements/Logical Operators.md",tags:[],version:"current",sidebarPosition:11,frontMatter:{sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"in \u2044 not in",permalink:"/bpd-reference/docs/if-statements/in \u2044 not in"},next:{title:"data format",permalink:"/bpd-reference/docs/category/data-format"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.p,{children:[(0,n.jsxs)("code",{children:["if and : ",(0,n.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]}),"\r\n",(0,n.jsxs)("code",{children:["if or : ",(0,n.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]}),"\r\n",(0,n.jsxs)("code",{children:["if not( ): ",(0,n.jsx)("br",{})]}),"\r\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,n.jsxs)("code",{children:[" ",(0,n.jsx)("br",{})," "]})]}),"\n",(0,n.jsxs)("div",{className:"base",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Allows for multiple conditions to be combined at the same time. "})}),(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"term",children:"Operators:"}),(0,n.jsxs)("dd",{className:"parameter",children:["and : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If all conditions are satisfied, the if body is executed."}),(0,n.jsxs)("dd",{className:"parameter",children:["or : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If at least one of the conditions is satisfied, the if body is executed."}),(0,n.jsxs)("dd",{className:"parameter",children:["not : ",(0,n.jsx)("em",{})]}),(0,n.jsx)("dd",{className:"parameter-description",children:"If the reverse of the condition is satisfied, the if body is executed."}),(0,n.jsx)("dt",{className:"term",children:"Returns:"}),(0,n.jsx)("dd",{children:"True or False"}),(0,n.jsx)("dt",{className:"term",children:"Return Type:"}),(0,n.jsx)("dd",{children:"Boolean"})]})]}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(i.A,{data:'{"columns":["ID","Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0],["cat_001","cat","golden",1.5,0.2],["cat_002","cat","black",15.0,9.0],["dog_002","dog","white",80.0,2.0],["dog_003","dog","black",25.0,0.5],["ham_001","hamster","black",1.0,3.0],["ham_002","hamster","golden",0.25,0.2],["cat_003","cat","black",10.0,0.0]]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"def more_descriptive_name(id_str, species, color, weight, age):\r\n return id_str + ': This ' + color + ' ' + species + ' weighs ' + weight + ' lbs and is ' + age + ' years old'\r\n \r\ndef cat_and_dog_info(pet_id):\r\n id_arr = np.array(pets.get('ID'))\r\n if pet_id not in id_arr:\r\n return 'This pet is not in our record'\r\n pets_info = pets[pets.get('ID') == pet_id]\r\n age = pets_info.get('Age').iloc[0]\r\n weight = pets_info.get('Weight').iloc[0]\r\n species = pets_info.get('Species').iloc[0]\r\n color = pets_info.get('Color').iloc[0]\r\n if (species == 'dog') and (age < 1.5):\r\n return pet_id + ': This is a puppy \ud83d\udc36'\r\n elif (species == 'cat') and (age < 1):\r\n return pet_id + ': This is a kitten \ud83d\udc31'\r\n elif (species == 'dog') or (species == 'cat'):\r\n weight = str(weight)\r\n age = str(age)\r\n return more_descriptive_name(pet_id, species, color, weight, age)\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('dog_001')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'dog_001: This black dog weighs 40.0 lbs and is 5.0 years old'"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_001')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'cat_001: This is a kitten \ud83d\udc31'"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,n.jsx)(s.p,{children:"'This pet is not in our record'"})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},8597:(e,s,t)=>{t.d(s,{A:()=>r});t(6540);var n=t(4848);const r=e=>{let{data:s}=e,t=[],r=[],i="",a=[];if(s){const e=JSON.parse(s);t=e.columns||[],r=e.data||[],i=e.indexName||"Index",a=e.index||[]}return(0,n.jsx)("div",{className:"dataframe-container",children:(0,n.jsxs)("table",{className:"dataframe-table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:i})," ",t.map(((e,s)=>(0,n.jsx)("th",{children:e},s)))]})}),(0,n.jsx)("tbody",{children:r.map(((e,s)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"index-value",children:a[s]})," ",e.map(((e,s)=>(0,n.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},s)))]},s)))})]})})}},8453:(e,s,t)=>{t.d(s,{R:()=>a,x:()=>d});var n=t(6540);const r={},i=n.createContext(r);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cbe41db6.dfa4f2ee.js b/assets/js/cbe41db6.dfa4f2ee.js deleted file mode 100644 index c4f29636..00000000 --- a/assets/js/cbe41db6.dfa4f2ee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5164],{5707:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=n(4848),i=n(8453),r=n(8597);const a={sidebar_position:11},d=void 0,o={id:"if-statements/Logical Operators",title:"Logical Operators",description:"if \\ and \\:",source:"@site/docs/if-statements/Logical Operators.md",sourceDirName:"if-statements",slug:"/if-statements/Logical Operators",permalink:"/bpd-reference/docs/if-statements/Logical Operators",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/if-statements/Logical Operators.md",tags:[],version:"current",sidebarPosition:11,frontMatter:{sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"in \u2044 not in",permalink:"/bpd-reference/docs/if-statements/in \u2044 not in"},next:{title:"Writing Functions",permalink:"/bpd-reference/docs/Functions/Writing Functions"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.p,{children:[(0,t.jsxs)("code",{children:["if and : ",(0,t.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:["if or : ",(0,t.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" ",(0,t.jsx)("br",{})," "]}),"\n",(0,t.jsxs)("code",{children:["if not( ): ",(0,t.jsx)("br",{})]}),"\n\xa0\xa0\xa0\xa0\xa0\xa0 ",(0,t.jsxs)("code",{children:[" ",(0,t.jsx)("br",{})," "]})]}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Allows for multiple conditions to be combined at the same time. "})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Operators:"}),(0,t.jsxs)("dd",{className:"parameter",children:["and : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"If all conditions are satisfied, the if body is executed."}),(0,t.jsxs)("dd",{className:"parameter",children:["or : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"If at least one of the conditions is satisfied, the if body is executed."}),(0,t.jsxs)("dd",{className:"parameter",children:["not : ",(0,t.jsx)("em",{})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"If the reverse of the condition is satisfied, the if body is executed."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"True or False"}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"Boolean"})]})]}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0],["cat_001","cat","golden",1.5,0.2],["cat_002","cat","black",15.0,9.0],["dog_002","dog","white",80.0,2.0],["dog_003","dog","black",25.0,0.5],["ham_001","hamster","black",1.0,3.0],["ham_002","hamster","golden",0.25,0.2],["cat_003","cat","black",10.0,0.0]]}'}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"def more_descriptive_name(id_str, species, color, weight, age):\n return id_str + ': This ' + color + ' ' + species + ' weighs ' + weight + ' lbs and is ' + age + ' years old'\n \ndef cat_and_dog_info(pet_id):\n id_arr = np.array(pets.get('ID'))\n if pet_id not in id_arr:\n return 'This pet is not in our record'\n pets_info = pets[pets.get('ID') == pet_id]\n age = pets_info.get('Age').iloc[0]\n weight = pets_info.get('Weight').iloc[0]\n species = pets_info.get('Species').iloc[0]\n color = pets_info.get('Color').iloc[0]\n if (species == 'dog') and (age < 1.5):\n return pet_id + ': This is a puppy \ud83d\udc36'\n elif (species == 'cat') and (age < 1):\n return pet_id + ': This is a kitten \ud83d\udc31'\n elif (species == 'dog') or (species == 'cat'):\n weight = str(weight)\n age = str(age)\n return more_descriptive_name(pet_id, species, color, weight, age)\n"})}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('dog_001')\n"})}),"\n",(0,t.jsx)(s.p,{children:"'dog_001: This black dog weighs 40.0 lbs and is 5.0 years old'"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_001')\n"})}),"\n",(0,t.jsx)(s.p,{children:"'cat_001: This is a kitten \ud83d\udc31'"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-python",children:"cat_and_dog_info('cat_009')\n"})}),"\n",(0,t.jsx)(s.p,{children:"'This pet is not in our record'"})]})}function h(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,s,n)=>{n.d(s,{A:()=>i});n(6540);var t=n(4848);const i=e=>{let{data:s}=e,n=[],i=[],r="",a=[];if(s){const e=JSON.parse(s);n=e.columns||[],i=e.data||[],r=e.indexName||"Index",a=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:r})," ",n.map(((e,s)=>(0,t.jsx)("th",{children:e},s)))]})}),(0,t.jsx)("tbody",{children:i.map(((e,s)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:a[s]})," ",e.map(((e,s)=>(0,t.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},s)))]},s)))})]})})}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>d});var t=n(6540);const i={},r=t.createContext(i);function a(e){const s=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),t.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ccc49370.12efda39.js b/assets/js/ccc49370.9b5c8bb9.js similarity index 59% rename from assets/js/ccc49370.12efda39.js rename to assets/js/ccc49370.9b5c8bb9.js index c0f8e2f6..1a385294 100644 --- a/assets/js/ccc49370.12efda39.js +++ b/assets/js/ccc49370.9b5c8bb9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3249],{3858:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});n(6540);var i=n(4164),a=n(1213),o=n(7559),r=n(7131),s=n(6535),l=n(4651),c=n(1312),d=n(9022),u=n(4848);function m(e){const{nextItem:t,prevItem:n}=e;return(0,u.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,c.T)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[n&&(0,u.jsx)(d.A,{...n,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer Post"})}),t&&(0,u.jsx)(d.A,{...t,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older Post"}),isNext:!0})]})}function g(){const{assets:e,metadata:t}=(0,r.e)(),{title:n,description:i,date:o,tags:s,authors:l,frontMatter:c}=t,{keywords:d}=c,m=e.image??c.image;return(0,u.jsxs)(a.be,{title:n,description:i,keywords:d,image:m,children:[(0,u.jsx)("meta",{property:"og:type",content:"article"}),(0,u.jsx)("meta",{property:"article:published_time",content:o}),l.some((e=>e.url))&&(0,u.jsx)("meta",{property:"article:author",content:l.map((e=>e.url)).filter(Boolean).join(",")}),s.length>0&&(0,u.jsx)("meta",{property:"article:tag",content:s.map((e=>e.label)).join(",")})]})}var h=n(5260),f=n(6676);function p(){const e=(0,f.J)();return(0,u.jsx)(h.A,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var v=n(7763),x=n(996);function b(e){let{sidebar:t,children:n}=e;const{metadata:i,toc:a}=(0,r.e)(),{nextItem:o,prevItem:c,frontMatter:d,unlisted:g}=i,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:p}=d;return(0,u.jsxs)(s.A,{sidebar:t,toc:!h&&a.length>0?(0,u.jsx)(v.A,{toc:a,minHeadingLevel:f,maxHeadingLevel:p}):void 0,children:[g&&(0,u.jsx)(x.A,{}),(0,u.jsx)(l.A,{children:n}),(o||c)&&(0,u.jsx)(m,{nextItem:o,prevItem:c})]})}function j(e){const t=e.content;return(0,u.jsx)(r.i,{content:e.content,isBlogPostPage:!0,children:(0,u.jsxs)(a.e3,{className:(0,i.A)(o.G.wrapper.blogPages,o.G.page.blogPostPage),children:[(0,u.jsx)(g,{}),(0,u.jsx)(p,{}),(0,u.jsx)(b,{sidebar:e.sidebar,children:(0,u.jsx)(t,{})})]})})}},7763:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var i=n(4164),a=n(5195);const o={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=n(4848);const s="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,i.A)(o.tableOfContents,"thin-scrollbar",t),children:(0,r.jsx)(a.A,{...n,linkClassName:s,linkActiveClassName:l})})}},5195:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(6540),a=n(6342);function o(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const i=n.slice(2,e.level);e.parentIndex=Math.max(...i),n[e.level]=t}));const i=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):i.push(a)})),i}function r(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return t.flatMap((e=>{const t=r({toc:e.children,minHeadingLevel:n,maxHeadingLevel:i});return function(e){return e.level>=n&&e.level<=i}(e)?[{...e,children:t}]:t}))}function s(e){const t=e.getBoundingClientRect();return t.top===t.bottom?s(e.parentNode):t}function l(e,t){let{anchorTopOffset:n}=t;const i=e.find((e=>s(e).top>=n));if(i){return function(e){return e.top>0&&e.bottom {e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function d(e){const t=(0,i.useRef)(void 0),n=c();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r}=e;function s(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),s=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const i=[];for(let a=t;a<=n;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:o,maxHeadingLevel:r}),c=l(s,{anchorTopOffset:n.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[e,n])}var u=n(8774),m=n(4848);function g(e){let{toc:t,className:n,linkClassName:i,isChild:a}=e;return t.length?(0,m.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(g,{isChild:!0,toc:e.children,className:n,linkClassName:i})]},e.id)))}):null}const h=i.memo(g);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:s="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...g}=e;const f=(0,a.p)(),p=c??f.tableOfContents.minHeadingLevel,v=u??f.tableOfContents.maxHeadingLevel,x=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>r({toc:o(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:p,maxHeadingLevel:v});return d((0,i.useMemo)((()=>{if(s&&l)return{linkClassName:s,linkActiveClassName:l,minHeadingLevel:p,maxHeadingLevel:v}}),[s,l,p,v])),(0,m.jsx)(h,{toc:x,className:n,linkClassName:s,...g})}},996:(e,t,n)=>{n.d(t,{A:()=>g});n(6540);var i=n(4164),a=n(1312),o=n(5260),r=n(4848);function s(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,r.jsx)(o.A,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(7559),u=n(7293);function m(e){let{className:t}=e;return(0,r.jsx)(u.A,{type:"caution",title:(0,r.jsx)(s,{}),className:(0,i.A)(t,d.G.common.unlistedBanner),children:(0,r.jsx)(l,{})})}function g(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(m,{...e})]})}},6676:(e,t,n)=>{n.d(t,{k:()=>d,J:()=>u});var i=n(6025),a=n(4586),o=n(6803);var r=n(7131);const s=e=>new Date(e).toISOString();function l(e){const t=e.map(m);return{author:1===t.length?t[0]:t}}function c(e,t,n){return e?{image:g({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${n}`})}:{}}function d(e){const{siteConfig:t}=(0,a.A)(),{withBaseUrl:n}=(0,i.h)(),{metadata:{blogDescription:o,blogTitle:r,permalink:d}}=e,u=`${t.url}${d}`;return{"@context":"https://schema.org","@type":"Blog","@id":u,mainEntityOfPage:u,headline:r,description:o,blogPost:e.items.map((e=>function(e,t,n){const{assets:i,frontMatter:a,metadata:o}=e,{date:r,title:d,description:u,lastUpdatedAt:m}=o,g=i.image??a.image,h=a.keywords??[],f=`${t.url}${o.permalink}`,p=m?s(m):void 0;return{"@type":"BlogPosting","@id":f,mainEntityOfPage:f,url:f,headline:d,name:d,description:u,datePublished:r,...p?{dateModified:p}:{},...l(o.authors),...c(g,n,d),...h?{keywords:h}:{}}}(e.content,t,n)))}}function u(){const e=function(){const e=(0,o.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}(),{assets:t,metadata:n}=(0,r.e)(),{siteConfig:d}=(0,a.A)(),{withBaseUrl:u}=(0,i.h)(),{date:m,title:g,description:h,frontMatter:f,lastUpdatedAt:p}=n,v=t.image??f.image,x=f.keywords??[],b=p?s(p):void 0,j=`${d.url}${n.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":j,mainEntityOfPage:j,url:j,headline:g,name:g,description:h,datePublished:m,...b?{dateModified:b}:{},...l(n.authors),...c(v,u,g),...x?{keywords:x}:{},isPartOf:{"@type":"Blog","@id":`${d.url}${e.blogBasePath}`,name:e.blogTitle}}}function m(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function g(e){let{imageUrl:t,caption:n}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:n}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3249],{3858:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});n(6540);var i=n(4164),a=n(1213),o=n(7559),r=n(7131),s=n(6535),l=n(4651),c=n(1312),d=n(9022),u=n(4848);function m(e){const{nextItem:t,prevItem:n}=e;return(0,u.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,c.T)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[n&&(0,u.jsx)(d.A,{...n,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer Post"})}),t&&(0,u.jsx)(d.A,{...t,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older Post"}),isNext:!0})]})}function g(){const{assets:e,metadata:t}=(0,r.e)(),{title:n,description:i,date:o,tags:s,authors:l,frontMatter:c}=t,{keywords:d}=c,m=e.image??c.image;return(0,u.jsxs)(a.be,{title:n,description:i,keywords:d,image:m,children:[(0,u.jsx)("meta",{property:"og:type",content:"article"}),(0,u.jsx)("meta",{property:"article:published_time",content:o}),l.some((e=>e.url))&&(0,u.jsx)("meta",{property:"article:author",content:l.map((e=>e.url)).filter(Boolean).join(",")}),s.length>0&&(0,u.jsx)("meta",{property:"article:tag",content:s.map((e=>e.label)).join(",")})]})}var h=n(5260),f=n(6676);function p(){const e=(0,f.J)();return(0,u.jsx)(h.A,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var v=n(7763),x=n(996);function b(e){let{sidebar:t,children:n}=e;const{metadata:i,toc:a}=(0,r.e)(),{nextItem:o,prevItem:c,frontMatter:d,unlisted:g}=i,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:p}=d;return(0,u.jsxs)(s.A,{sidebar:t,toc:!h&&a.length>0?(0,u.jsx)(v.A,{toc:a,minHeadingLevel:f,maxHeadingLevel:p}):void 0,children:[g&&(0,u.jsx)(x.A,{}),(0,u.jsx)(l.A,{children:n}),(o||c)&&(0,u.jsx)(m,{nextItem:o,prevItem:c})]})}function j(e){const t=e.content;return(0,u.jsx)(r.i,{content:e.content,isBlogPostPage:!0,children:(0,u.jsxs)(a.e3,{className:(0,i.A)(o.G.wrapper.blogPages,o.G.page.blogPostPage),children:[(0,u.jsx)(g,{}),(0,u.jsx)(p,{}),(0,u.jsx)(b,{sidebar:e.sidebar,children:(0,u.jsx)(t,{})})]})})}},5195:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(6540),a=n(6342);function o(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const i=n.slice(2,e.level);e.parentIndex=Math.max(...i),n[e.level]=t}));const i=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):i.push(a)})),i}function r(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return t.flatMap((e=>{const t=r({toc:e.children,minHeadingLevel:n,maxHeadingLevel:i});return function(e){return e.level>=n&&e.level<=i}(e)?[{...e,children:t}]:t}))}function s(e){const t=e.getBoundingClientRect();return t.top===t.bottom?s(e.parentNode):t}function l(e,t){let{anchorTopOffset:n}=t;const i=e.find((e=>s(e).top>=n));if(i){return function(e){return e.top>0&&e.bottom {e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function d(e){const t=(0,i.useRef)(void 0),n=c();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r}=e;function s(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),s=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const i=[];for(let a=t;a<=n;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:o,maxHeadingLevel:r}),c=l(s,{anchorTopOffset:n.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[e,n])}var u=n(8774),m=n(4848);function g(e){let{toc:t,className:n,linkClassName:i,isChild:a}=e;return t.length?(0,m.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(g,{isChild:!0,toc:e.children,className:n,linkClassName:i})]},e.id)))}):null}const h=i.memo(g);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:s="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...g}=e;const f=(0,a.p)(),p=c??f.tableOfContents.minHeadingLevel,v=u??f.tableOfContents.maxHeadingLevel,x=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>r({toc:o(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:p,maxHeadingLevel:v});return d((0,i.useMemo)((()=>{if(s&&l)return{linkClassName:s,linkActiveClassName:l,minHeadingLevel:p,maxHeadingLevel:v}}),[s,l,p,v])),(0,m.jsx)(h,{toc:x,className:n,linkClassName:s,...g})}},7763:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var i=n(4164),a=n(5195);const o={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=n(4848);const s="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,i.A)(o.tableOfContents,"thin-scrollbar",t),children:(0,r.jsx)(a.A,{...n,linkClassName:s,linkActiveClassName:l})})}},996:(e,t,n)=>{n.d(t,{A:()=>g});n(6540);var i=n(4164),a=n(1312),o=n(5260),r=n(4848);function s(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,r.jsx)(a.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,r.jsx)(o.A,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(7559),u=n(7293);function m(e){let{className:t}=e;return(0,r.jsx)(u.A,{type:"caution",title:(0,r.jsx)(s,{}),className:(0,i.A)(t,d.G.common.unlistedBanner),children:(0,r.jsx)(l,{})})}function g(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)(m,{...e})]})}},6676:(e,t,n)=>{n.d(t,{k:()=>d,J:()=>u});var i=n(6025),a=n(4586),o=n(6803);var r=n(7131);const s=e=>new Date(e).toISOString();function l(e){const t=e.map(m);return{author:1===t.length?t[0]:t}}function c(e,t,n){return e?{image:g({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${n}`})}:{}}function d(e){const{siteConfig:t}=(0,a.A)(),{withBaseUrl:n}=(0,i.h)(),{metadata:{blogDescription:o,blogTitle:r,permalink:d}}=e,u=`${t.url}${d}`;return{"@context":"https://schema.org","@type":"Blog","@id":u,mainEntityOfPage:u,headline:r,description:o,blogPost:e.items.map((e=>function(e,t,n){const{assets:i,frontMatter:a,metadata:o}=e,{date:r,title:d,description:u,lastUpdatedAt:m}=o,g=i.image??a.image,h=a.keywords??[],f=`${t.url}${o.permalink}`,p=m?s(m):void 0;return{"@type":"BlogPosting","@id":f,mainEntityOfPage:f,url:f,headline:d,name:d,description:u,datePublished:r,...p?{dateModified:p}:{},...l(o.authors),...c(g,n,d),...h?{keywords:h}:{}}}(e.content,t,n)))}}function u(){const e=function(){const e=(0,o.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}(),{assets:t,metadata:n}=(0,r.e)(),{siteConfig:d}=(0,a.A)(),{withBaseUrl:u}=(0,i.h)(),{date:m,title:g,description:h,frontMatter:f,lastUpdatedAt:p}=n,v=t.image??f.image,x=f.keywords??[],b=p?s(p):void 0,j=`${d.url}${n.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":j,mainEntityOfPage:j,url:j,headline:g,name:g,description:h,datePublished:m,...b?{dateModified:b}:{},...l(n.authors),...c(v,u,g),...x?{keywords:x}:{},isPartOf:{"@type":"Blog","@id":`${d.url}${e.blogBasePath}`,name:e.blogTitle}}}function m(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function g(e){let{imageUrl:t,caption:n}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:n}}}}]); \ No newline at end of file diff --git a/assets/js/cd3338e7.493d795e.js b/assets/js/cd3338e7.493d795e.js deleted file mode 100644 index a81cad7c..00000000 --- a/assets/js/cd3338e7.493d795e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7181],{2086:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>o,metadata:()=>a,toc:()=>m});var n=r(4848),t=r(8453),i=r(8205);const o={sidebar_position:3},c=void 0,a={id:"series-methods/ser.min()",title:"ser.min()",description:"ser.min()",source:"@site/docs/series-methods/ser.min().md",sourceDirName:"series-methods",slug:"/series-methods/ser.min()",permalink:"/bpd-reference/docs/series-methods/ser.min()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.min().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"ser.max()",permalink:"/bpd-reference/docs/series-methods/ser.max()"},next:{title:"ser.sum()",permalink:"/bpd-reference/docs/series-methods/ser.sum()"}},d={},m=[];function l(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.min()"}),"\n",(0,n.jsx)("div",{className:"base",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Returns the minimum of the values in the Series."})})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,n.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser.min()\n"})}),"\n",(0,n.jsx)(s.p,{children:"0.25"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8205:(e,s,r)=>{r.d(s,{A:()=>t});r(6540);var n=r(4848);const t=e=>{let{data:s}=e,r=[],t=[],i="",o="";if(s)try{const e=JSON.parse(s);i=e.name||"",o=e.dtype||"Unknown type",r=e.index||[],t=e.data||[]}catch(a){console.error("Error parsing data prop in SeriesComponent:",a)}const c=t.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:c.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:r[s]}),(0,n.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",o]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>o,x:()=>c});var n=r(6540);const t={},i=n.createContext(t);function o(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cd3338e7.6186653c.js b/assets/js/cd3338e7.6186653c.js new file mode 100644 index 00000000..a34dbd44 --- /dev/null +++ b/assets/js/cd3338e7.6186653c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7181],{2086:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>o,metadata:()=>a,toc:()=>m});var n=r(4848),t=r(8453),i=r(8205);const o={sidebar_position:3},c=void 0,a={id:"series-methods/ser.min()",title:"ser.min()",description:"ser.min()",source:"@site/docs/series-methods/ser.min().md",sourceDirName:"series-methods",slug:"/series-methods/ser.min()",permalink:"/bpd-reference/docs/series-methods/ser.min()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.min().md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"ser.max()",permalink:"/bpd-reference/docs/series-methods/ser.max()"},next:{title:"ser.sum()",permalink:"/bpd-reference/docs/series-methods/ser.sum()"}},d={},m=[];function l(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.min()"}),"\n",(0,n.jsx)("div",{className:"base",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Returns the minimum of the values in the Series."})})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,n.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser.min()\n"})}),"\n",(0,n.jsx)(s.p,{children:"0.25"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8205:(e,s,r)=>{r.d(s,{A:()=>t});r(6540);var n=r(4848);const t=e=>{let{data:s}=e,r=[],t=[],i="",o="";if(s)try{const e=JSON.parse(s);i=e.name||"",o=e.dtype||"Unknown type",r=e.index||[],t=e.data||[]}catch(a){console.error("Error parsing data prop in SeriesComponent:",a)}const c=t.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:c.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:r[s]}),(0,n.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",o]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>o,x:()=>c});var n=r(6540);const t={},i=n.createContext(t);function o(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cd6f1d3b.0f17d618.js b/assets/js/cd6f1d3b.0f17d618.js new file mode 100644 index 00000000..1a157cb3 --- /dev/null +++ b/assets/js/cd6f1d3b.0f17d618.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[8938],{9345:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var a=s(4848),r=s(8453),t=s(8205);const o={sidebar_position:3},i=void 0,c={id:"data format conversion/np.array",title:"np.array",description:"df.assign(nameofcolumn=column_data)",source:"@site/docs/data format conversion/np.array.md",sourceDirName:"data format conversion",slug:"/data format conversion/np.array",permalink:"/bpd-reference/docs/data format conversion/np.array",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/data format conversion/np.array.md",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"list()",permalink:"/bpd-reference/docs/data format conversion/list()"},next:{title:"Writing Functions",permalink:"/bpd-reference/docs/Functions/Writing Functions"}},d={},l=[];function m(e){const n={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:"df.assign(name_of_column=column_data)"}),"\n",(0,a.jsxs)("div",{className:"base",children:[(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"Adds/replaces a column. name_of_column should not have quotes or spaces."})}),(0,a.jsxs)("dl",{children:[(0,a.jsx)("dt",{className:"term",children:"Input:"}),(0,a.jsxs)("dd",{className:"parameter",children:["name_of_column : ",(0,a.jsx)("em",{children:"str"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Name of column to assign list to."}),(0,a.jsxs)("dd",{className:"parameter",children:["column_data : ",(0,a.jsx)("em",{children:"list"})]}),(0,a.jsx)("dd",{className:"parameter-description",children:"Data the column names contains."}),(0,a.jsx)("dt",{className:"term",children:"Returns:"}),(0,a.jsx)("dd",{children:"df_with_cols - A new DataFrame with the columns in addition to all the existing columns."}),(0,a.jsx)("dt",{className:"term",children:"Return Type:"}),(0,a.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-python",children:"pets = pets.assign(ID=['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001', 'ham_002'],\r\n New_column_1=['this', 'is', 'a', 'new', 'column', 'I', 'assigned'], \r\n New_column_2=['this', 'is', 'another', 'new', 'column', 'I', 'assigned'])\r\npets\n"})}),"\n",(0,a.jsx)(t.A,{data:'{"name":"Weight", "dtype": "float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'})]})}function p(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(m,{...e})}):m(e)}},8205:(e,n,s)=>{s.d(n,{A:()=>r});s(6540);var a=s(4848);const r=e=>{let{data:n}=e,s=[],r=[],t="",o="";if(n)try{const e=JSON.parse(n);t=e.name||"",o=e.dtype||"Unknown type",s=e.index||[],r=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const i=r.map((e=>JSON.stringify(e)));return(0,a.jsxs)("div",{className:"series-container",children:[(0,a.jsx)("ul",{className:"series-list",children:i.map(((e,n)=>(0,a.jsxs)("li",{className:"series-item",children:[(0,a.jsx)("span",{className:"series-index",children:s[n]}),(0,a.jsx)("span",{className:"series-value",children:e})]},n)))}),(0,a.jsxs)("div",{className:"series-footer",children:["Name: ",t,", dtype: ",o]})]})}},8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>i});var a=s(6540);const r={},t=a.createContext(r);function o(e){const n=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cd8d7c5b.6d51a7bd.js b/assets/js/cd8d7c5b.6d51a7bd.js new file mode 100644 index 00000000..44b5a8a9 --- /dev/null +++ b/assets/js/cd8d7c5b.6d51a7bd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1917],{6131:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),i=t(8205);const o={sidebar_position:8},a=void 0,d={id:"series-methods/ser.str.split()",title:"ser.str.split()",description:"ser.str.split()orser.str.split(seperator)",source:"@site/docs/series-methods/ser.str.split().md",sourceDirName:"series-methods",slug:"/series-methods/ser.str.split()",permalink:"/bpd-reference/docs/series-methods/ser.str.split()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.str.split().md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"ser.unique()",permalink:"/bpd-reference/docs/series-methods/ser.unique()"},next:{title:"ser.str.strip()",permalink:"/bpd-reference/docs/series-methods/ser.str.strip()"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.split()"}),"\n",(0,r.jsx)("strong",{children:"or"}),"\n",(0,r.jsx)("code",{children:"ser.str.split(seperator)"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Splits each string element in the Series from the beginning, at the specified seperator/delimiter string."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["seperator : ",(0,r.jsx)("em",{children:"string"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"String to split on. If not specified, split on whitespace."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element as a list of strings split from the original string."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\r\ncomment_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsx)(s.strong,{children:"In the default setting, the string is split by whitespace."})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split()\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Owner_Comment", "dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[["There","are","no","bad","dogs,","only","bad","owners."],["My","best","birthday","present","ever!!!"],["****All","you","need","is","love","and","a","cat.****"],["Love","is","a","wet","nose","and","a","wagging","tail."],["Be","the","person","your","dog","thinks","you","are."],["No,","thank","you!"],["No,","thank","you!"],["No,","thank","you!"]]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsx)(s.strong,{children:"Split the string by specified seperator."})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split(',')\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Owner_Comment", "dtype":"object", "index":[0,1,2,3,4,5,6,7],"data":[[" There are no bad dogs"," only bad owners."],["My best birthday present ever!!!"],["****All you need is love and a cat.****"],["Love is a wet nose and a wagging tail."],["Be the person your dog thinks you are."],["No"," thank you!"],["No"," thank you!"],["No"," thank you!"]]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],i="",o="";if(s)try{const e=JSON.parse(s);i=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const a=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:a.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>a});var r=t(6540);const n={},i=r.createContext(n);function o(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cd8d7c5b.d954c58c.js b/assets/js/cd8d7c5b.d954c58c.js deleted file mode 100644 index 18bd795e..00000000 --- a/assets/js/cd8d7c5b.d954c58c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[1917],{6131:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var r=t(4848),n=t(8453),i=t(8205);const o={sidebar_position:8},a=void 0,d={id:"series-methods/ser.str.split()",title:"ser.str.split()",description:"ser.str.split()orser.str.split(seperator)",source:"@site/docs/series-methods/ser.str.split().md",sourceDirName:"series-methods",slug:"/series-methods/ser.str.split()",permalink:"/bpd-reference/docs/series-methods/ser.str.split()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.str.split().md",tags:[],version:"current",sidebarPosition:8,frontMatter:{sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"ser.unique()",permalink:"/bpd-reference/docs/series-methods/ser.unique()"},next:{title:"ser.str.strip()",permalink:"/bpd-reference/docs/series-methods/ser.str.strip()"}},c={},l=[];function p(e){const s={code:"code",hr:"hr",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("code",{children:"ser.str.split()"}),"\n",(0,r.jsx)("strong",{children:"or"}),"\n",(0,r.jsx)("code",{children:"ser.str.split(seperator)"}),"\n",(0,r.jsxs)("div",{className:"base",children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Splits each string element in the Series from the beginning, at the specified seperator/delimiter string."})}),(0,r.jsxs)("dl",{children:[(0,r.jsx)("dt",{className:"term",children:"Input:"}),(0,r.jsxs)("dd",{className:"parameter",children:["seperator : ",(0,r.jsx)("em",{children:"string"})]}),(0,r.jsx)("dd",{className:"parameter-description",children:"String to split on. If not specified, split on whitespace."}),(0,r.jsx)("dt",{className:"term",children:"Returns:"}),(0,r.jsx)("dd",{children:"Returns a Series with each element as a list of strings split from the original string."}),(0,r.jsx)("dt",{className:"term",children:"Return Type:"}),(0,r.jsx)("dd",{children:"Series"})]})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser = pets.get('Owner_Comment')\ncomment_ser\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Owner_Comment","dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[" There are no bad dogs, only bad owners.","My best birthday present ever!!!","****All you need is love and a cat.****","Love is a wet nose and a wagging tail.","Be the person your dog thinks you are.","No, thank you!","No, thank you!","No, thank you!"]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsx)(s.strong,{children:"In the default setting, the string is split by whitespace."})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split()\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Owner_Comment", "dtype":"object","index":[0,1,2,3,4,5,6,7],"data":[["There","are","no","bad","dogs,","only","bad","owners."],["My","best","birthday","present","ever!!!"],["****All","you","need","is","love","and","a","cat.****"],["Love","is","a","wet","nose","and","a","wagging","tail."],["Be","the","person","your","dog","thinks","you","are."],["No,","thank","you!"],["No,","thank","you!"],["No,","thank","you!"]]}'}),"\n",(0,r.jsxs)("p",{children:[(0,r.jsx)("br",{})," ",(0,r.jsx)(s.strong,{children:"Split the string by specified seperator."})," "]}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-python",children:"comment_ser.str.split(',')\n"})}),"\n",(0,r.jsx)(i.A,{data:'{"name":"Owner_Comment", "dtype":"object", "index":[0,1,2,3,4,5,6,7],"data":[[" There are no bad dogs"," only bad owners."],["My best birthday present ever!!!"],["****All you need is love and a cat.****"],["Love is a wet nose and a wagging tail."],["Be the person your dog thinks you are."],["No"," thank you!"],["No"," thank you!"],["No"," thank you!"]]}'})]})}function h(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},8205:(e,s,t)=>{t.d(s,{A:()=>n});t(6540);var r=t(4848);const n=e=>{let{data:s}=e,t=[],n=[],i="",o="";if(s)try{const e=JSON.parse(s);i=e.name||"",o=e.dtype||"Unknown type",t=e.index||[],n=e.data||[]}catch(d){console.error("Error parsing data prop in SeriesComponent:",d)}const a=n.map((e=>JSON.stringify(e)));return(0,r.jsxs)("div",{className:"series-container",children:[(0,r.jsx)("ul",{className:"series-list",children:a.map(((e,s)=>(0,r.jsxs)("li",{className:"series-item",children:[(0,r.jsx)("span",{className:"series-index",children:t[s]}),(0,r.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,r.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",o]})]})}},8453:(e,s,t)=>{t.d(s,{R:()=>o,x:()=>a});var r=t(6540);const n={},i=r.createContext(n);function o(e){const s=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),r.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d8c458b9.3243d166.js b/assets/js/d8c458b9.3243d166.js new file mode 100644 index 00000000..ba860391 --- /dev/null +++ b/assets/js/d8c458b9.3243d166.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3626],{9356:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>c,toc:()=>m});var n=r(4848),t=r(8453),i=r(8205);const a={sidebar_position:2},o=void 0,c={id:"series-methods/ser.max()",title:"ser.max()",description:"ser.max()",source:"@site/docs/series-methods/ser.max().md",sourceDirName:"series-methods",slug:"/series-methods/ser.max()",permalink:"/bpd-reference/docs/series-methods/ser.max()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.max().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"ser.count()",permalink:"/bpd-reference/docs/series-methods/ser.count()"},next:{title:"ser.min()",permalink:"/bpd-reference/docs/series-methods/ser.min()"}},d={},m=[];function l(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.max()"}),"\n",(0,n.jsx)("div",{className:"base",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Returns the maximum of the values in the Series."})})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\r\nweight_ser\n"})}),"\n",(0,n.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser.max()\n"})}),"\n",(0,n.jsx)(s.p,{children:"80.0"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8205:(e,s,r)=>{r.d(s,{A:()=>t});r(6540);var n=r(4848);const t=e=>{let{data:s}=e,r=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",r=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=t.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:r[s]}),(0,n.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>a,x:()=>o});var n=r(6540);const t={},i=n.createContext(t);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d8c458b9.bb00d51a.js b/assets/js/d8c458b9.bb00d51a.js deleted file mode 100644 index e61abe84..00000000 --- a/assets/js/d8c458b9.bb00d51a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3626],{9356:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>a,metadata:()=>c,toc:()=>m});var n=r(4848),t=r(8453),i=r(8205);const a={sidebar_position:2},o=void 0,c={id:"series-methods/ser.max()",title:"ser.max()",description:"ser.max()",source:"@site/docs/series-methods/ser.max().md",sourceDirName:"series-methods",slug:"/series-methods/ser.max()",permalink:"/bpd-reference/docs/series-methods/ser.max()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/series-methods/ser.max().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"ser.count()",permalink:"/bpd-reference/docs/series-methods/ser.count()"},next:{title:"ser.min()",permalink:"/bpd-reference/docs/series-methods/ser.min()"}},d={},m=[];function l(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("code",{children:"ser.max()"}),"\n",(0,n.jsx)("div",{className:"base",children:(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Returns the maximum of the values in the Series."})})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser = pets.get('Weight')\nweight_ser\n"})}),"\n",(0,n.jsx)(i.A,{data:'{"name":"Weight","dtype":"float64", "index":[0,1,2,3,4,5,6,7],"data":[40.0,1.5,15.0,80.0,25.0,1.0,0.25,10.0]}'}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-python",children:"weight_ser.max()\n"})}),"\n",(0,n.jsx)(s.p,{children:"80.0"})]})}function p(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8205:(e,s,r)=>{r.d(s,{A:()=>t});r(6540);var n=r(4848);const t=e=>{let{data:s}=e,r=[],t=[],i="",a="";if(s)try{const e=JSON.parse(s);i=e.name||"",a=e.dtype||"Unknown type",r=e.index||[],t=e.data||[]}catch(c){console.error("Error parsing data prop in SeriesComponent:",c)}const o=t.map((e=>JSON.stringify(e)));return(0,n.jsxs)("div",{className:"series-container",children:[(0,n.jsx)("ul",{className:"series-list",children:o.map(((e,s)=>(0,n.jsxs)("li",{className:"series-item",children:[(0,n.jsx)("span",{className:"series-index",children:r[s]}),(0,n.jsx)("span",{className:"series-value",children:e})]},s)))}),(0,n.jsxs)("div",{className:"series-footer",children:["Name: ",i,", dtype: ",a]})]})}},8453:(e,s,r)=>{r.d(s,{R:()=>a,x:()=>o});var n=r(6540);const t={},i=n.createContext(t);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d9678c7a.6c369141.js b/assets/js/d9678c7a.6c369141.js deleted file mode 100644 index c685cd14..00000000 --- a/assets/js/d9678c7a.6c369141.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[9240],{1966:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/d9f32620.7d0f45aa.js b/assets/js/d9f32620.3cf22209.js similarity index 71% rename from assets/js/d9f32620.7d0f45aa.js rename to assets/js/d9f32620.3cf22209.js index 2733eb68..fd459a72 100644 --- a/assets/js/d9f32620.7d0f45aa.js +++ b/assets/js/d9f32620.3cf22209.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5557],{7447:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(5237).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},5237:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[5557],{7447:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=n(4848),t=n(8453);const r={slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},l=void 0,a={permalink:"/bpd-reference/blog/welcome",source:"@site/blog/2021-08-26-welcome/index.md",title:"Welcome",description:"Docusaurus blogging features are powered by the blog plugin.",date:"2021-08-26T00:00:00.000Z",tags:[{label:"facebook",permalink:"/bpd-reference/blog/tags/facebook"},{label:"hello",permalink:"/bpd-reference/blog/tags/hello"},{label:"docusaurus",permalink:"/bpd-reference/blog/tags/docusaurus"}],readingTime:.405,hasTruncateMarker:!1,authors:[{name:"S\xe9bastien Lorber",title:"Docusaurus maintainer",url:"https://sebastienlorber.com",imageURL:"https://github.com/slorber.png",key:"slorber"},{name:"Yangshun Tay",title:"Front End Engineer @ Facebook",url:"https://github.com/yangshun",imageURL:"https://github.com/yangshun.png",key:"yangshun"}],frontMatter:{slug:"welcome",title:"Welcome",authors:["slorber","yangshun"],tags:["facebook","hello","docusaurus"]},unlisted:!1,nextItem:{title:"MDX Blog Post",permalink:"/bpd-reference/blog/mdx-blog-post"}},c={authorsImageUrls:[void 0,void 0]},u=[];function i(e){const o={a:"a",code:"code",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/blog",children:"Docusaurus blogging features"})," are powered by the ",(0,s.jsx)(o.a,{href:"https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog",children:"blog plugin"}),"."]}),"\n",(0,s.jsxs)(o.p,{children:["Simply add Markdown files (or folders) to the ",(0,s.jsx)(o.code,{children:"blog"})," directory."]}),"\n",(0,s.jsxs)(o.p,{children:["Regular blog authors can be added to ",(0,s.jsx)(o.code,{children:"authors.yml"}),"."]}),"\n",(0,s.jsx)(o.p,{children:"The blog post date can be extracted from filenames, such as:"}),"\n",(0,s.jsxs)(o.ul,{children:["\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome.md"})}),"\n",(0,s.jsx)(o.li,{children:(0,s.jsx)(o.code,{children:"2019-05-30-welcome/index.md"})}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"A blog post folder can be convenient to co-locate blog post images:"}),"\n",(0,s.jsx)(o.p,{children:(0,s.jsx)(o.img,{alt:"Docusaurus Plushie",src:n(74).A+"",width:"1500",height:"500"})}),"\n",(0,s.jsx)(o.p,{children:"The blog supports tags as well!"}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.strong,{children:"And if you don't want a blog"}),": just delete this directory, and use ",(0,s.jsx)(o.code,{children:"blog: false"})," in your Docusaurus config."]})]})}function d(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},74:(e,o,n)=>{n.d(o,{A:()=>s});const s=n.p+"assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"},8453:(e,o,n)=>{n.d(o,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/db012a9c.01eb4d05.js b/assets/js/db012a9c.01eb4d05.js deleted file mode 100644 index 4908d431..00000000 --- a/assets/js/db012a9c.01eb4d05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[647],{7506:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>g,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var s=a(4848),t=a(8453),r=a(8597);const d={sidebar_position:7},o=void 0,i={id:"building-organizing/df.sort_values()",title:"df.sort_values()",description:"df.sortvalues(by=columnname, ascending=True)",source:"@site/docs/building-organizing/df.sort_values().md",sourceDirName:"building-organizing",slug:"/building-organizing/df.sort_values()",permalink:"/bpd-reference/docs/building-organizing/df.sort_values()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/building-organizing/df.sort_values().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"df.reset_index()",permalink:"/bpd-reference/docs/building-organizing/df.reset_index()"},next:{title:"df.merge()",permalink:"/bpd-reference/docs/building-organizing/df.merge()"}},c={},l=[];function u(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.sort_values(by=column_name, ascending=True)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsxs)("strong",{children:["Sorts the entire DataFrame in ascending order by the values in the column. ",(0,s.jsx)(n.code,{children:"ascending"})," can be omitted, as it's default value is ",(0,s.jsx)(n.code,{children:"True"})]})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,s.jsx)("em",{children:"string"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"column name to sort by."}),(0,s.jsxs)("dd",{className:"parameter",children:["ascending : ",(0,s.jsx)("em",{children:"boolean, default 'True'"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"sort ascending vs. descending."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df_sorted - A new DataFrame with the specified column sorted in ascending/descending."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Weight', ascending=True)\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[6,5,1,7,2,4,0,3],"data":[["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."]]}'}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Age', ascending=False)\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[2,0,5,3,4,1,6,7],"data":[["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function g(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>t});a(6540);var s=a(4848);const t=e=>{let{data:n}=e,a=[],t=[],r="",d=[];if(n){const e=JSON.parse(n);a=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r})," ",a.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:t.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:d[n]})," ",e.map(((e,n)=>(0,s.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},n)))]},n)))})]})})}},8453:(e,n,a)=>{a.d(n,{R:()=>d,x:()=>o});var s=a(6540);const t={},r=s.createContext(t);function d(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/db012a9c.40e1ea1c.js b/assets/js/db012a9c.40e1ea1c.js new file mode 100644 index 00000000..11b0a5d4 --- /dev/null +++ b/assets/js/db012a9c.40e1ea1c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[647],{7506:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>g,frontMatter:()=>d,metadata:()=>i,toc:()=>l});var s=a(4848),t=a(8453),r=a(8597);const d={sidebar_position:7},o=void 0,i={id:"building-organizing/df.sort_values()",title:"df.sort_values()",description:"df.sortvalues(by=columnname, ascending=True)",source:"@site/docs/building-organizing/df.sort_values().md",sourceDirName:"building-organizing",slug:"/building-organizing/df.sort_values()",permalink:"/bpd-reference/docs/building-organizing/df.sort_values()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/building-organizing/df.sort_values().md",tags:[],version:"current",sidebarPosition:7,frontMatter:{sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"df.reset_index()",permalink:"/bpd-reference/docs/building-organizing/df.reset_index()"},next:{title:"df.merge()",permalink:"/bpd-reference/docs/building-organizing/df.merge()"}},c={},l=[];function u(e){const n={code:"code",hr:"hr",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"df.sort_values(by=column_name, ascending=True)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsxs)("strong",{children:["Sorts the entire DataFrame in ascending order by the values in the column. ",(0,s.jsx)(n.code,{children:"ascending"})," can be omitted, as it's default value is ",(0,s.jsx)(n.code,{children:"True"})]})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["column_name : ",(0,s.jsx)("em",{children:"string"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"column name to sort by."}),(0,s.jsxs)("dd",{className:"parameter",children:["ascending : ",(0,s.jsx)("em",{children:"boolean, default 'True'"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"sort ascending vs. descending."}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"df_sorted - A new DataFrame with the specified column sorted in ascending/descending."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Weight', ascending=True)\r\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[6,5,1,7,2,4,0,3],"data":[["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."]]}'}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-python",children:"pets = pets.sort_values(by='Age', ascending=False)\r\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[2,0,5,3,4,1,6,7],"data":[["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function g(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8597:(e,n,a)=>{a.d(n,{A:()=>t});a(6540);var s=a(4848);const t=e=>{let{data:n}=e,a=[],t=[],r="",d=[];if(n){const e=JSON.parse(n);a=e.columns||[],t=e.data||[],r=e.indexName||"Index",d=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r})," ",a.map(((e,n)=>(0,s.jsx)("th",{children:e},n)))]})}),(0,s.jsx)("tbody",{children:t.map(((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:d[n]})," ",e.map(((e,n)=>(0,s.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},n)))]},n)))})]})})}},8453:(e,n,a)=>{a.d(n,{R:()=>d,x:()=>o});var s=a(6540);const t={},r=s.createContext(t);function d(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dd35b4d6.fa0aef0b.js b/assets/js/dd35b4d6.c334b9d6.js similarity index 50% rename from assets/js/dd35b4d6.fa0aef0b.js rename to assets/js/dd35b4d6.c334b9d6.js index 4b3cdbf5..939266d5 100644 --- a/assets/js/dd35b4d6.fa0aef0b.js +++ b/assets/js/dd35b4d6.c334b9d6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[683],{5818:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),s=n(8597);const d={sidebar_position:2},i=void 0,c={id:"building-organizing/bpd.read_csv()",title:"bpd.read_csv()",description:"bpd.read_csv(filepath)",source:"@site/docs/building-organizing/bpd.read_csv().md",sourceDirName:"building-organizing",slug:"/building-organizing/bpd.read_csv()",permalink:"/bpd-reference/docs/building-organizing/bpd.read_csv()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/building-organizing/bpd.read_csv().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"bpd.DataFrame()",permalink:"/bpd-reference/docs/building-organizing/bpd.DataFrame()"},next:{title:"df.assign()",permalink:"/bpd-reference/docs/building-organizing/df.assign()"}},o={},l=[];function p(e){const a={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"bpd.read_csv(filepath)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Read a comma-separated values (csv) file into DataFrame."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["filepath : ",(0,t.jsx)("em",{children:"string, path object, file-like object."})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Any valid string path is acceptable. The string could also be a URL."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"df - DataFrame with read csv file."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.pre,{children:(0,t.jsx)(a.code,{className:"language-python",children:"pets = bpd.read_csv('pets.csv')\npets\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function h(e={}){const{wrapper:a}={...(0,r.R)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,a,n)=>{n.d(a,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:a}=e,n=[],r=[],s="",d=[];if(a){const e=JSON.parse(a);n=e.columns||[],r=e.data||[],s=e.indexName||"Index",d=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s})," ",n.map(((e,a)=>(0,t.jsx)("th",{children:e},a)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,a)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:d[a]})," ",e.map(((e,a)=>(0,t.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},a)))]},a)))})]})})}},8453:(e,a,n)=>{n.d(a,{R:()=>d,x:()=>i});var t=n(6540);const r={},s=t.createContext(r);function d(e){const a=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),t.createElement(s.Provider,{value:a},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[683],{5818:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var t=n(4848),r=n(8453),s=n(8597);const d={sidebar_position:2},i=void 0,c={id:"building-organizing/bpd.read_csv()",title:"bpd.read_csv()",description:"bpd.read_csv(filepath)",source:"@site/docs/building-organizing/bpd.read_csv().md",sourceDirName:"building-organizing",slug:"/building-organizing/bpd.read_csv()",permalink:"/bpd-reference/docs/building-organizing/bpd.read_csv()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/building-organizing/bpd.read_csv().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"bpd.DataFrame()",permalink:"/bpd-reference/docs/building-organizing/bpd.DataFrame()"},next:{title:"df.assign()",permalink:"/bpd-reference/docs/building-organizing/df.assign()"}},o={},l=[];function p(e){const a={code:"code",hr:"hr",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{children:"bpd.read_csv(filepath)"}),"\n",(0,t.jsxs)("div",{className:"base",children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:"Read a comma-separated values (csv) file into DataFrame."})}),(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{className:"term",children:"Input:"}),(0,t.jsxs)("dd",{className:"parameter",children:["filepath : ",(0,t.jsx)("em",{children:"string, path object, file-like object."})]}),(0,t.jsx)("dd",{className:"parameter-description",children:"Any valid string path is acceptable. The string could also be a URL."}),(0,t.jsx)("dt",{className:"term",children:"Returns:"}),(0,t.jsx)("dd",{children:"df - DataFrame with read csv file."}),(0,t.jsx)("dt",{className:"term",children:"Return Type:"}),(0,t.jsx)("dd",{children:"DataFrame"})]})]}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.pre,{children:(0,t.jsx)(a.code,{className:"language-python",children:"pets = bpd.read_csv('pets.csv')\r\npets\n"})}),"\n",(0,t.jsx)(s.A,{data:'{"columns":["ID","Species","Color","Weight","Age","Is_Cat","Owner_Comment"],"index":[0,1,2,3,4,5,6,7],"data":[["dog_001","dog","black",40.0,5.0,false," There are no bad dogs, only bad owners."],["cat_001","cat","golden",1.5,0.2,true,"My best birthday present ever!!!"],["cat_002","cat","black",15.0,9.0,true,"****All you need is love and a cat.****"],["dog_002","dog","white",80.0,2.0,false,"Love is a wet nose and a wagging tail."],["dog_003","dog","black",25.0,0.5,false,"Be the person your dog thinks you are."],["ham_001","hamster","black",1.0,3.0,false,"No, thank you!"],["ham_002","hamster","golden",0.25,0.2,false,"No, thank you!"],["cat_003","cat","black",10.0,0.0,true,"No, thank you!"]]}'})]})}function h(e={}){const{wrapper:a}={...(0,r.R)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(p,{...e})}):p(e)}},8597:(e,a,n)=>{n.d(a,{A:()=>r});n(6540);var t=n(4848);const r=e=>{let{data:a}=e,n=[],r=[],s="",d=[];if(a){const e=JSON.parse(a);n=e.columns||[],r=e.data||[],s=e.indexName||"Index",d=e.index||[]}return(0,t.jsx)("div",{className:"dataframe-container",children:(0,t.jsxs)("table",{className:"dataframe-table",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:s})," ",n.map(((e,a)=>(0,t.jsx)("th",{children:e},a)))]})}),(0,t.jsx)("tbody",{children:r.map(((e,a)=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"index-value",children:d[a]})," ",e.map(((e,a)=>(0,t.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},a)))]},a)))})]})})}},8453:(e,a,n)=>{n.d(a,{R:()=>d,x:()=>i});var t=n(6540);const r={},s=t.createContext(r);function d(e){const a=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),t.createElement(s.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e7894358.ee77ae1b.js b/assets/js/e7894358.ee77ae1b.js new file mode 100644 index 00000000..32c4fa38 --- /dev/null +++ b/assets/js/e7894358.ee77ae1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[3746],{3615:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var s=n(4848),a=n(8453),r=n(8597);const o={sidebar_position:2},c=void 0,i={id:"data format conversion/list()",title:"list()",description:"list(array)",source:"@site/docs/data format conversion/list().md",sourceDirName:"data format conversion",slug:"/data format conversion/list()",permalink:"/bpd-reference/docs/data format conversion/list()",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/data format conversion/list().md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"data format",permalink:"/bpd-reference/docs/category/data-format"},next:{title:"np.array",permalink:"/bpd-reference/docs/data format conversion/np.array"}},d={},l=[];function m(e){const t={code:"code",hr:"hr",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("code",{children:"list(array)"}),"\n",(0,s.jsxs)("div",{className:"base",children:[(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:"Casts an array into a list."})}),(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{className:"term",children:"Input:"}),(0,s.jsxs)("dd",{className:"parameter",children:["array : ",(0,s.jsx)("em",{children:"str"})]}),(0,s.jsx)("dd",{className:"parameter-description",children:"Array that you want to cast into a list"}),(0,s.jsx)("dt",{className:"term",children:"Returns:"}),(0,s.jsx)("dd",{children:"new_list - A new list that contains every element from the array, as a list."}),(0,s.jsx)("dt",{className:"term",children:"Return Type:"}),(0,s.jsx)("dd",{children:"List"})]})]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-python",children:"pets = pets.assign(ID=['dog_001', 'cat_001', 'cat_002', 'dog_002', 'dog_003', 'ham_001', 'ham_002'],\r\n New_column_1=['this', 'is', 'a', 'new', 'column', 'I', 'assigned'], \r\n New_column_2=['this', 'is', 'another', 'new', 'column', 'I', 'assigned'])\r\npets\n"})}),"\n",(0,s.jsx)(r.A,{data:'{"columns":["Species","Color","Weight","Age","ID","New_column_1","New_column_2"],"index":[0,1,2,3,4,5,6],"data":[["dog","black",40.0,5.0,"dog_001","this","this"],["cat","golden",15.0,8.0,"cat_001","is","is"],["cat","black",20.0,9.0,"cat_002","a","another"],["dog","white",80.0,2.0,"dog_002","new","new"],["dog","black",25.0,0.5,"dog_003","column","column"],["hamster","black",1.0,3.0,"ham_001","I","I"],["hamster","golden",0.25,0.2,"ham_002","assigned","assigned"]]}'})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},8597:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var s=n(4848);const a=e=>{let{data:t}=e,n=[],a=[],r="",o=[];if(t){const e=JSON.parse(t);n=e.columns||[],a=e.data||[],r=e.indexName||"Index",o=e.index||[]}return(0,s.jsx)("div",{className:"dataframe-container",children:(0,s.jsxs)("table",{className:"dataframe-table",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r})," ",n.map(((e,t)=>(0,s.jsx)("th",{children:e},t)))]})}),(0,s.jsx)("tbody",{children:a.map(((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"index-value",children:o[t]})," ",e.map(((e,t)=>(0,s.jsx)("td",{children:"boolean"==typeof e?e.toString().charAt(0).toUpperCase()+e.toString().slice(1):e},t)))]},t)))})]})})}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>c});var s=n(6540);const a={},r=s.createContext(a);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f7ff7449.0f30bfff.js b/assets/js/f7ff7449.0f30bfff.js new file mode 100644 index 00000000..4cb148fe --- /dev/null +++ b/assets/js/f7ff7449.0f30bfff.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbpd_reference=self.webpackChunkbpd_reference||[]).push([[7450],{1810:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>o,contentTitle:()=>c,default:()=>m,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var t=n(4848),r=n(8453),i=(n(8597),n(8205));const a={sidebar_position:10},c=void 0,d={id:"if-statements/in \u2044 not in",title:"in \u2044 not in",description:"if \\ in \\:",source:"@site/docs/if-statements/in \u2044 not in.md",sourceDirName:"if-statements",slug:"/if-statements/in \u2044 not in",permalink:"/bpd-reference/docs/if-statements/in \u2044 not in",draft:!1,unlisted:!1,editUrl:"https://github.com/dsc-courses/bpd-reference/tree/main/docs/if-statements/in \u2044 not in.md",tags:[],version:"current",sidebarPosition:10,frontMatter:{sidebar_position:10},sidebar:"tutorialSidebar",previous:{title:"if-elif-else",permalink:"/bpd-reference/docs/if-statements/if-elif-else"},next:{title:"Logical Operators",permalink:"/bpd-reference/docs/if-statements/Logical Operators"}},o={},l=[];function p(e){const s={code:"code",hr:"hr",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.p,{children:[(0,t.jsxs)("code",{children:["if