Sitemap

Data Science Sunday Episode 42, 2024

9 min readOct 27, 2024

--

Statistics accounts for uncertainties, putting a figure to uncertainties
— Peter Okwukogu

Press enter or click to view image in full size

Thanks to Everyone at Colab kaduna Data Science Sundays, and most especially the convener Sanusi, and the facilitator Peter Okwukogu.

Press enter or click to view image in full size
Press enter or click to view image in full size

It was a moment where we had Data scientists from across the globe, from Africa, Asia, South America etc. all in one call.
This was the 42nd meeting for individuals interested in learning more about Python from scratch, grasping key Data Science, and Data Analysis Concepts.

We engaged in Hands-on Coding Exercises, Participated in Q&A Sessions, and Networked with like-minded individuals.

Press enter or click to view image in full size

We were taken through Jupyter Notebook.

We went through Python Docs and Glossary.

We were given links to resources on Data Science, Statistics, Anaconda, and Python Basics on YouTube, and Links to previous episodes.

This was the first in the series with a practical Google Colaboratory.

Press enter or click to view image in full size

We started talking about California law AB 2426, “software as rent”.
The law, AB 2426, essentially expands upon existing laws against false advertising by restricting the use of any terms “which a reasonable person would understand to confer an unrestricted ownership.” To ensure people understand that digital ownership isn’t really ownership, sellers will need to either receive “an affirmative acknowledgement from the purchaser” at the time of the transaction or — and this is obviously the more practical approach — put a warning, “in a manner that clearly calls attention to the language,” on relevant products.

This brought about the question
“Are you developing a solution or a time-bound license?”

The new California law, AB 2426, will require any company offering to California consumers online-only digital goods — including a broad category of online media and content, such as games, video, audio, digital books and other digital assets (potentially including NFTs and other blockchain-based digital assets) — to disclose conspicuously that the consumer is purchasing a license of limited duration, and to separately provide the terms of that license. The law takes effect on January 1, 2025, and a violation constitutes a misdemeanour that could give rise to civil penalties. Before this date, covered companies may need to update their licenses, as well as the purchase flow for digital content, to provide the requisite notice and obtain customer acknowledgements at the point of sale.

Ray Dalio in the book “Principle of changing world Order “… looks back not to 10 years but to 60 -100 years.

To build you have to grab the abstraction from the data, Data Science Sunday is hinged on this too.

Excuses even though valid don’t care about your goals like your goals don’t care about your excuses.

The obstacle is the way — Ryan Holiday

The Obstacle Is the Way: The Timeless Art of Turning Trials into Triumph is the third book by author Ryan Holiday. It was published in 2014. It is a book which offers individuals a framework to flip obstacles into opportunities, an approach crafted by Holiday. It was inspired by the philosophy of stoicism.

It takes a lot of research to know where you are and where you want to be in the tech space.

Get Oyesina Oyerinde Anuoluwapo’s stories in your inbox

Join Medium for free to get updates from this writer.

We looked at how to use the Google Colaboratory for Python.

Press enter or click to view image in full size

A question was asked, “What are life-changing roles in the data space?”

Press enter or click to view image in full size

Question:

We hypothetically asked, “What are the highest-paying data roles?”

Press enter or click to view image in full size
Press enter or click to view image in full size

We took a close look at the roles picking the Chief Data Officer (CDO) first, his responsibilities and tasks.

Press enter or click to view image in full size

Question:

Press enter or click to view image in full size
Press enter or click to view image in full size

We searched for who is a Chief data officer (CDO).

Press enter or click to view image in full size

The result from “Indeed website” was written by the Indeed Editorial Team

We looked at what is Data Analytics:

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Data analytics is the process of examining data to discover patterns, trends, and correlations, and to use that information to make decisions.
It gave us a picture of its definition, purpose, benefits, applications, techniques, and types.

Press enter or click to view image in full size
Press enter or click to view image in full size

Question:

What kind of problems do data analystics solve?
One of them is Logistics

Question:

What is logistics?

Press enter or click to view image in full size
Press enter or click to view image in full size

Answer

The overall process of managing how resources are acquired, stored, and transported to a final destination.

Press enter or click to view image in full size

What Is Logistics in Business?

In business, logistics is the process of transporting and storing raw materials, finished goods, inventory, and other resources. Logistics in a business is typically made up of many components, including customer service, demand forecasting, warehousing, material handling, inventory control, order processing, and transportation.

Press enter or click to view image in full size

Why Is Logistics Important?

Logistics is critical to a company’s bottom line. It enables the movement of materials or goods, the satisfaction of contracts, and the fulfilment of services.
Effective logistics management ensures smooth movement along the supply chain and can provide a competitive advantage.

What Jobs Are Available in the Logistics Industry?

Press enter or click to view image in full size

Email Marketing Analysis

On Google Colab Python we did an Email Marketing Analysis using a Google Takeout Mbox file.

