<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soderholm Conny on Medium]]></title>
        <description><![CDATA[Stories by Soderholm Conny on Medium]]></description>
        <link>https://medium.com/@soderholm.conny?source=rss-da89063a81c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vWl12YHZpmEOkmEVz0Hd1w.jpeg</url>
            <title>Stories by Soderholm Conny on Medium</title>
            <link>https://medium.com/@soderholm.conny?source=rss-da89063a81c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:54:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soderholm.conny/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Impress Your Boss: a FAST Way to add Quotes and Commas in Excel]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/impress-your-boss-a-fast-way-to-add-quotes-and-commas-in-excel-837579a18e7d?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/600/1*LxO_3c4e0LhPyEADDTTVaA.png" width="600"></a></p><p class="medium-feed-snippet">The call from your boss</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/impress-your-boss-a-fast-way-to-add-quotes-and-commas-in-excel-837579a18e7d?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/impress-your-boss-a-fast-way-to-add-quotes-and-commas-in-excel-837579a18e7d?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/837579a18e7d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[excel-formula]]></category>
            <category><![CDATA[excel-for-data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Thu, 31 Aug 2023 03:51:02 GMT</pubDate>
            <atom:updated>2023-08-31T03:51:02.275Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Data Preparation 10x Faster with Regular Expressions]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/data-preparation-10x-faster-with-regular-expressions-78b46a02dd60?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/600/1*GYfP-ftjxnyxygN2o75RSA.png" width="600"></a></p><p class="medium-feed-snippet">Do you frequently work with data that is not formatted in JSON, XML or other Python data structures?</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/data-preparation-10x-faster-with-regular-expressions-78b46a02dd60?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/data-preparation-10x-faster-with-regular-expressions-78b46a02dd60?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/78b46a02dd60</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <category><![CDATA[data-preparation]]></category>
            <category><![CDATA[regular-expressions]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 02:17:11 GMT</pubDate>
            <atom:updated>2023-08-28T02:17:11.830Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Solving Your Python Coding Questions and Problems!]]></title>
            <link>https://medium.com/@soderholm.conny/solving-your-python-coding-questions-and-problems-1959f00db12d?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1959f00db12d</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Sat, 26 Aug 2023 03:20:03 GMT</pubDate>
            <atom:updated>2023-08-26T03:20:03.128Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi! I need <strong>YOUR</strong> help.</p><p>Do you have any Python related questions or problems?</p><figure><img alt="Solving your Python Coding Questions" src="https://cdn-images-1.medium.com/max/1024/1*RafxGH4Z4UsZYKZHb5AAog.png" /></figure><p>I WILL CODE A SOLUTION TO YOUR CODING QUESTIONS!</p><p>What I need:</p><ul><li>A detailed description of your question/problem</li><li>Attachment of (Anonymized) files or links to files so that I can download them and start working on them</li><li>Can I mention your name or do you want to stay anonymous?</li></ul><p>Give me a comment or:</p><p>MAIL TO: <strong>codingquestions@connysoderholm.com</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1959f00db12d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Looking for a way to return more than one value from a Python function?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/looking-for-a-way-to-return-more-than-one-value-from-a-python-function-510b691089df?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/716/1*qr0hxOjiWryaJV2v8BZv-A.png" width="716"></a></p><p class="medium-feed-snippet">To return more than one value from a function in Python is impossible. What do you mean? What are you saying?</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/looking-for-a-way-to-return-more-than-one-value-from-a-python-function-510b691089df?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/looking-for-a-way-to-return-more-than-one-value-from-a-python-function-510b691089df?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/510b691089df</guid>
            <category><![CDATA[tuples-in-python]]></category>
            <category><![CDATA[unpacking]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Fri, 25 Aug 2023 04:21:03 GMT</pubDate>
            <atom:updated>2023-08-25T04:21:03.718Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Format Google Sheets with Python, gspread and gspread-formatting]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/format-google-sheets-with-python-gspread-and-gspread-formatting-9037398f04d1?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/600/1*LJD1-d2Bbd6iAbsyLZeeuQ.png" width="600"></a></p><p class="medium-feed-snippet">Do you need to format your Google Sheet? Don&#x2019;t want to clickity click all the formatting manually? Then you, my friend, are in the right&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/format-google-sheets-with-python-gspread-and-gspread-formatting-9037398f04d1?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/format-google-sheets-with-python-gspread-and-gspread-formatting-9037398f04d1?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9037398f04d1</guid>
            <category><![CDATA[gspread]]></category>
            <category><![CDATA[google-sheets-api]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-sheets]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Wed, 23 Aug 2023 04:33:07 GMT</pubDate>
            <atom:updated>2023-08-23T04:33:07.853Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Authentication problems with gspread’s OAuth]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/authentication-problems-with-gspreads-oauth-c97c4d4b79fd?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/600/1*quut-f1HO6gbsVKKgALbIw.png" width="600"></a></p><p class="medium-feed-snippet">When using OAuth Client ID to authenticate your user to gspread you may sometimes encounter a RefreshError.</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/authentication-problems-with-gspreads-oauth-c97c4d4b79fd?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/authentication-problems-with-gspreads-oauth-c97c4d4b79fd?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c97c4d4b79fd</guid>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[google-sheet-api]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gspread]]></category>
            <category><![CDATA[google-sheets-api]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Fri, 18 Aug 2023 03:25:00 GMT</pubDate>
            <atom:updated>2023-08-18T03:25:00.121Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Reading Data from Google Spreadsheets with gspread]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/reading-data-from-google-spreadsheets-with-gspread-9cf9d78ba953?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/600/1*6gcYxXKCFksD8WceadIAgA.png" width="600"></a></p><p class="medium-feed-snippet">Do you fancy opening a Google Sheet with Python? Enjoy reading the values from all the cells in your worksheet into lists and dictionaries&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/reading-data-from-google-spreadsheets-with-gspread-9cf9d78ba953?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/reading-data-from-google-spreadsheets-with-gspread-9cf9d78ba953?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cf9d78ba953</guid>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 04:20:58 GMT</pubDate>
            <atom:updated>2023-08-17T04:20:58.099Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Writing CSV data to Google Sheets with gspread]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/writing-csv-data-to-google-sheets-with-gspread-b0084c61ce04?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/600/1*GMURiyJqLJu0LqhEuwAXqg.png" width="600"></a></p><p class="medium-feed-snippet">Can you write CSV data to a Google Spreadsheet with Python? Since you are reading this article, I guess you want an answer to that&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/writing-csv-data-to-google-sheets-with-gspread-b0084c61ce04?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/writing-csv-data-to-google-sheets-with-gspread-b0084c61ce04?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0084c61ce04</guid>
            <category><![CDATA[csv]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-sheets-api]]></category>
            <category><![CDATA[gspread]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 04:33:04 GMT</pubDate>
            <atom:updated>2023-08-16T03:54:13.489Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Fake(r) till you make it — Generate Fake Data with Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@soderholm.conny/fake-r-till-you-make-it-generate-fake-data-with-python-dc78eb3c2071?source=rss-da89063a81c5------2"><img src="https://cdn-images-1.medium.com/max/1200/1*ZtWPHmjSr_yceEluroPWRg.png" width="1200"></a></p><p class="medium-feed-snippet">Sometimes, I need some data for my projects. It can be emails, social security numbers, names, or company registration numbers. Coming up&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@soderholm.conny/fake-r-till-you-make-it-generate-fake-data-with-python-dc78eb3c2071?source=rss-da89063a81c5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@soderholm.conny/fake-r-till-you-make-it-generate-fake-data-with-python-dc78eb3c2071?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc78eb3c2071</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[fakers]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Sat, 12 Aug 2023 05:02:23 GMT</pubDate>
            <atom:updated>2023-08-12T05:44:03.971Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Save an Excel sheet as pdf with Python and win32]]></title>
            <link>https://medium.com/@soderholm.conny/save-an-excel-sheet-as-pdf-with-python-and-win32-c65aeeb54c29?source=rss-da89063a81c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c65aeeb54c29</guid>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pywin32]]></category>
            <dc:creator><![CDATA[Soderholm Conny]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 03:04:12 GMT</pubDate>
            <atom:updated>2023-08-09T03:04:12.850Z</atom:updated>
            <content:encoded><![CDATA[<p>Saving a finished report or table in Excel is easy. You choose “SaveAs” and save the sheet as Pdf. Doing this automatically with Python is trickier, though. In this post, we will inspect on how to do this with the win32 library. The full code is available at the bottom of the post. Note that you need Excel installed in order to run this script successfully.</p><p>Source code is available on <a href="https://github.com/consod/articles/blob/main/Pywin32/save_excel_as_pdf.py">GitHub</a>.</p><figure><img alt="A woman working with spreadsheets on her computer" src="https://cdn-images-1.medium.com/max/767/0*Sk-suMFhzBat058S.png" /></figure><h3>Installing dependencies</h3><p>Install the win32 library first with: pip install pypiwin32.</p><p>This will install the Win32 Api library, which, according to <a href="https://pypi.org/project/pypiwin32/219/">PyPi </a>contains:</p><p><em>Python extensions for Microsoft Windows Provides access to much of the Win32 API, the ability to create and use COM objects, and the Pythonwin environment.</em></p><h3>File paths</h3><p>To get the file paths we use pathlib. Pathlib was introduced in Python 3.4 so it is quite new (Using Python 3.8 during the writing of this article). We specify the name of the Excel workbook we want to make a pdf of, and also the output pdf’s name.</p><p>excel_file = &quot;pdf_me.xlsx&quot;<br>pdf_file = &quot;pdf_me.pdf&quot;</p><p>We then create paths from our current working directory (cwd) with Pathlibs cwd() method.</p><p>excel_path = str(pathlib.Path.cwd() / excel_file)<br>pdf_path = str(pathlib.Path.cwd() / pdf_file)</p><h3>Firing up Excel</h3><p>Excel is next up. We start the Excel application and hide it.</p><p>excel = client.DispatchEx(&quot;Excel.Application&quot;)<br>excel.Visible = 0</p><p>We then open our workbook wb = excel.Workbooks.Open(excel_path) and load our first sheet with ws = wb.Worksheets[1]</p><p>Now it is time to use the SaveAs to save our sheet as a pdf. wb.SaveAs(pdf_path, FileFormat=57)Fileformat 57 is the pdf file format.</p><p>We then close our workbook and quit our Excel application. Our pdf is now saved in our working directory.</p><h3>The code</h3><pre>from win32com import client<br>import win32api<br>import pathlib<br>### pip install pypiwin32 if module not found<br><br>excel_file = &quot;pdf_me.xlsx&quot;<br>pdf_file = &quot;pdf_me.pdf&quot;<br>excel_path = str(pathlib.Path.cwd() / excel_file)<br>pdf_path = str(pathlib.Path.cwd() / pdf_file)<br><br>excel = client.DispatchEx(&quot;Excel.Application&quot;)<br>excel.Visible = 0<br><br>wb = excel.Workbooks.Open(excel_path)<br>ws = wb.Worksheets[1]<br><br>try:<br>    wb.SaveAs(pdf_path, FileFormat=57)<br>except Exception as e:<br>    print(&quot;Failed to convert&quot;)<br>    print(str(e))<br>finally:<br>    wb.Close()<br>    excel.Quit()</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c65aeeb54c29" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>