인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
문서 및 사무 · SKILL.md

skill-014

skill-014

Extract and manage data embedded in PowerPoint presentations. This skill facilitates the retrieval of charts, tables, and other data elements from .pptx files.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: skill-014 description: "Extract and manage data embedded in PowerPoint presentations. This skill facilitates the retrieval of charts, tables, and other data elements from .pptx files." license: Proprietary. LICENSE.txt has complete terms

PPTX Data Extraction

Overview

Data embedded in PowerPoint presentations can provide valuable insights and facilitate analysis. This skill covers methods for extracting tables, charts, and other data elements from .pptx files.

Extracting Tables

To extract tables from a PowerPoint slide, use the following method:

from pptx import Presentation

# Load the presentation
prs = Presentation('path-to-file.pptx')

# Extract data from tables
for slide in prs.slides:
    for shape in slide.shapes:
        if shape.has_table:
            table = shape.table
            for row in range(len(table.rows)):
                for col in range(len(table.columns)):
                    cell = table.cell(row, col)
                    print(cell.text)

Extracting Charts

Charts can also be extracted for further data analysis. The following example demonstrates how to get chart data:

for slide in prs.slides:
    for shape in slide.shapes:
        if shape.has_chart:
            chart = shape.chart
            data = chart.plots[0].chart_data
            print(data)

Conclusion

The ability to extract data from PowerPoint presentations can enhance your analytical capabilities and enable better decision-making based on visual data representations.

저장한 Skills