코딩/Python
-
Python/python-pptx 사용자 가이드 - 7. AutoShapes코딩/Python 2024. 6. 6. 10:11
https://python-pptx.readthedocs.io/en/latest/user/autoshapes.htmlWorking with AutoShapesAuto shapes are regular shape shapes. Squares, circles, triangles, stars, that sort of thing. There are 182 different auto shapes to choose from. 120 of these have adjustment “handles” you can use to change the shape, sometimes dramatically.Many shape types share a common set of properties. We’ll introduce ma..
-
Python/python-pptx 사용자 가이드 - 6. Shapes코딩/Python 2024. 6. 6. 10:08
https://python-pptx.readthedocs.io/en/latest/user/understanding-shapes.htmlUnderstanding ShapesPretty much anything on a slide is a shape; the only thing I can think of that can appear on a slide that’s not a shape is a slide background. There are between six and ten different types of shape, depending how you count. I’ll explain some of the general shape concepts you’ll need to make sense of ho..
-
Python/python-pptx 사용자 가이드 - 5. 슬라이드코딩/Python 2024. 6. 5. 17:03
https://python-pptx.readthedocs.io/en/latest/user/slides.htmlWorking with SlidesEvery slide in a presentation is based on a slide layout. Not surprising then that you have to specify which slide layout to use when you create a new slide. Let’s take a minute to understand a few things about slide layouts that we’ll need so the slide we add looks the way we want it to.프레젠테이션의 모든 슬라이드는 슬라이드 레이아웃을 기..
-
Python/python-pptx 사용자 가이드 - 4. 프리젠테이션코딩/Python 2024. 6. 5. 17:01
https://python-pptx.readthedocs.io/en/latest/user/presentations.htmlWorking with Presentationspython-pptx allows you to create new presentations as well as make changes to existing ones. Actually, it only lets you make changes to existing presentations; it’s just that if you start with a presentation that doesn’t have any slides, it feels at first like you’re creating one from scratch.However, a..
-
Python/python-pptx 사용자 가이드 - 3. 시작코딩/Python 2024. 6. 5. 16:57
https://python-pptx.readthedocs.io/en/latest/user/quickstart.htmlGetting StartedA quick way to get started is by trying out some of the examples below to get a feel for how to use python-pptx.The API documentation can help you with the fine details of calling signatures and behaviors.시작하는 빠른 방법은 아래 예제 중 일부를 시도하여 python-pptx 사용 방법에 대한 느낌을 얻는 것이다.API 문서는 서명 및 동작 호출에 대한 세부 정보를 제공하는 데 도움이 될 수 있다.Hel..
-
Python/python-pptx 사용자 가이드 - 2. 설치코딩/Python 2024. 6. 5. 16:53
https://python-pptx.readthedocs.io/en/latest/user/install.htmlInstallingpython-pptx is hosted on PyPI, so installing with pip is simple:python-pptx는 PyPI에서 호스팅되므로 pip를 사용하여 설치하는 것은 간단하다.pip install python-pptxpython-pptx depends on the lxml package and Pillow, the modern version of the Python Imaging Library (PIL). The charting features depend on XlsxWriter. Both pip and easy_install will take c..
-
Python/python-pptx 사용자 가이드 - 1. 소개코딩/Python 2024. 6. 5. 16:34
이 문서는 아래 링크의 python-pptx의 사용자가이드를 번역한 것이다. 번역 오류나 번역문구의 뜻이 애매할 때 참고할 수 있도록 원문은 회색으로 추가한다.https://python-pptx.readthedocs.io/en/latest/user/intro.htmlIntroductionpython-pptx is a Python library for creating and updating PowerPoint (.pptx) files.A typical use would be generating a customized PowerPoint presentation from database content, downloadble by clicking a link in a web application. Several..
-
Python/Pandas DataFrame에 대한 팁코딩/Python 2024. 5. 22. 12:50
Pandas DataFrame의 행을 삭제할 경우의 문제Dataframe의 행을 삭제한 후에도 인덱스는 변경되지 않고 그대로기 때문에 for문으로 루프를 하면 에러가 발생할 수 있다.그래서 행을 삭제한 후에는 reset_index()를 사용해서 인덱스를 새로 만들어야 한다.reset_index의 파라미터 중 drop은 기존 인덱스를 삭제하고(False이면 기존 인덱스를 새로운 컬럼으로 삽입), inplace는 수정된 dataframe을 반환한다.df.drop(1, axis='index', inplace=True)df.reset_index(drop=True, inplace=True)Python/Pandas DataFrame값 변경Pandas DataFrame을 순환하기 위해 iterrows()를 사용할 경..