<?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 Anshul Varshney on Medium]]></title>
        <description><![CDATA[Stories by Anshul Varshney on Medium]]></description>
        <link>https://medium.com/@anshul-varshney?source=rss-14eb97c20a55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Anshul Varshney on Medium</title>
            <link>https://medium.com/@anshul-varshney?source=rss-14eb97c20a55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:16:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anshul-varshney/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[Understanding Value ETFs vs Growth ETFs: Which one is Right for You?]]></title>
            <link>https://medium.com/@anshul-varshney/understanding-value-etfs-vs-growth-etfs-which-one-is-right-for-you-269ee1b20ee2?source=rss-14eb97c20a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/269ee1b20ee2</guid>
            <category><![CDATA[stocks]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[etf-investing]]></category>
            <category><![CDATA[etf]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Anshul Varshney]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 00:07:20 GMT</pubDate>
            <atom:updated>2024-09-30T00:07:20.834Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7WpLyrGL85apkvttIlxMTA.jpeg" /></figure><p>When it comes to investing, Exchange-Traded Funds (ETFs) offer a versatile approach, allowing you to build a diversified portfolio without having to pick individual stocks. Two popular strategies within the ETF space are <strong>Value ETFs</strong> and <strong>Growth ETFs</strong>. Each has its own characteristics, benefits, and drawbacks. In this article, we’ll explore what they are, how they differ, and who might benefit from each approach.</p><h3>What Are Value ETFs?</h3><p>Value ETFs focus on stocks that are perceived to be undervalued compared to their intrinsic worth. These companies typically trade at lower price-to-earnings (P/E) ratios than their peers or the broader market. Value investors look for established companies that generate consistent cash flow, often leading to a reliable dividend yield. This strategy can appeal to those seeking stability and income. Examples: <a href="https://investor.vanguard.com/investment-products/etfs/profile/vtv">VTV</a>, <a href="https://www.ishares.com/us/products/239708/ishares-russell-1000-value-etf">IWD</a>, <a href="https://investor.vanguard.com/investment-products/etfs/profile/vbr">VBR</a>, <a href="https://institutional.fidelity.com/prgw/digital/research/quote/dashboard/view-all?symbol=FDVV">FDVV</a></p><h4>Benefits of Value ETFs:</h4><ul><li><strong>Stability:</strong> They often invest in established companies with steady earnings.</li><li><strong>Dividends:</strong> Many value stocks pay dividends, providing a regular income stream.</li><li><strong>Lower Volatility:</strong> Generally, value stocks experience less price fluctuation compared to growth stocks.</li></ul><h4>Drawbacks of Value ETFs:</h4><ul><li><strong>Limited Growth Potential:</strong> While value stocks may provide steady returns, they often lack the explosive growth seen in some tech or emerging companies.</li><li><strong>Market Timing:</strong> Value investing can require patience, as it may take time for the market to recognize a stock’s true worth.</li></ul><h3>What Are Growth ETFs?</h3><p>Growth ETFs, on the other hand, target companies that are expected to grow at an above-average rate compared to others in the market. These stocks are often associated with innovation and technological advancements, and they may reinvest profits back into the business rather than distributing them as dividends. Think of companies like <a href="https://www.nasdaq.com/market-activity/stocks/tsla">Tesla</a>, <a href="https://www.nasdaq.com/market-activity/stocks/amzn">Amazon</a>, or <a href="https://www.nasdaq.com/market-activity/stocks/googl">Alphabet</a> — these are typically included in growth-focused ETFs. Examples: <a href="https://www.schwabassetmanagement.com/products/schg">SCHG</a>, <a href="https://www.ishares.com/us/products/239720/ishares-russell-top-200-growth-etf">IWY</a>, <a href="https://advisors.vanguard.com/investments/products/mgk/vanguard-mega-cap-growth-etf">MGK</a>, <a href="https://investor.vanguard.com/investment-products/etfs/profile/vong">VONG</a></p><h4>Benefits of Growth ETFs:</h4><ul><li><strong>Higher Return Potential:</strong> Growth stocks can offer substantial returns if the companies continue to expand.</li><li><strong>Market Leadership:</strong> These companies often lead in their respective sectors, driving innovation and demand.</li></ul><h4>Drawbacks of Growth ETFs:</h4><ul><li><strong>Volatility:</strong> Growth stocks can be more susceptible to market swings, making them riskier for conservative investors.</li><li><strong>Low or No Dividends:</strong> Many growth companies prioritize reinvestment over dividend payouts, which might disappoint those seeking regular income.</li></ul><h3>Choosing Between Value and Growth ETFs</h3><p>Your choice between value and growth ETFs should depend on several factors:</p><ol><li><strong>Risk Tolerance:</strong> If you’re uncomfortable with market fluctuations, value ETFs might be a better fit. Conversely, if you can tolerate volatility for the potential of higher returns, consider a higher allocation to growth ETFs.</li><li><strong>Investment Goals:</strong> If you’re seeking a steady income, value ETFs with their dividend payouts may align better with your objectives. For long-term capital appreciation, growth ETFs could be more appealing.</li><li><strong>Portfolio Composition:</strong> Assess your current holdings. A balanced portfolio often includes both growth and value ETFs to reduce risk while capturing different market opportunities.</li><li><strong>Time Horizon:</strong> Younger investors with longer investment horizons may lean towards growth ETFs, as they have time to ride out market fluctuations. In contrast, those nearing retirement might prefer the stability of value ETFs.</li></ol><h3>Conclusion</h3><p>Both value and growth ETFs have their merits, offering different risk profiles and return potentials. Understanding your personal investment goals, risk tolerance, and the current state of your portfolio can help guide your decision. Ultimately, a well-rounded investment strategy may include a mix of both, allowing you to enjoy the benefits of each while mitigating risks. By carefully considering these factors, you can tailor your ETF investments to align with your financial aspirations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=269ee1b20ee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Are Target Date Retirement Funds and Who Should Use Them?]]></title>
            <link>https://medium.com/@anshul-varshney/what-are-target-date-retirement-funds-and-who-should-use-them-d6f5c115cf26?source=rss-14eb97c20a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6f5c115cf26</guid>
            <category><![CDATA[401k]]></category>
            <category><![CDATA[personal-finance]]></category>
            <category><![CDATA[money-management]]></category>
            <category><![CDATA[savings-tips]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Anshul Varshney]]></dc:creator>
            <pubDate>Sat, 20 Apr 2024 21:08:56 GMT</pubDate>
            <atom:updated>2024-04-20T21:08:56.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever logged into your 401(k) retirement account and noticed that a big sum of your retirement savings is automatically invested in a target date fund, and wondered what the heck it is?? Have you wondered if it is a good choice for you or if there are other better choices you should be invested in?? In this article, we’ll dive into the world of target date funds, exploring how they work, their pros and cons, and who should (and shouldn’t) consider them for their retirement savings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*G9oHuv0_JTd_nrAy.jpg" /></figure><h3>What Are Target Date Retirement Funds?</h3><p>Target date retirement funds are a type of investment fund that automatically adjusts its asset allocation over time as the investor approaches their target retirement date. These funds are designed to provide a hands-off, diversified approach to retirement investing. The way they work is relatively straightforward. Target date funds typically start out with a higher allocation to stocks when the investor is younger, and gradually shift to a more conservative mix of stocks and bonds as the target retirement date approaches. This gradual shift is known as the fund’s “glide path.”For example, a 2045 target date fund from Vanguard may start out with 90% stocks and 10% bonds. As 2045 gets closer, the fund will gradually reduce its stock allocation and increase its bond allocation, to end up with perhaps 50% stocks and 50% bonds by the target date.</p><blockquote><a href="https://institutional.vanguard.com/investment/strategies/tdf-glide-path.html">TDF Glide Path Explained with infographic</a></blockquote><h3>Pros and Cons of Target Date Funds</h3><p>Now that you have a better understanding of how target date funds work, let’s explore the potential advantages and drawbacks of this investment approach.</p><p><strong>Pros</strong>:</p><ul><li>Automatic rebalancing: Target date funds handle the asset allocation adjustments automatically, so investors don’t have to worry about rebalancing their portfolio over time.</li><li>Diversification: Target date funds invest in a diversified mix of stocks, bonds, and other assets, which can help manage risk.</li><li>Simplicity: Investors only need to choose one fund based on their target retirement date, rather than having to build and manage a portfolio themselves.</li><li>Discipline: Target date funds encourage a “set it and forget it” approach, allowing investors to avoid the temptation of making emotional investment decisions that can derail their long-term goals.</li></ul><p><strong>Cons</strong>:</p><ul><li>Limited customization: Target date funds have a preset glide path that may not perfectly match an individual’s risk tolerance or financial situation.</li><li>Fees: Target date funds typically have higher fees than building a portfolio of individual index funds.</li><li>Lack of control: Investors give up some control over their asset allocation by using a target date fund.</li><li>Potential underperformance: Target date funds may underperform a customized portfolio that is tailored to an individual’s specific needs and risk preferences.</li></ul><h3>Who Should (and Shouldn’t) Use Target Date Funds?</h3><p>Target date funds are generally a good option for investors who:</p><ul><li>Are saving for retirement and want a hands-off, diversified approach</li><li>Want an experienced institution to manage their retirement funds</li><li>Have a long time horizon until retirement (10+ years)</li><li>Have a moderate to high risk tolerance</li><li>Don’t want to actively manage their retirement portfolio</li></ul><p>On the other hand, investors with more complex financial situations or a strong interest in managing their own investments may prefer to build a customized portfolio instead. Additionally, those with a lower risk tolerance or a shorter time horizon until retirement may want to consider a more conservative investment approach.</p><h3>The Secret Sauce: DIY Index Fund Investing</h3><p>Majority of the target date retirement funds are composed of index funds and bonds. The index funds within the target date fund have their own expense ratios that the fund management company charges, which can result in a higher overall expense ratio for the target date fund itself.</p><p>If your retirement plan offers the option to invest in individual index funds, you could potentially achieve better returns at a lower cost by building your own portfolio. By investing directly in index funds, you can avoid the additional fees charged by the target date fund manager.</p><p>But don’t forget to rebalance your portfolio as you approach your retirement date, shifting to a more conservative mix of stocks and bonds. You don’t want to overcook and burn your retirement meal.</p><p>In the end, whether target date funds are the right choice for you will depend on your individual financial goals, risk tolerance, and investment preferences. By understanding how these funds work and weighing the pros and cons, you can make an informed decision about whether they fit into your retirement investing strategy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6f5c115cf26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleash the Power of Databricks SQL with FastAPI: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@anshul-varshney/unleash-the-power-of-databricks-sql-with-fastapi-a-step-by-step-guide-7d132ea591aa?source=rss-14eb97c20a55------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d132ea591aa</guid>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Anshul Varshney]]></dc:creator>
            <pubDate>Sat, 06 Apr 2024 00:59:44 GMT</pubDate>
            <atom:updated>2024-04-06T00:59:44.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3DXh_hIPi21TXCR0.png" /><figcaption>Databricks Statement Execution API</figcaption></figure><h3>Introduction</h3><p>Have you ever needed to serve the data in a Delta table via an API? Wish there was a way to use a Delta table in the Databricks Lakehouse as a backend for your API? You can achieve this by leveraging the Databricks SQL Statement Execution API.</p><p>The Databricks SQL Statement Execution API serves as a powerful connector, allowing you to seamlessly access and interact with the data stored in your Databricks Lakehouse from your own service or application. By integrating this API into a Python FastAPI application, you can build scalable and efficient web applications that provide your users with direct access to the data managed by the Databricks platform.In this article, we’ll guide you through the step-by-step process of setting up the Databricks configuration, implementing the SQL Statement Execution API in your FastAPI application, and handling asynchronous SQL execution. By the end, you’ll have a good understanding of how to leverage the power of Databricks and FastAPI to build cutting-edge data-driven applications.</p><h3>Prerequisites and Setup</h3><p>To integrate the Databricks SQL Statement Execution API with your FastAPI application, you’ll need the following:</p><ol><li>Databricks Account with permissions to access the SQL Statement Execution API.</li><li>Databricks Host: Log in to your Databricks workspace and navigate to the “Admin” section. Under the “Advanced” tab, you’ll find the “Databricks Host” URL, which you’ll need to use in your application.</li><li>Databricks API Access Token: Create a token by navigating to your Databricks workspace, clicking your username, selecting User Settings, going to the Developer tab, managing your access tokens, and generating a new token with an optional comment and lifetime.</li><li>Databricks SQL Warehouse ID: Identify the SQL warehouse ID that you’ll be using to execute your SQL statements.</li><li>A basic python FastAPI service.</li><li>Python Dependencies: Add the latest version of Databricks SDK in your requirements.txt file. <a href="https://pypi.org/project/databricks-sdk/">databricks-sdk</a></li></ol><p>By completing these setup steps, you’ll have the necessary Databricks configuration details and dependencies to integrate the SQL Statement Execution API with your FastAPI application.</p><h3>Implementing the Databricks SQL Statement Execution API in FastAPI</h3><p><strong>Define an API endpoint</strong> that accepts parameters such as column name and column value. Use these parameters to construct the API request.</p><pre>app = FastAPI()<br><br>@app.get(&quot;/get-data&quot;)<br>def get_data(column_name: str = Query(..., example=&quot;id&quot;),<br>    column_value: str = Query(..., example=&quot;123&quot;)):<br><br>    # Call the function to execute the SQL statement<br>    return execute_databricks_sql(column_name, column_value)</pre><p><strong>Create a function</strong> in your FastAPI application that will retrieve the Databricks configuration details and execute SQL statements using the Statement Execution API.</p><pre>import os<br>from databricks.sdk import WorkspaceClient   <br>from databricks.sdk.service.sql import ExecuteStatementResponse, StatementState<br><br>## reteive config from environment config<br>token = os.getenv(&#39;DATABRICKS_TOKEN&#39;)<br>host = os.getenv(&#39;DATABRICKS_HOST&#39;)<br><br>def execute_databricks_sql(column_name: str, column_value: str):<br><br>    ## create workspace client<br>    client = WorkspaceClient(host=host, token=token)<br>    <br>    statement = f&quot;SELECT * FROM SAMPLE_TABLE WHERE {column_name} = %s&quot;<br>    params = [column_value]<br>    <br>    ## excute statement<br>    response = client.statement_execution.execute_statement(<br>                statement=&quot;SELECT * FROM SAMPLE_TABLE&quot;,<br>                params=params,<br>                warehouse_id=&quot;sample_warehouse_id&quot;,<br>                catalog=&quot;sample_catalog&quot;,<br>                schema=&quot;sample_shcema&quot;)<br>    <br>    return response.result.data_array<br>    </pre><h3>Consideration</h3><ol><li>When working with the SQL Statement Execution API, it’s important to consider the <strong>handling of asynchronous SQL execution</strong>, especially for long-running queries. FastAPI’s asynchronous capabilities make it well-suited for this task.</li><li>When integrating the Databricks SQL Statement Execution API with your FastAPI application, it’s crucial to implement <strong>robust error handling</strong> and logging to ensure a reliable and user-friendly experience.</li></ol><h3>Conclusion</h3><p>By integrating the Databricks SQL Statement Execution API with a FastAPI application, you can unlock a wealth of benefits for your data-driven projects:</p><ul><li>Seamless Data Access: Your FastAPI application can directly query and manipulate data stored within the Databricks Lakehouse, eliminating the need for complex data extraction and transformation processes.</li><li>Scalability: The combination of the Databricks platform’s scalability and FastAPI’s high-performance capabilities ensures that your application can handle increasing data volumes and user demands with ease.</li><li>User-Friendly Interface: By exposing the Databricks SQL Statement Execution API through your FastAPI application, you can create a intuitive and efficient interface for your data consumers, allowing them to interact with your data in a seamless manner.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d132ea591aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>