<?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 Sanket Joshi on Medium]]></title>
        <description><![CDATA[Stories by Sanket Joshi on Medium]]></description>
        <link>https://medium.com/@plotmechanic?source=rss-cb763c91e7fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z7X9QpQh-ryegFcs3nFsPw.jpeg</url>
            <title>Stories by Sanket Joshi on Medium</title>
            <link>https://medium.com/@plotmechanic?source=rss-cb763c91e7fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:02:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@plotmechanic/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[Putting string inside string using Python]]></title>
            <link>https://medium.com/@plotmechanic/putting-string-inside-string-using-python-54e513a7d447?source=rss-cb763c91e7fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/54e513a7d447</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[movingfromr]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Sanket Joshi]]></dc:creator>
            <pubDate>Tue, 04 Dec 2018 19:15:34 GMT</pubDate>
            <atom:updated>2018-12-04T19:15:34.090Z</atom:updated>
            <content:encoded><![CDATA[<p>There are 5 ways of putting a string inside a string using Python.</p><ol><li><strong>Old School : Using formatting characters</strong></li></ol><pre>x = 10<br>print(&quot;4 + 6 = %d&quot; %x)</pre><pre>x = &#39;Sanket&#39;<br>print(&quot;My name is %s&quot; %x)</pre><p>2. <strong>f-string formatting</strong></p><pre>x = 10<br>print(f&quot;4 + 6 = {x}&quot;)</pre><p>3. <strong>New Style : .format</strong></p><pre>x = &quot;Sanket&quot;<br>y = &quot;My name is {}&quot;<br>y.format(x)</pre><p>4. <strong>Adding strings : Concatentation</strong></p><pre>x = &quot;Sanket&quot;<br>y = &quot;My name is &quot;<br>print(y+x)</pre><p>5. <strong>Template strings standard library in Python:</strong></p><p>More on this in another post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54e513a7d447" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Python from Zed Shaw]]></title>
            <link>https://medium.com/@plotmechanic/learning-python-from-zed-shaw-9654c79b1bdf?source=rss-cb763c91e7fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9654c79b1bdf</guid>
            <dc:creator><![CDATA[Sanket Joshi]]></dc:creator>
            <pubDate>Sat, 01 Dec 2018 19:22:25 GMT</pubDate>
            <atom:updated>2018-12-04T19:51:29.531Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Commenting in python:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*mgbvweD2pGQvLNsLiF2wGQ.jpeg" /></figure><p><strong><em>ex2.py</em></strong></p><pre># A Comment, this is so you can read your program later.<br>#Anything after the # is ignored by Python</pre><pre>print(“I could have code like this.”) # and the comment after is ignored</pre><pre># You can also use a comment to “disable” or comment out code:<br># print(“This won’t run.”)</pre><pre>print(“This will run.”)</pre><p>— — — — — — — — — — -</p><p><em>ex3.py</em></p><p><strong>Math &amp; Numbers:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11d43720e06f5ab00bc3ffe14f7243a0/href">https://medium.com/media/11d43720e06f5ab00bc3ffe14f7243a0/href</a></iframe><p><strong>Variables and Names:</strong></p><p><em>ex4.py</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17b5f2850db1e4bf5e2b121d982b673d/href">https://medium.com/media/17b5f2850db1e4bf5e2b121d982b673d/href</a></iframe><p><strong>More Variables &amp; Printing:</strong></p><p><em>ex5.py</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b97d5a4e7c8bc7cdf0e9afe1a56361ed/href">https://medium.com/media/b97d5a4e7c8bc7cdf0e9afe1a56361ed/href</a></iframe><p><strong>Strings &amp; Text:</strong></p><p><em>ex6.py</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f18d947b751df4d77358cf59e8016e30/href">https://medium.com/media/f18d947b751df4d77358cf59e8016e30/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9654c79b1bdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Documenting algorithms for your analytics team]]></title>
            <link>https://medium.com/@plotmechanic/documenting-algorithms-for-your-analytics-team-cb7de1111ea4?source=rss-cb763c91e7fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb7de1111ea4</guid>
            <category><![CDATA[software-documentation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[marketing-automation]]></category>
            <dc:creator><![CDATA[Sanket Joshi]]></dc:creator>
            <pubDate>Thu, 27 Sep 2018 18:20:29 GMT</pubDate>
            <atom:updated>2018-09-27T18:20:29.527Z</atom:updated>
            <content:encoded><![CDATA[<p>Developing a data product is like modern software development — you break down complicated systems into smaller more manageable chunks. I like to call it modular thinking and it is essential for a good night’s sleep. No, I am not kidding - all you amazing software developers around here know what I am talking about.</p><p>A <a href="https://goo.gl/images/VgDgTi">manageable chunk</a> has some distinct characteristics:</p><ol><li><strong>Independence:</strong><br>A manageable chunk does not let you get distracted by other parts of the whole. It lends focus to the team’s individual contributors.</li><li><strong>Its got limbs:<br></strong>To interact with other parts of the whole, a manageable chunk incorporates perspective of the whole. Managers help connect these dots.</li><li><strong>Business case agnostic:</strong><br>The best manageable chunks are those that are not project specific and can be used as drag &amp; drop pieces of code.</li></ol><p>With this approach, a data product can be built locally as manageable chunks and the product evolves at a global level, locally. During this evolution it is imperative that the manageable chunk know its place &amp; importance in terms of its collaboration with manageable chunks being developed by other team members.</p><p>For a successful evolution of the data product, documentation is crucial.</p><p><strong><em>Pseudo-code &amp; Flowcharts:</em></strong></p><p>Pseudo-code is great during the development phase. Flowcharts are great presentation tools. But in a business driven environment the most practical &amp; efficient method of documenting an about-to-release algorithm in my experience is using concepts from literate programming. I would want my code to be documented such that even my manager’s manager can read &amp; understand what it is that it is doing.</p><p><strong><em>Control group matching algorithm:</em></strong></p><p>So, my organisation runs marketing campaigns. Every company does. My team builds propensity models that help the company target customers with the right products. Instead of spending on a marketing campaign for a million customers, we give the marketing team a concise list of 0.1 million high propensity customers for the product. This improves the response rate while reducing cost.</p><p>Work in Progress.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb7de1111ea4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>