<?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 Ishaq Hussain  on Medium]]></title>
        <description><![CDATA[Stories by Ishaq Hussain  on Medium]]></description>
        <link>https://medium.com/@ishaqhussain461461?source=rss-8d6730289f16------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*t_-_KUzkaxXVu_lGv--UKA.jpeg</url>
            <title>Stories by Ishaq Hussain  on Medium</title>
            <link>https://medium.com/@ishaqhussain461461?source=rss-8d6730289f16------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:15:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ishaqhussain461461/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[Sales Insights Data Analysis of a Hardware Company]]></title>
            <link>https://medium.com/@ishaqhussain461461/sales-insights-data-analysis-of-a-hardware-company-fb4c21ddb8db?source=rss-8d6730289f16------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb4c21ddb8db</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Ishaq Hussain ]]></dc:creator>
            <pubDate>Thu, 11 Jul 2024 15:54:29 GMT</pubDate>
            <atom:updated>2024-07-13T04:34:08.723Z</atom:updated>
            <content:encoded><![CDATA[<h4>using SQL and Power BI</h4><h4>The Case</h4><p>let’s assume a computer hardware business in India is facing challenges in dynamically changing market. The sales director of that company decided to invest in analysing the business data and he would like to build a power BI dashboard that can give him real time sales insights.</p><p>In this article, come along with me throughout the work flow from importing the SQL sales data file into MySQL for data munging and preprocessing to creating a valuable real time insights dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BpVVJcrbbmu19yEE" /><figcaption>Photo by <a href="https://unsplash.com/@firmbee?utm_source=medium&amp;utm_medium=referral">Firmbee.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Hello world! may peace and serenity be upon us</blockquote><p>Consider ourself as the BA team recruited for analysing the company’s sales data.</p><h4>To import data from your local disk:</h4><p>Open MySQL &gt; server &gt; data import &gt; import from self-contained file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7vRRczPND4HB4uOYZfLjQ.png" /></figure><p>File was named as ‘sales’ with seperate tables for customers, date, markets, products, transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*66Jh3cgt7EOFPWisT399bg.png" /></figure><p>Now it is time to go through the tables for wrangling them. let&#39;s look into the tables one by one for cleaning.</p><h4>Table 01: customers</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06eH_YNOicL-pZv_rWWBzg.png" /></figure><p>The table contains three columns, customer_code, customer_name and customer_type(Brick &amp; Mortar (or) E-commerce).</p><p>To get the number of unique customers of the company</p><pre>SELECT distinct count(customer_code) FROM sales.customers;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*h_SHTDlkAkHakZwoM6rzlA.png" /></figure><p>this clearly shows that there are totally 38 customers doing hardware business with this company.</p><p>Now, lets find out how many of their customers are E-commerce type</p><pre>SELECT count(customer_type) FROM customers where customer_type=&#39;E-commerce&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*nCCY2HudA4hq7HEn84HO6A.png" /></figure><p>19 customers are E-commerce type, which means 19 (38 minus 19) are Brick &amp; Mortar type.</p><h4>Table 02: date</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*nb8VNrPzpOyHEnJBPBnMVw.png" /></figure><p>date table contains five columns, date, cy_date (which is the first date of every month starting from June, 2017), year, month_name, date_yy_mmm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*GCPU6M7z0PHs64_mk8xb6w.png" /></figure><p>And this table contains 1126 rows of non-null entries.</p><h4>Table 03: markets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*y3jUYj_nvMMbKaJh7H-s9A.png" /></figure><p>This table contains a total of 17 markets in which the first 15 of them are Indian and final two are New York and Paris.</p><p>let’s check the transaction table for these two final markets, to check that</p><pre>select market_code from transactions where market_code = &#39;Mark097&#39; or market_code = &#39;mark999&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*mBwp07bPQAaPtqUbawa8kQ.png" /></figure><p>The result grid returned with no rows, this means mark097(New york) and mark999(Paris) have no trade records in these tables. So let’s remove them.</p><p>To remove, I’m going to use the empty cell located in the zone column.</p><pre>delete from markets where zone = &#39;&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*3p6iwHVaScoRkrO51zCRjw.png" /></figure><h4>Table 04: products</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*HwASHNqEf_UcDWX7O7XQEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*dGXweNaOhvqhhFjXF6l_Lg.png" /></figure><pre>select count(*) from products where product_type = &#39;Own Brand\r&#39;;</pre><p>In this company, out of 279 products, 191 products are own branded, which means 88 (279 minus 191) products are just distributions.</p><p>Note: while quering in mysql, you can see that I have written ‘Own Brand\r’ instead of ‘Own Brand’. This happened because when I wrote ‘Own Brand’ the result grid returned no rows.</p><p>Then cross checked by distincting the product_type and copy pasting the cell value inside the sql queries tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*vlczRU3ap0z7S4gGTjXuDg.png" /></figure><p>During the database engineering process, this may be caused due to carelessness or purposefully created by the engineers as per their company’s data storing policy.</p><p>That’s why I mentioned ‘Own Brand\r’ instead of ‘Own Brand’.</p><h4>Table 05: transactions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*rNfkAA9hZghLEzMDz1c3QA.png" /></figure><p>The transactions table contains product_code, customer_code, market_code, order_date, sales_qty, sales_amount, currency.</p><p>Here, we are facing two issues,</p><ol><li>The sales_amount in the second row is -1, looks like we have more negative values as sales amount, sales amount can’t be negative.</li><li>The currency is stored in both INR and USD, it should be convered to any one of the two types.</li></ol><h4>Let’s address the issue 01</h4><pre>select * from transactions where sales_amount &lt;=0 ;<br>select count(*) from transactions where sales_amount &lt;=0;<br>delete from transactions where sales_amount &lt;=0;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*0Kd4wNABzuII0_BRXBl8CA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*VujI2FYBMNcJal-mzbez0Q.png" /></figure><p>Filtered the 1611 rows that contains ≤ 0 sales amount and deleted them.</p><h4>Now the issue 02</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*qoiAI9H_2wREqkK1C14eHg.png" /></figure><p>while distincting the currency column, the result showed four currencies (two INRs and two USDs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*D0SxfycMsfEqrV6-Q-gTew.png" /></figure><p>By copy pasting them to the Sql queries tab, I found that, this is the same ‘\r’ issue we faced with the product_type column of products table. Before currency convertion, let’s first sort out this issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*kfVPhMnSXU5RHuz6YEzw9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*RIZrG80VCGRZyhsFwlTd-g.png" /></figure><p>there are 148393 rows of INR\r and 275 rows of INR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*IxczrzejXxOXPMkSXsYK1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*jef8AeTG6Dgwzt8IJQVL6w.png" /></figure><p>Both the curreny type got the same values in every column, it seems like INR is a small duplicate record of INR\r stored in this file. So, it is good to remove the INR currency type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*y4gTJKZ-3BXnN0hBKC6Fmw.png" /></figure><p>INR type was removed sucessfully. Now let’s do the same for USD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*iqhOk5xxVVXRnKxw3GENgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*H0e909Y2AjWcCwJB-D_vEQ.png" /></figure><p>Here, the USD is the exact duplicate of the USD\r. let’s remove it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*vU4_wDllHIh9upGyODidZw.png" /></figure><p>Now, there are only two currencies, And the USD is very less in quantity, So, we should convert it to the INR.</p><pre>update transactions set sales_amount = sales_amount * 65, currency = &#39;INR\r&#39; where currency = &#39;USD\r&#39;;</pre><p>If the currency is USD\r , sales_amount will be multiplied by 65 and currency will be changed from USD\r to INR\r.</p><h4>Explanation:</h4><p>The currency is USD only during the month of november, 2017. At that time the USD to INR convertion rate is 65 rupees per US dollar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dJAsXn21mA52K9ablWumBA.png" /></figure><p>Finally, the data cleaning process was completed. Now, this dataset is ready for visualization. let’s connect this database to Power BI and load the tables, there.</p><p>This resembles a star pattern. As you can see, all the other tables are connected to this transactions table by at least one common column.</p><p>Before loading this data to Power BI, I thought that it will be more better if we have the profit margin, profit margin % and cost/manufacturing price of each product, So i created a fake data of them and merged to the transactions table of this database.</p><p>for that, I exported the transactions table alone as a .csv file, then created three colums, added fake values.</p><p>To load the dataset. Open power BI &gt; get data &gt; MySQL database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8RJVCpdZzEICiHWO1-efMw.png" /></figure><p>Enter the details of your SQL server and schema, click OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nytFvcEZ4wmltgZV4NtzgQ.png" /></figure><p>This will import all the data from the schema, click LOAD to store them all.</p><p>Since visualizing this data is completely subjective to each business analyst based on their experience with Power BI or the stakeholder’s requirements, I will simply attach my report as a .pbix file <a href="https://github.com/ishaqhussain-dfa/sales-insights-data-analysis/blob/main/sales%20insights%20report.pbix">here</a>.</p><p>For a glance,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jyV-0WS4bSjmE_AA9GoOw.png" /><figcaption>page 01: primary details with revenue contribution %</figcaption></figure><p>This is the page 01 of the report, here I have visualized the revenue and sales qty by customer and market each.</p><p>Created a new measure called revenue contribution % using DAX and visualized with market as y-axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlLlkTdq-TKzXfuobDI8kg.png" /><figcaption>page 02: profit margin % and profit margin contribution %</figcaption></figure><p>This page 2 is like an indepth of pervious one, I calculated the profit margin % and the profite margin contribution %, visualized them with customer/market as y-axes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nOcERB4RHw3Of_-K4WA5wA.png" /><figcaption>page 03: the RED alert</figcaption></figure><p>Here, this page will act like a red alert indicator when the profit margin % goes down beyond a certain level, we can set the range using the profit target option.</p><p>the sales .sql file and the fake profit .csv file can be found<a href="https://github.com/ishaqhussain-dfa/sales-insights-data-analysis.git"> here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb4c21ddb8db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysing the gender inequality in Hollywood]]></title>
            <link>https://medium.com/@ishaqhussain461461/analysing-the-gender-inequality-in-hollywood-2ef26319560d?source=rss-8d6730289f16------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ef26319560d</guid>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Ishaq Hussain ]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 10:44:33 GMT</pubDate>
            <atom:updated>2024-07-03T07:22:30.610Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Analysing the Bechdel scores of Hollywood movies</strong></h3><h4><strong>using Python and Excel</strong></h4><h4>The Inspiration</h4><p>Inspired by <a href="https://towardsdatascience.com/the-bechdel-test-analyzing-gender-disparity-in-hollywood-263cd4bcd9d">the article</a> written by <a href="https://medium.com/u/6a2ef1b1f09d">Natassha Selvaraj</a>, I extend my gratitude to her.</p><blockquote>Hello world ! may peace and serinity be upon us</blockquote><p>Recently, I came across Natassha Selvaraj’s <a href="https://www.youtube.com/@natassha_ds">YouTube channel</a> and have been learning valuable insights from the day 01 of knowing it.</p><p>I read her article on her complete python project on analysing the gender gap between men and women in Hollywood. Since her work was interesting, I decided to do this using python(for data collection and gender guessing) and excel(for merging and analysing the collected dataset).</p><h4>The Bechdel test score</h4><p>what is it? the exact question I asked.</p><p>The Bechdel test is a measure to assess gender representation in fiction, especially films. For a film to pass the Bechdel test, it must meet three criteria:</p><ol><li>It must have at least two named female characters.</li><li>These characters must have a conversation with each other.</li><li>The conversation must be about something other than a man.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GckRtCp2w_rWlDwg" /><figcaption>Photo by <a href="https://unsplash.com/@jeztimms?utm_source=medium&amp;utm_medium=referral">Jez Timms</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The test is named after cartoonist <a href="https://en.wikipedia.org/wiki/Alison_Bechdel">Alison Bechdel</a>, who introduced the concept in her comic strip “Dykes to Watch Out For” in 1985. It serves as a basic indicator of gender balance in fiction.</p><p>NOTE: passing the test does not necessarily mean that a work is feminist or progressive in its portrayal of women.</p><h4>The Case Questions</h4><ol><li>Have the Bechdel scores of movies improved over the years?</li><li>Do movies with higher IMDB ratings have higher Bechdel scores?</li><li>Do movies with female directors have higher Bechdel scores?</li><li>Does the budget of a movie have any impact on its Bechdel score?</li><li>Do movies with higher Bechdel scores generate a larger revenue?</li></ol><h4>Let’s start collecting the data for our analysis</h4><p>I collected the data of bechdel test score of movies from <a href="https://bechdeltest.com/">bechdeltest.com</a>.</p><p>we can either use python to collect and convert the data into a downloadable .csv file or use the web scraping option in excel to import the data directly into an excel workbook.</p><p>I will show you both the methods down below.</p><h4>1. Using Pandas</h4><p>In Jupiter notebook,</p><pre>import urllib, json<br>import pandas as pd<br>df = pd.read_json(&quot;https://bechdeltest.com/api/v1/getAllMovies&quot;)</pre><p>to collect the data using the API of the bechdeltest website.</p><pre>df.head()</pre><p>let’s have a look at the colums available in this dataset</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*2gHC0Yx18XDlxRPIgUNoCA.png" /></figure><p>Here we have the movies list starting from 1874, the rating colume is the bechdel test score of the specific movie.</p><pre>df.count()</pre><p>by using count() , we got the total number of entries (non-null values) in each column of a DataFrame in Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*4v9sup4Kaeixaixj6stx7w.png" /></figure><pre>df.to_csv(&#39;bechdeltestscore.csv&#39;)<br>from IPython.display import FileLink<br>FileLink(&#39;bechdeltestscore.csv&#39;)</pre><p>then converted the data to a .csv file and downloaded using the FileLink class which will convert the entire dataset to a clickable link.</p><h4>2. Using Excel</h4><p>After opening an excel workbook, click on data &gt; from web &gt; URL, paste the api url, then OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7rg7blTEsAAbnjXtFuyL1w.png" /></figure><p>This will take us to the Power Query editor, where we can edit, delete, rearrange the columns as per our requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BOqZ4thOtplEwfSU_hjCWQ.png" /></figure><p>I didn&#39;t make any changes. Just directly loading all the columns to the worksheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IU5Ykv_XuvkovI-hLak9QQ.png" /></figure><p>And this is how you scrape data from the web into excel.</p><p>Since, this dataset doesn&#39;t contain information about the director’ s name, budget and gross profit of the movies, i downloaded some other datasets from <a href="https://www.kaggle.com/">kaggle</a> and merged them in excel using Power Queries editor option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzdfMT6Z7rHPQ_DC-mYyjw.png" /></figure><p>Then removed the unwanted columns. Now, it is time to find out the gender of the directors.</p><p>There are APIs to guess the gender of a person using their first name. By using the Add-ins option in excel, we can get those APIs and use them for gender guessing, but most of them have limited free credits.</p><p>So, let&#39;s use gender guesser python package.</p><pre>!pip install gender-guesser</pre><p>remember to mention ‘ ! ’ if you are directly using python package installer from the notebook instead of switching to the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*tZMkXeVfwKu9vWdVnZ9nAA.png" /></figure><p>The required package was installed.</p><pre>import pandas as pd<br>import gender_guesser.detector as gen<br>dfLatest = pd.read_csv(&#39;C:/Users/ishaq hussain/Downloads/gender.csv&#39;,encoding = &quot;latin&quot;)<br>dfLatest.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*Vjlepkfvm6v9EaZgH-dFqg.png" /></figure><p>Now, I have loaded the data too.</p><pre>d = gen.Detector()<br>genders = []<br>firstNames = dfLatest[&#39;director&#39;].str.split().str.get(0)<br>for i in firstNames[0:len(firstNames)]:<br>    if d.get_gender(i) == &#39;male&#39;:<br>        genders.append(&#39;male&#39;)<br>    elif d.get_gender(i) == &#39;female&#39;:<br>        genders.append(&#39;female&#39;)<br>    else:<br>        genders.append(&#39;unknown&#39;)<br>dfLatest[&#39;gender&#39;] = genders<br>dfLatest.head()</pre><p>guessing the gender of the directors using their first name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gof3uwg0xoXWTpXqF-ntQ.png" /></figure><p>downloading this data by converting into a .csv file as usual using the FileLink class.</p><h4>Let’s analyse the Data</h4><p>After the data collection process, it is time to analyse the data to answer the questions. let&#39;s use pivot tables to get the answers.</p><h4>Question 01 : Have the Bechdel scores of movies improved over the years?</h4><p>The following line chart shows the average of bechdel scores in a year from 1986 to 2016.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48rI79JRGl5pptfh-xh8Iw.png" /></figure><p>This indicates that the bechdel score of movies are improving over the years, albeit very slowly.</p><h4>Question 02 : Do movies with higher IMDB ratings have higher Bechdel scores?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ApIg66-MsbbNv9KiFHgOqQ.png" /></figure><p>Here, movies with highest bechel score of 3 tend to have the lowest average IMDB ratings which makes the sence of no relation between the bechdel score and the IMDB ratings.</p><p>Therefore, a movie’s high IMDb rating should not be assumed to indicate that it has passed the Bechdel test.</p><h4>Question 03: Do movies with female directors have higher Bechdel scores?</h4><p>For this analysis, I used the gender column created using gender guesser package, the column contain three distinct values (male,female,unknown).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4L-CmtpaxDLvbHPOsOdmQg.png" /></figure><p>when we chart them with the average bechdel scores of each gender, I found that movies directed by female directors generally have higher Bechdel scores than those directed by male directors.</p><h4>Question 04: Does the budget of a movie have any impact on its Bechdel score?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_h4SIDpGYIWoplbTmTMZw.png" /></figure><p>The above chart illustrates the relation among the bechdel score, budget and revenue of the movies.</p><p>It shows that movies with higher budget tend to have a lower Bechdel score of 1.</p><p>Both Bechdel scores 1 and 3 are associated with higher gross revenues, while movies with a Bechdel score of 3 generally have the lowest budget.</p><p>This indicates that there is no direct correlation between a movie’s budget and its Bechdel score.</p><p>So, the budget of a movie have no impact on it’s bechdel score.</p><h4>Question 05: Do movies with higher Bechdel scores generate a larger revenue?</h4><p>The perviouse chart also illustrates that there is no connection between a movie’s gross revenue and it’s bechdel score as both bechdel score 1 and 3 have higher gross revenue.</p><h4>Conclusion</h4><p>In conclusion, while the Bechdel test provides a useful metric for assessing gender representation in films, it is clear that passing the test does not guarantee high ratings or revenues.</p><p>The data shows that there is no straightforward correlation between a movie’s budget, gross revenue, and its Bechdel score.</p><p>Therefore, it is crucial to continue advocating for better gender representation in films, regardless of their financial success or critical acclaim.</p><p>And, it is important to note that this analysis may not be entirely accurate, as I collected the data from only two sources. The final results may vary slightly depending on the amount and diversity of the sample data.</p><p>the raw data, python code and excel workbook along with the dashboard can be found <a href="https://github.com/ishaqhussain-dfa/bechdel-test.git">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ef26319560d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>