mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-09-06 10:54:17 +00:00
Version 0.1
Added sidebar, Dashboard, Line Graph
This commit is contained in:
23
.venv/Lib/site-packages/openpyxl/reader/strings.py
Normal file
23
.venv/Lib/site-packages/openpyxl/reader/strings.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2010-2022 openpyxl
|
||||
|
||||
from openpyxl.cell.text import Text
|
||||
|
||||
from openpyxl.xml.functions import iterparse
|
||||
from openpyxl.xml.constants import SHEET_MAIN_NS
|
||||
|
||||
|
||||
def read_string_table(xml_source):
|
||||
"""Read in all shared strings in the table"""
|
||||
|
||||
strings = []
|
||||
STRING_TAG = '{%s}si' % SHEET_MAIN_NS
|
||||
|
||||
for _, node in iterparse(xml_source):
|
||||
if node.tag == STRING_TAG:
|
||||
text = Text.from_tree(node).content
|
||||
text = text.replace('x005F_', '')
|
||||
node.clear()
|
||||
|
||||
strings.append(text)
|
||||
|
||||
return strings
|
Reference in New Issue
Block a user