<?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 Zain Eisa on Medium]]></title>
        <description><![CDATA[Stories by Zain Eisa on Medium]]></description>
        <link>https://medium.com/@zaineisa.work?source=rss-d6c5e23bcf15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mcHJF5IwYmwOgNdaLRlwWg.png</url>
            <title>Stories by Zain Eisa on Medium</title>
            <link>https://medium.com/@zaineisa.work?source=rss-d6c5e23bcf15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:21:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zaineisa.work/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[Deepseek AI integration with PowerBI]]></title>
            <link>https://medium.com/@zaineisa.work/deepseek-ai-integration-with-powerbi-c38742f845e8?source=rss-d6c5e23bcf15------2</link>
            <guid isPermaLink="false">https://medium.com/p/c38742f845e8</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Zain Eisa]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 16:53:34 GMT</pubDate>
            <atom:updated>2025-02-11T21:23:06.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMoGBA_mmAeMQD7BlN4ezg.png" /></figure><p>Deepseek Ai has taken the world by storm recently, its open-source nature has perked the ears of many — including world leaders; politics aside, lets discuss how to best use Deepseek to integrate into a very popular visualisation tool — Power BI!</p><p>But before that, what can you even do by integrating these 2 technologies? Well..</p><ul><li><strong>Text Analysis</strong>: Sentiment analysis, entity recognition, and keyword extraction.</li><li><strong>Predictive Analytics</strong>: Forecasting and anomaly detection.</li><li><strong>Image Analysis</strong>: Object detection and image classification.</li></ul><p>You most likely will not use the last with PowerBi. However, the integration will allow for a function that will calculate values using Deepseek — an Ai powered dataset!</p><p>In our case we have a column (A) that contains questions, and we want to create another column (B) that answers the question via Deepseek.</p><h3>STEP 1</h3><p>navigate to the Deepseek platform <a href="https://platform.deepseek.com/api_keys">https://platform.deepseek.com</a>, sign up, and ensure you save the API key somewhere safe where you can access it in the future!</p><h3>STEP 2</h3><p>To call the DeepSeek API from Power BI, you’ll use Power Query to send HTTP requests and process the responses.</p><ol><li><strong>Open Power BI Desktop</strong> and load your dataset.</li><li>Go to the <strong>Home</strong> tab and click on <strong>Transform Data</strong> to open Power Query Editor.</li><li>In Power Query Editor, click on <strong>New Source &gt; Blank Query</strong>.</li><li>Rename the query to DeepSeek_API_Call.</li><li>Next, within powerquery paste this code in</li></ol><pre>let<br>    // Load your dataset<br>    Source = YourDataSource, // Replace with your actual data source<br>    // Add a custom column to call the DeepSeek API<br>    CallDeepSeekAPI = Table.AddColumn(Source, &quot;Answer&quot;, each <br>        let<br>            apiUrl = &quot;https://api.deepseek.ai/v1/answer&quot;,<br>            apiKey = &quot;xxxxxxxxxxxxxxxxxxxxxx&quot;,<br>            requestBody = Json.FromValue([question = [Question]]), // Use the question from Column A<br>            headers = [<br>                #&quot;Content-Type&quot; = &quot;application/json&quot;,<br>                #&quot;Authorization&quot; = &quot;Bearer &quot; &amp; apiKey<br>            ],<br>            response = Web.Contents(<br>                apiUrl,<br>                [<br>                    Headers = headers,<br>                    Content = requestBody<br>                ]<br>            ),<br>            jsonResponse = Json.Document(response),<br>            answer = jsonResponse[answer] // Extract the answer from the API response<br>        in<br>            answer<br>    )<br>in<br>    CallDeepSeekAPI</pre><h3>STEP 3</h3><p><strong>source</strong>: Replace YourDataSource with the actual table or query that contains your dataset.</p><p><strong>apiKey</strong>: Your DeepSeek API key, best practice would be to load as an environment variable.</p><p><strong>answer</strong>: Extracts the answer from the JSON response and adds it as a new column.</p><pre>{<br>    &quot;answer&quot;: &quot;The capital of France is Paris.&quot;<br>}</pre><p>Thus, we will now have Column A (question) and Column B (answer)</p><h3>Conclusion</h3><p>By integrating DeepSeek Ai into Power BI, you can dynamically answer questions in your dataset and enhance your reports with Ai-driven insights. This approach is customisable and can be adapted to different use cases. What we’ve gone over is just the tip of the iceberg!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c38742f845e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ELT or ETL?]]></title>
            <link>https://medium.com/@zaineisa.work/elt-or-etl-61607f00d0bf?source=rss-d6c5e23bcf15------2</link>
            <guid isPermaLink="false">https://medium.com/p/61607f00d0bf</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[etl]]></category>
            <dc:creator><![CDATA[Zain Eisa]]></dc:creator>
            <pubDate>Wed, 25 Dec 2024 00:34:56 GMT</pubDate>
            <atom:updated>2024-12-25T00:34:56.689Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PbxfYk9L9QkitphK-ovBA.png" /></figure><p>You may have heard of ELT &amp; ETL, but what are they? What are the differences between them? More importantly, which one should YOU use?</p><h3>The Rise of Data Warehousing: 1980s</h3><h4>The Birth of Enterprise Decision Support Systems</h4><p>The 1980s saw the advent of <strong>data warehousing</strong>, driven by the need to centralize and analyze data. Pioneers like Bill Inmon and Ralph Kimball introduced structured methodologies for building <strong>data warehouses</strong>, which required data to be transformed and cleaned before loading.</p><p>During this period:</p><ul><li>ETL evolved into a formalized process to prepare data for the structured environments of data warehouses.</li><li><strong>ETL tools</strong> like IBM’s DataStage and Informatica began to emerge, automating the extraction, transformation, and loading process.</li></ul><h3>The Rise of ELT: Modern Data Pipeline Architecture</h3><p>In recent years, there has been a significant shift from traditional ETL (Extract, Transform, Load) to ELT (Extract, Load, Transform) in data processing architectures. This evolution has been driven by cloud computing capabilities and modern data warehouse solutions.</p><p>As the saying goes — storage is <strong>cheap</strong>, compute is <strong>expensive</strong>. Thus it makes sense to store all the data, and figure out relevant computations later on.</p><p>IaC (Infrastructure as Code) is also very popular and another reason to use Cloud solutions.</p><h3>Key Benefits of ELT</h3><ul><li><strong>Improved Performance:</strong> Loading raw data first allows for parallel processing and better resource utilization</li><li><strong>Greater Flexibility:</strong> Transformations can be modified without reloading data from source systems</li><li><strong>Reduced Complexity:</strong> Simplified pipeline architecture with fewer moving parts</li><li><strong>Cost-Effective:</strong> Better utilization of cloud resources and pay-as-you-go pricing models</li><li><strong>Data Preservation:</strong> Raw data is always available for different transformation requirements</li></ul><h3>Popular ELT Tools and Platforms</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*_Li6bxCGWPxboWoj-UfTFA.png" /></figure><h3>Google Cloud Platform (GCP)</h3><p>Lets us look at one Cloud provider (GCP), it offers a robust ecosystem for ELT workflows:</p><ul><li>Cloud Storage for raw data landing</li><li>BigQuery for data warehousing and transformation</li><li>Dataflow for streaming and batch processing</li><li>Data Fusion for visual pipeline development</li></ul><h3>Modern ELT Architecture in GCP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXnX-Erpk-NxdnY_AIMaHA.png" /></figure><h3>Best Practices for ELT Implementation</h3><ul><li>Implement robust data quality checks at the loading stage</li><li>Use incremental loading where possible</li><li>Leverage cloud-native services for cost optimization</li><li>Implement proper data governance and security measures</li><li>Monitor pipeline performance and costs</li></ul><h3>When to Choose ELT</h3><p>ELT is particularly beneficial when:</p><ul><li>Working with cloud data warehouses</li><li>Dealing with large volumes of data</li><li>Requiring frequent changes to transformation logic</li><li>Building data lakes or lakehouses</li><li>Implementing real-time analytics</li></ul><h3>Challenges and Considerations</h3><ul><li>Initial setup costs for cloud infrastructure</li><li>Need for skilled resources in cloud technologies</li><li>Data security and compliance requirements</li><li>Managing cloud costs at scale</li></ul><p>The shift to ELT represents a fundamental change in how organizations handle data processing, aligned with modern cloud-native architectures and the increasing demand for flexible, scalable data solutions.</p><h3>Useful Resources</h3><ul><li><a href="https://cloud.google.com/bigquery">Google BigQuery Documentation</a></li><li><a href="https://www.fivetran.com/">Fivetran Platform</a></li><li><a href="https://www.getdbt.com/">dbt (Data Build Tool)</a></li><li><a href="https://airbyte.com/">Airbyte Open Source</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61607f00d0bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Looker API: A Starter Guide]]></title>
            <link>https://medium.com/@zaineisa.work/looker-api-a-starter-guide-c70cec3333f3?source=rss-d6c5e23bcf15------2</link>
            <guid isPermaLink="false">https://medium.com/p/c70cec3333f3</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Zain Eisa]]></dc:creator>
            <pubDate>Mon, 25 Nov 2024 21:05:02 GMT</pubDate>
            <atom:updated>2024-11-25T21:22:44.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*bdZNnm5QGoDaFL2XDUx3Gw.png" /></figure><p>Looker, one of the leading business intelligence (BI) platforms, provides a robust API that allows users to programmatically interact with the data and insights generated within Looker.</p><p>Whether you’re automating reporting, building custom dashboards, accessing metadata, understanding how to access and use the Looker API is crucial for any data engineer.</p><p>This article will teach you how to connect to the Looker API and give you a couple of useful scripts for accessing dashboards and schedules.</p><h4>Step 1: Create API Credentials in Looker</h4><ol><li>Log into your Looker instance with admin access.</li><li>Navigate to <strong>Admin</strong> &gt; <strong>Users</strong> &gt; select your user.</li><li>Go to the <strong>API</strong> section and click <strong>Create API3 Key</strong>.</li><li>A new <strong>Client ID</strong> and <strong>Client Secret</strong> will be generated. Store these securely, as you won’t be able to retrieve the secret again.</li></ol><h4>Step 2: Install the Looker SDK</h4><p>within your python file , use pip (or brew) to install looker_sdk:</p><pre>pip install looker_sdk</pre><h4>Step 3: Configure the SDK</h4><p>Once you have your API credentials, configure your Looker SDK. You’ll need to add your client_id and client_secret to a configuration file.</p><p>Create a configuration file named looker.ini (or looker.yml depending on your SDK) in your project directory.</p><p>Example configuration (looker.ini):</p><pre>[Looker]<br>client_id=your_client_id<br>client_secret=your_client_secret<br>base_url=https://your.looker.instance.com</pre><h4>Step 4: Authenticate</h4><p>Now to double check your connection works, if not, you will need to check your accounts permissions.</p><pre>import looker_sdk<br>from looker_sdk.sdk.api40 import methods as mtds<br>from looker_sdk.sdk.api40 import models as ml<br>import pandas as pd<br>import json<br><br># Create a Looker SDK client<br># (needs looker.ini, see https://developers.looker.com/api/getting-started)<br>sdk = looker_sdk.init40(&quot;looker.ini&quot;)<br><br># Test by fetching the current user<br>me = sdk.me()<br>print(me[&#39;first_name&#39;])</pre><p>The script above will print your name if a connection has been successful.</p><h4>Just give me the code!</h4><p>If you just want some code, take a look below — this script will extract all dashboard schedule <em>[schedule: the frequency at which dashboards are sent out to users on Looker]</em> information and output in the form of a csv:</p><h3><strong>Extract all schedules from Looker</strong></h3><pre>import looker_sdk<br>from looker_sdk.sdk.api40 import methods as mtds<br>from looker_sdk.sdk.api40 import models as ml<br>import pandas as pd<br>import json<br><br># (needs looker.ini, see https://developers.looker.com/api/getting-started)<br>sdk = looker_sdk.init40(&quot;looker.ini&quot;)<br><br># Test by fetching the current user<br>me = sdk.me()<br>print(me[&#39;first_name&#39;])<br><br># scheduled plan destination is a list of dicts within objects<br>def object_to_dict(obj):<br>    return {<br>        &#39;id&#39;: obj.id,<br>        &#39;scheduled_plan_id&#39;: obj.scheduled_plan_id,<br>        &#39;format&#39;: obj.format,<br>        &#39;apply_formatting&#39;: obj.apply_formatting,<br>        &#39;apply_vis&#39;: obj.apply_vis,<br>        &#39;address&#39;: obj.address,<br>        &#39;looker_recipient&#39;: obj.looker_recipient,<br>        &#39;type&#39;: obj.type,<br>        &#39;parameters&#39;: obj.parameters,<br>        &#39;secret_parameters&#39;: obj.secret_parameters,<br>        &#39;message&#39;: obj.message<br>    }<br><br><br>def find_schedules():<br>  name=[]<br>  schedule_id=[]<br>  dashboard_id=[]<br>  look_id=[]<br>  enabled=[]<br>  crontab=[]<br>  user_id=[]<br>  created=[]<br>  updated=[]<br>  change=[]<br>  first_name=[]<br>  last_name=[]<br>  next_run=[]<br>  last_run=[]<br>  dashboard_filter=[]<br>  address_list=[]<br>  length=[]<br>  address_list=[]<br><br>  schedule_plans = sdk.all_scheduled_plans(all_users=True)<br><br>  for i in schedule_plans:<br><br>    scheduled_plan_destinations = i[&#39;scheduled_plan_destination&#39;]<br>    destination_dicts = [obj.address for obj in scheduled_plan_destinations]<br>    destination_json = json.dumps(destination_dicts, indent=2)<br><br>    name.append(i[&#39;name&#39;])<br>    schedule_id.append(i[&#39;id&#39;])<br>    dashboard_id.append(i[&#39;dashboard_id&#39;])<br>    look_id.append(i[&#39;look_id&#39;])<br>    dashboard_filter.append(i[&#39;dashboard_filters&#39;])<br>    enabled.append(i[&#39;enabled&#39;])<br>    crontab.append(i[&#39;crontab&#39;])<br>    first_name.append(i[&#39;user&#39;][&#39;first_name&#39;])<br>    last_name.append(i[&#39;user&#39;][&#39;last_name&#39;])<br>    user_id.append(i[&#39;user_id&#39;])<br>    address_list.append(destination_json)<br>    length.append(len(i[&#39;scheduled_plan_destination&#39;]))<br>    created.append(i[&#39;created_at&#39;])<br>    updated.append(i[&#39;updated_at&#39;])<br>    change.append(i[&#39;require_change&#39;])<br>    next_run.append(i[&#39;next_run_at&#39;])<br>    last_run.append(i[&#39;last_run_at&#39;])<br><br>  df = pd.DataFrame({<br>        &#39;schedule_name&#39;: name,<br>        &#39;schedule_id&#39; : schedule_id,<br>        &#39;dashboard_id&#39;: dashboard_id,<br>        &#39;look_id&#39; : look_id,<br>        &#39;dashboard_filters&#39; : dashboard_filter,<br>        &#39;is_enabled&#39;: enabled,<br>        &#39;owner_first_name&#39;: first_name,<br>        &#39;owner_last_name&#39; : last_name,<br>        &#39;owner_id&#39; : user_id,<br>        &#39;no_of_recipients&#39; : length,<br>        &#39;recipient_email&#39; : address_list,<br>        &#39;schedule_crontab&#39;: crontab,<br>        &#39;sent_on_change&#39;: change,<br>        &#39;next_run_on&#39; : next_run,<br>        &#39;last_run_on&#39; : last_run,<br>        &#39;created_at&#39;: created,<br>        &#39;updated_at&#39;: updated<br>  })<br><br>  return df<br><br># print output and save to csv file<br>df = find_schedules()<br>df.to_csv(&#39;schedule_info.csv&#39;,index=False, mode=&#39;w&#39;)</pre><h4>Conclusion</h4><p>You can tweak this script to do anything from extracting information about all dashboards to extracting code en masse, and can use the api to intelligently amend, delete or create LookML or dashboards.</p><p>Comprehensive documentation can be found here: <a href="https://cloud.google.com/looker/docs/reference/looker-api/latest">https://cloud.google.com/looker/docs/reference/looker-api/latest</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c70cec3333f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>