Press enter or click to view image in full size
import pandas as pd
import numpy as np
import matplotlib-pyplot as plt
import seaborn as sns
import mailbox
Press enter or click to view image in full size
Press enter or click to view image in full size
# Put the mbox file into a variable
mboxfile = mailbox. mbox ('mbox.mbox')
Press enter or click to view image in full size
# Create a mailbox object
mbox = mailbox. mbox (mboxfile)
Press enter or click to view image in full size
#List of available keys in the mbox object
Press enter or click to view image in full size
# Import the CSV package
import csv
Press enter or click to view image in full size
#Create a CSV file with the required attribute
# Create a CSV file with the required attribute
with open( mailbox.csv',
'w') as csvfile:
writer = csv.writer(csvfile)
writer.writerow(I'subject', "from', 'date', 'to', "label', "thread'1) for message in mbox:
writer.writerow[messagg['subject'1, messagel'from 1, message!'date'], messagel'to'1, message|'X-Gmail-Labels'], message
Press enter or click to view image in full size
#Create a CSV file with the required attribute
with open 'mailbox! csv', 'w') as csvfile:
writer = csv.writer (csvfile)
writer.writerow(['subject', "from', 'date', 'to', 'label', "thread']) for message in mbox: writer.writerow( [message I'subject'], message['from'], message['date'], message['to'], message ['X-Gmail-Labels'], message ['X-GM-THRID']]))
Press enter or click to view image in full size
# Load the CSV file
gmail_data = pd. read_csv('/content/mailbox.csv')
Press enter or click to view image in full size
# A summary info
gmail_data. info()
Press enter or click to view image in full size
#Look at the date column
gmail_data ['date'].head ()
Press enter or click to view image in full size
# Convert the date feature to a DateTime format
gmail_data['date'] = gmail_data['date'].apply(lambda x: pd. to_datetime(x, errors='coerce', utc=True))
Press enter or click to view image in full size
Press enter or click to view image in full size
# A summary info
gmail_data. info()
Press enter or click to view image in full size
# Check for missing values in the date column
gmail_datal 'date'l.isnull().sum()
Press enter or click to view image in full size
# Read the first 5 rows
gmail_data. head ()
Press enter or click to view image in full size
Press enter or click to view image in full size
#Import regular expression
import re
Press enter or click to view image in full size
# Function to refactor the "from column
def extract_email (string):
email = re. findall(r'<(.+?)>', string)
if not email:
email = list(filter(lambda y: '@' in y, string.split()))
return email[0] if email else np.nan
# Apply function to the 'from' column
gmail_datal'from'1 = gmail_datal'from ].apply(Lambda x: extract_email(x))
Press enter or click to view image in full size
Press enter or click to view image in full size
gmail_data.head()
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
# I must apply a filter to the label column to extract inbox and sent
myemail = 'peter.okwukogu@gmail.com'
gmail_datal'label'] = gmail_data['from'].apply]lambda x: 'inbox' if x == myemail else 'sent'
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

My takeaway from this meeting :

- You can make use of Google Collaboratory for Python coding
- Google collaboratory now has AI embedded to make smart suggestions for programmers.
- You can do faster coding by using some of the suggested codes by the AI

You can be part of the next episode, which is episode 43, The registration link to the meeting. 📺 is below ⬇️

https://forms.gle/kSc6nqoQGiNNsRN18

Useful links :

https://digitaldemocracy.calmatters.org/bills/ca_202320240ab2426

https://leginfo.legislature.ca.gov/faces/billCompareClient.xhtml?bill_id=202320240AB2426&showamends=false

https://www.engadget.com/entertainment/new-california-law-will-force-companies-to-admit-you-dont-own-digital-content-203053750.html

https://www.pcgamer.com/gaming-industry/new-california-law-inspired-by-ubisoft-and-sony-requires-retailers-to-warn-consumers-that-the-digital-games-they-buy-can-be-taken-away-at-any-time/

https://www.cooley.com/news/insight/2024/2024-10-01-new-california-law-requires-disclosures-for-selling-online-digital-goods

https://www.theverge.com/2024/9/26/24254922/california-digital-purchase-disclosure-law-ab-2426

http://ca.indeed.com/career-advice/finding-a-job/chief-data-officer

http://careerfoundry.com/en/blog/data-analytics/what-is-data-analytics/

http://mitsloan.mit.edu/ideas-made-to-matter/3-business-problems-data-analytics-can-help-s
http://investopedia.com/terms/l/logistics.asp

--

--

Oyesina Oyerinde Anuoluwapo
Oyesina Oyerinde Anuoluwapo

Written by Oyesina Oyerinde Anuoluwapo

Product Manager | 1x Tableau Ambassador | AI Product Manager | Volunteer @dev_careers | Ex PM @Winnov8 | Building Afrolineo | Building Dune_Africa