PageSourceSearch

https://haruiz.github.io/assets/js/1fbb35fd.847ed407.js

js haruiz.github.io collected 2026-10-03 09:18:56 UTC 6,443 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkblog||=[]).push([[9944],{41016(e,t,a){a.r(t),a.d(t,{default:()=>u,metadata:()=>n});var n=a(49164),r=a(74848),o=a(28453),s=a(93);const i={authorsImageUrls:[void 0]};function c(e){return(0,r.jsx)(s.A,{audioSrc:a(23291).A})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(c,{...e})}):c()}a.d(t,["assets",0,i,"contentTitle",0,void 0,"frontMatter",0,{title:"Python for Data Science Series - Getting started",slug:"python-for-data-science-part-getting-started",image:"https://haruiz.github.io/img/2022-08-27-python-for-data-science-getting-started-og-image.jpg",description:"Thinking about jumping into a data science role, but you don't know why you should learn how to program and which programming language to choose? In this post, I will show you how to use python and discuss why this programming language is considered one of the top used in data science.",authors:["haruiz"],tags:["python","data-science"]},"toc",0,[]])},93(e,t,a){a.d(t,{A:()=>v});var n=a(96540);const r="audioPlayer_bD77",o="controlButton_18Mu",s="playPauseButton_BOck",i="timeDisplay__nfh",c="progressBar_GLd5",u="volumeControl_jpxX",l="volumeSlider_ecko",d="speedControl_V7oK",h="speedSelect_tSpO",g="loadingContainer_ejfH",p="loadingText_ca0W",m="spinner_NOhs";var y=a(4309),x=a(74848);const f=e=>{if(isNaN(e)||e===1/0)return"00:00";const t=Math.floor(e/60),a=Math.floor(e%60);return`${String(t).padStart(2,"0")}:${String(a).padStart(2,"0")}`},v=({audioSrc:e,title:t="Audio Version"})=>
1{const[a,v]=(0,n.useState)(!1),[b,j]=(0,n.useState)(0),[w,S]=(0,n.useState)(0),[k,N]=(0,n.useState)(1),[P,A]=(0,n.useState)(!1),[T,_]=(0,n.useState)(1),[C,E]=(0,n.useState)(!1),F=(0,n.useRef)(null),I=(0,n.useRef)(null),L=(0,n.useRef)(null);(0,n.useEffect)(()=>{const e=F.current;if(!e)return;const t=()=>{j(e.duration),S(e.currentTime),E(!0)},a=()=>S(e.currentTime),n=()=>{v(!1),S(e.duration),cancelAnimationFrame(L.current)};return v(!1),S(0),j(0),E(!1),L.current&&cancelAnimationFrame(L.current),e.addEventListener("loadedmetadata",t),e.addEventListener("timeupdate",a),e.addEventListener("ended",n),()=>{e.removeEventListener("loadedmetadata",t),e.removeEventListener("timeupdate",a),e.removeEventListener("ended",n),L.current&&cancelAnimationFrame(L.current)}},[e]);const z=(0,n.useCallback)(()=>{if(F.current&&I.current){const e=F.current,t=I.current,a=e.currentTime;S(a),t.value=a,t.style.setProperty("--seek-before-width",a/b*100+"%"),L.current=requestAnimationFrame(z)}},[b]);(0,n.useEffect)(()=>(a?(F.current.play(),L.current=requestAnimationFrame(z)):(F.current.pause(),cancelAnimationFrame(L.current)),()=>cancelAnimationFrame(L.current)),[a,z]);return(0,x.jsxs)("div",{className:r,children:[(0,x.jsx)("audio",{ref:F,src:e,preload:"metadata"}),C?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("button",{onClick:()=>{C&&v(e=>!e)},className:`${o} ${s}`,"aria-label":a?"Pause":"Play",children:a?(0,x.jsx)(y.kwt,{}):(0,x.jsx)(y.gSK,{})}),(0,x.jsx)("span",{className:i,children:f(w)}),(0,x.jsx)("input",{ref:I,type:"range",className:c,value:w,max:b||0,onChange:e=>{if(!C)return;const t=Number(e.target.value);F.current.currentTime=t,S(t),I.current.style.setProperty("--seek-before-width",t/b*100+"%")},"aria-label":"Seek progress",style:{"--seek-before-width":w/b*100+"%"}}),(0,x.jsx)("span",{className:i,children:f(b)}),(0,x.jsxs)("div",{className:u,children:[(0,x.jsx)("button",{onClick:()=>{const e=F.current;if(P){const t=k>0?k:.5;N(t),e.volume=t,A(!1)}else e.volume=0,A(!0),N(0)},className:o,"aria-label":P?"Unmute":"Mute",children:P?(0,x.jsx)(y.FZ2,{}):(0,x.jsx)(y.pPd,{})}),(0,x.jsx)("input",{type:"range",min:"0",max:"1",step:"0.01",value:P?0:k,onChange:e=>{const t=Number(e.target.value);N(t),F.current.volume=t,A(0===t)},className:l,style:{"--volume-before-width":(P?0:100*k)+"%"}})]}),(0,x.jsx)("div",{className:d,children:(0,x.jsxs)("select",{value:T,onChange:e=>{const t=Number(e.target.value);_(t),F.current.playbackRate=t},className:h,"aria-label":"Playback speed",children:[(0,x.jsx)("option",{value:"0.5",children:"0.5x"}),(0,x.jsx)("option",{value:"0.75",children:"0.75x"}),(0,x.jsx)("option",{value:"1",children:"1x"}),(0,x.jsx)("option",{value:"1.25",children:"1.25x"}),(0,x.jsx)("option",{value:"1.5",children:"1.5x"}),(0,x.jsx)("option",{value:"2",children:"2x"})]})})]}):(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)("span",{className:p,children:"Loading audio..."}),(0,x.jsx)("div",{className:m})]})]})}},23291(e,t,a){const n=a.p+"assets/medias/audio-f3e20fa910ae025e4b210db14a9d0e67.wav";a.d(t,["A",0,n])},49164(e){e.exports=JSON.parse('{"permalink":"/blog/python-for-data-science-part-getting-started","source":"@site/blog/2022-08-27-python-for-data-science-getting-started/index.mdx","title":"Python for Data Science Series - Getting started","description":"Thinking about jumping into a data science role, but you don\'t know why you should learn how to program and which programming language to choose? In this post, I will show you how to use python and discuss why this programming language is considered one of the top used in data science.","date":"2022-08-27T00:00:00.000Z","tags":[{"inline":true,"label":"python","permalink":"/blog/tags/python"},{"inline":true,"label":"data-science","permalink":"/blog/tags/data-science"}],"readingTime":6.76,"hasTruncateMarker":true,"authors":[{"name":"Henry Ruiz","title":"Blog Author","url":"https://github.com/haruiz","
1imageURL":"https://github.com/haruiz.png","key":"haruiz","page":null}],"frontMatter":{"title":"Python for Data Science Series - Getting started","slug":"python-for-data-science-part-getting-started","image":"https://haruiz.github.io/img/2022-08-27-python-for-data-science-getting-started-og-image.jpg","description":"Thinking about jumping into a data science role, but you don\'t know why you should learn how to program and which programming language to choose? In this post, I will show you how to use python and discuss why this programming language is considered one of the top used in data science.","authors":["haruiz"],"tags":["python","data-science"]},"unlisted":false,"prevItem":{"title":"Python for Data Science Series - Exploring the syntax","permalink":"/blog/python-for-data-science-exploring-the-syntax"},"nextItem":{"title":"Python for Data Science Series - Python environments with pyenv and poetry","permalink":"/blog/python-environments-with-pyenv-and-poetry"}}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.