<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Pandas_examples</id>
	<title>Pandas examples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Pandas_examples"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Pandas_examples&amp;action=history"/>
	<updated>2026-04-21T00:37:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Pandas_examples&amp;diff=4506&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;# Pandas Example of Reading Excel Spreadsheets  ## Example of reading existing excel ``` #!/usr/bin/env python3 import pandas as pd import ast  from openpyxl import load_workb...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Pandas_examples&amp;diff=4506&amp;oldid=prev"/>
		<updated>2023-08-29T13:28:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;# Pandas Example of Reading Excel Spreadsheets  ## Example of reading existing excel ``` #!/usr/bin/env python3 import pandas as pd import ast  from openpyxl import load_workb...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Pandas Example of Reading Excel Spreadsheets&lt;br /&gt;
&lt;br /&gt;
## Example of reading existing excel&lt;br /&gt;
```&lt;br /&gt;
#!/usr/bin/env python3&lt;br /&gt;
import pandas as pd&lt;br /&gt;
import ast&lt;br /&gt;
&lt;br /&gt;
from openpyxl import load_workbook&lt;br /&gt;
&lt;br /&gt;
def get_repo_lines_set(file_name):&lt;br /&gt;
  lines = []&lt;br /&gt;
  lines_set = []&lt;br /&gt;
  rt = []&lt;br /&gt;
  dfs = {}&lt;br /&gt;
  dfs = pd.read_excel(file_name, sheet_name=None)&lt;br /&gt;
  for df_name in dfs.keys():&lt;br /&gt;
    df = dfs[df_name]&lt;br /&gt;
    if 'git_repo_lines' in df.columns and 'delete' in df.columns:&lt;br /&gt;
      for idx, row in df.iterrows():&lt;br /&gt;
         if row['delete'] == True:&lt;br /&gt;
           # print(row['delete'])&lt;br /&gt;
           lines.extend(ast.literal_eval((row['git_repo_lines'])))&lt;br /&gt;
  lines_set = list(set(lines))&lt;br /&gt;
  for line in lines_set:&lt;br /&gt;
    parts = line.split(&amp;quot;:&amp;quot;)&lt;br /&gt;
    rt.append(f&amp;quot;{parts[0]}:{parts[1]}&amp;quot;)&lt;br /&gt;
  return rt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def main():&lt;br /&gt;
&lt;br /&gt;
  # global dfs&lt;br /&gt;
  global excel_file&lt;br /&gt;
  hosts = ['one', 'two']&lt;br /&gt;
  lines_set = []&lt;br /&gt;
  for i in hosts:&lt;br /&gt;
    excel_file = f&amp;quot;{i}.foo.xlsx&amp;quot;&lt;br /&gt;
    lines_set.extend(get_repo_lines_set(excel_file))&lt;br /&gt;
  lines_set = list(set(lines_set))&lt;br /&gt;
  lines_set.sort()&lt;br /&gt;
  for line in lines_set:&lt;br /&gt;
    print(line)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
  main()&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>