r/DataScienceSimplified • • Jan 07 '20

How do I best visualize this data?

4 Upvotes

I'm helping my son with his 7th grade science project. We've had a good deal of fun with our experiments with Solar Arrays and charging 12 volt UPS batteries! But, I am not sure how to interpret the data!

Our original hypothoesis was that the lenght of the wire between the solar panel and the battery would effect the voltage charge the most. We do NOT think that was true!

We just need to get some good charts out of the data to show something that we learned!


r/DataScienceSimplified • • Nov 27 '19

Concepts of Data Preprocessing in Data Science

4 Upvotes

Data is truly considered a resource in today’s world. As per the World Economic Forum, by 2025 we will be generating about 463 exabytes of data globally per day! But is all this data fit enough to be used by machine learning algorithms? How do we decide that?

Read my article to find out: https://towardsdatascience.com/data-preprocessing-concepts-fa946d11c825


r/DataScienceSimplified • • Nov 23 '19

We helped get engineers into Google & Amazon. Now we want to help data scientists

4 Upvotes

Hey I’m Krish & for the past 6 months, we’ve been working on Exchange: we connect data science job seekers with professional data scientists who help them land their dream data science job. 

We were trying to solve a problem for ourselves. I got accepted into a software engineering interview training bootcamp conducted by Facebook in NYC. We had Facebook engineers train us on everything required to excel at interviews - algorithms, solving tough questions, communication during an interview and so on. I felt like every tech job seeker should have access to something like that but on a one on one level. So, we started Exchange but for Software Engineering initially. 

We ended up placing Engineering Managers at Google and also entry level engineers at companies like Amazon. Then, over the summer, we were contacted by a ton of data science job seekers who asked for the same model but focused on Data Science. So, we went ahead and started DataTrain - Exchange's Data Science wing. Check us out here.

Thanks for your time 😄


r/DataScienceSimplified • • Jun 06 '19

100 page machine learning book

Thumbnail
themlbook.com
4 Upvotes

r/DataScienceSimplified • • Mar 13 '19

*New Data science collaborative learning and project group* - Welcome!

4 Upvotes

Hello!

We are looking for new members to join “Geeks on Fire”, a new SLACK group that encourages, nurtures and enhances growth in data science and related technical skills. We understand most people are busy and have lives but that’s okay – we are in the same boat! If you are interested in active participation and in contributing to the good of the whole (as well as each individual), send me a message and we can go from there.

Geeks on Fire Main Focus points:

- Security (group is working on active projects)

- Data science* (group is working on active projects)

- Programming

- IoT (Raspberry etc) (group is working on active projects)

- Linux, Microsoft Windows, Mac OS and other OS

- System Administration

- Mentorship

- Community Learning

- Hands on projects (projects are excellent for your portfolios)

If you are interested, please send me a message!


r/DataScienceSimplified • • Nov 02 '18

How many taking the Harvard edx PH125 course?

4 Upvotes

r/DataScienceSimplified • • May 28 '18

The Significance of Poisson Distribution in Statistics | Hashtag Statistics

Thumbnail hashtagstatistics.com
4 Upvotes

r/DataScienceSimplified • • Mar 21 '18

A free data literacy resource for people who frequently work with data.

Thumbnail
geckoboard.com
4 Upvotes

r/DataScienceSimplified • • Jun 09 '17

Handy libraries for everyone

4 Upvotes

If you are new to the field these [libraries] (http://bigdata-madesimple.com/ten-handy-python-libraries-for-aspiring-data-scientists/) might be helpful to get to know.


r/DataScienceSimplified • • Jan 29 '26

Is it over for me?

3 Upvotes

For context, i'm beginning my Data Science course for college in September. Hopefully i'm not asking in the wrong place either.

Last year, I began finding interest in DS, and started making some research. Doing so, i've begun to see roadmaps, and realized that I'm not matching the level that they're recommending (Calculus, Linear Algebra). I could see myself attempting to learn it alongside coding languages using tutorials, or perhaps take a class whilst in college, but i'm afraid i'll be much further behind.

I've been seeing so many people recommend me to begin with SQL or R, whilst others tell me to begin with Statistics, Calculus and machine learning. Both can be learnt with time and genuine effort, but i'm stressed about the time I have, thinking it wont be enough, and that it'll be a waste of money on my mom's part. Its been weighing me down heavily, and its all I can think about, wether i'm in class or in bed.

Despite such, I still want to try my best, as I feel like that's all I can do.

I wanted to know if there was any advice, or perhaps words that could be shared? I'm open ears and willing to take any sort of help and criticism. Also let me know if i'm being foolish. Anything is truly appreciated.


r/DataScienceSimplified • • May 02 '25

What’s your strategy for cleaning up messy customer data without losing key signals?

3 Upvotes

Working with CRM and marketing datasets lately, and it’s a mess—duplicates, inconsistent formats, typos. I'd love to hear how others approach cleaning and standardizing customer data, especially while retaining business-critical information like segmentation or LTV.


r/DataScienceSimplified • • Apr 22 '25

SQL in 1.5h for beginners (Certificated Provided)

3 Upvotes

Hey folks,

If you’re just getting started with SQL and want something actually useful, I’ve put together a new Udemy course: “SQL for Newbies: Hands-On SQL with Industry Best Practices”

I built this course to cut through the noise, it’s focused on real-world skills that data analysts actually use on the job. No hour-long lectures full of theory. Just straight-up, practical SQL.

What’s inside:

  • Short & clear lessons that get to the point

  • Real examples from real work (I’m a full-time Data Analyst)

  • Advanced topics like window functions & pipeline structure explained simply

  • Tons of hands-on practice

Whether you're totally new to SQL or just want a practical refresher, this course was made with you in mind.

Here’s a promo link if you want to check it out (discount already applied):

https://www.udemy.com/course/sql-for-newbies-hands-on-sql-with-industry-best-practices/?couponCode=20F168CAD6E88F0F00FA

If you do take it, I’d really appreciate your honest feedback!


r/DataScienceSimplified • • Jan 26 '25

New to Data Analysis – Looking for a Guide or Buddy to Learn, Build Projects, and Grow Together!

3 Upvotes

Hey everyone,

I’ve recently been introduced to the world of data analysis, and I’m absolutely hooked! Among all the IT-related fields, this feels the most relatable, exciting, and approachable for me. I’m completely new to this but super eager to learn, work on projects, and eventually land an internship or job in this field.

Here’s what I’m looking for:

  1. A buddy to learn together, brainstorm ideas, and maybe collaborate on fun projects. OR

  2. A guide/mentor who can help me navigate the world of data analysis, suggest resources, and provide career tips. Advice on the best learning paths, tools, and skills I should focus on (Excel, Python, SQL, Power BI, etc.).

I’m ready to put in the work, whether it’s solving case studies, or even diving into datasets for hands-on experience. If you’re someone who loves data or wants to learn together, let’s connect and grow!

Any advice, resources, or collaborations are welcome! Let’s make data work for us!

Thanks a ton!


r/DataScienceSimplified • • Jan 19 '25

Help me guys I am an amateur

3 Upvotes

Guys I am new to data science and I am starting with ibm coursera course so what is a piece of advice you can give me..... and if anyone can provide me with a roadmap including websites to solve problems... thx for the help


r/DataScienceSimplified • • Dec 08 '24

I need recommendations about certification exams

3 Upvotes

I am currently a computer science student and I want to give a certification exam in Data science.

I wish to do my master's in the same field in the United States and boost my profile with this certification.

Can anyone recommend me any exams which are around $100 and hopefully with student discounts?


r/DataScienceSimplified • • Nov 28 '24

Building a Python Script to Automate Inventory Runrate and DOC Calculations – Need Help!

3 Upvotes

Hi everyone! I’m currently working on a personal project to automate an inventory calculation process that I usually do manually in Excel. The goal is to calculate Runrate and **Days of Cover (DOC)**Building a Python Script to Automate Inventory Runrate and DOC Calculations – Need Help!
Hi everyone! I’m currently working on a personal project to automate an inventory calculation process that I usually do manually in Excel. The goal is to calculate Runrate and Days of Cover (DOC) for inventory across multiple cities using Python. I want the script to process recent sales and stock data files, pivot the data, calculate the metrics, and save the final output in Excel.

Here’s how I handle this process manually:

  1. Sales Data Pivot: I start with sales data (item_id, item_name, City, quantity_sold), pivot it by item_id and item_name as rows, and City as columns, using quantity_sold as values. Then, I calculate the Runrate: Runrate = Total Quantity Sold / Number of Days.

  2. Stock Data Pivot: I do the same with stock data (item_id, item_name, City, backend_inventory, frontend_inventory), combining backend and frontend inventory to get the Total Inventory for each city: Total Inventory = backend_inventory + frontend_inventory.

  3. Combine and Calculate DOC: Finally, I use a VLOOKUP to pull Runrate from the sales pivot and combine it with the stock pivot to calculate DOC: DOC = Total Inventory / Runrate.

Here’s what I’ve built so far in Python:

  • The script pulls the latest sales and stock data files from a folder (based on timestamps).

  • It creates pivot tables for sales and stock data.

  • Then, it attempts to merge the two pivots and output the results in Excel.

 

However, I’m running into issues with the final output. The current output looks like this:

|| || |Dehradun_x|Delhi_x|Goa_x|Dehradun_y|Delhi_y|Goa_y| |319|1081|21|0.0833|0.7894|0.2755|

It seems like _x is inventory and _y is the Runrate, but the DOC isn’t being calculated, and columns like item_id and item_name are missing.

Here’s the output format I want:

|| || |Item_id|Item_name|Dehradun_inv|Dehradun_runrate|Dehradun_DOC|Delhi_inv|Delhi_runrate|Delhi_DOC| |123|abc|38|0.0833|456|108|0.7894|136.8124| |345|bcd|69|2.5417|27.1475|30|0.4583|65.4545|

Here’s my current code:
import os

import glob

import pandas as pd

 

## Function to get the most recent file

data_folder = r'C:\Users\HP\Documents\data'

output_folder = r'C:\Users\HP\Documents\AnalysisOutputs'

 

## Function to get the most recent file

def get_latest_file(file_pattern):

files = glob.glob(file_pattern)

if not files:

raise FileNotFoundError(f"No files matching the pattern {file_pattern} found in {os.path.dirname(file_pattern)}")

latest_file = max(files, key=os.path.getmtime)

print(f"Latest File Selected: {latest_file}")

return latest_file

 

# Ensure output folder exists

os.makedirs(output_folder, exist_ok=True)

 

# # Load the most recent sales and stock data

latest_stock_file = get_latest_file(f"{data_folder}/stock_data_*.csv")

latest_sales_file = get_latest_file(f"{data_folder}/sales_data_*.csv")

 

# Load the stock and sales data

stock_data = pd.read_csv(latest_stock_file)

sales_data = pd.read_csv(latest_sales_file)

 

# Add total inventory column

stock_data['Total_Inventory'] = stock_data['backend_inv_qty'] + stock_data['frontend_inv_qty']

 

# Normalize city names (if necessary)

stock_data['City_name'] = stock_data['City_name'].str.strip()

sales_data['City_name'] = sales_data['City_name'].str.strip()

 

# Create pivot tables for stock data (inventory) and sales data (run rate)

stock_pivot = stock_data.pivot_table(

index=['item_id', 'item_name'],

columns='City_name',

values='Total_Inventory',

aggfunc='sum'

).add_prefix('Inventory_')

 

sales_pivot = sales_data.pivot_table(

index=['item_id', 'item_name'],

columns='City_name',

values='qty_sold',

aggfunc='sum'

).div(24).add_prefix('RunRate_')  # Calculate run rate for sales

 

# Flatten the column names for easy access

stock_pivot.columns = [col.split('_')[1] for col in stock_pivot.columns]

sales_pivot.columns = [col.split('_')[1] for col in sales_pivot.columns]

 

# Merge the sales pivot with the stock pivot based on item_id and item_name

final_data = stock_pivot.merge(sales_pivot, how='outer', on=['item_id', 'item_name'])

 

# Create a new DataFrame to store the desired output format

output_df = pd.DataFrame(index=final_data.index)

 

# Iterate through available cities and create columns in the output DataFrame

for city in final_data.columns:

if city in sales_pivot.columns:  # Check if city exists in sales pivot

output_df[f'{city}_inv'] = final_data[city]  # Assign inventory (if available)

else:

output_df[f'{city}_inv'] = 0  # Fill with zero for missing inventory

output_df[f'{city}_runrate'] = final_data.get(f'{city}_RunRate', 0)  # Assign run rate (if available)

output_df[f'{city}_DOC'] = final_data.get(f'{city}_DOC', 0)  # Assign DOC (if available)

 

# Add item_id and item_name to the output DataFrame

output_df['item_id'] = final_data.index.get_level_values('item_id')

output_df['item_name'] = final_data.index.get_level_values('item_name')

 

# Rearrange columns for desired output format

output_df = output_df[['item_id', 'item_name'] + [col for col in output_df.columns if col not in ['item_id', 'item_name']]]

 

# Save output to Excel

output_file_path = os.path.join(output_folder, 'final_output.xlsx')

with pd.ExcelWriter(output_file_path, engine='openpyxl') as writer:

stock_data.to_excel(writer, sheet_name='Stock_Data', index=False)

sales_data.to_excel(writer, sheet_name='Sales_Data', index=False)

stock_pivot.reset_index().to_excel(writer, sheet_name='Stock_Pivot', index=False)

sales_pivot.reset_index().to_excel(writer, sheet_name='Sales_Pivot', index=False)

final_data.to_excel(writer, sheet_name='Final_Output', index=False)

 

print(f"Output saved at: {output_file_path}")

 

Where I Need Help:

  • Fixing the final output to include item_id and item_name in a cleaner format.

  • Calculating and adding the DOC column for each city.

  • Structuring the final Excel output with separate sheets for pivots and the final table.

I’d love any advice or suggestions to improve this script or fix the issues I’m facing. Thanks in advance! 😊 for inventory across multiple cities using Python. I want the script to process recent sales and stock data files, pivot the data, calculate the metrics, and save the final output in Excel.

Here’s how I handle this process manually:

  1. Sales Data Pivot: I start with sales data (item_id, item_name, City, quantity_sold), pivot it by item_id and item_name as rows, and City as columns, using quantity_sold as values. Then, I calculate the Runrate: Runrate = Total Quantity Sold / Number of Days.

  2. Stock Data Pivot: I do the same with stock data (item_id, item_name, City, backend_inventory, frontend_inventory), combining backend and frontend inventory to get the Total Inventory for each city: Total Inventory = backend_inventory + frontend_inventory.

  3. Combine and Calculate DOC: Finally, I use a VLOOKUP to pull Runrate from the sales pivot and combine it with the stock pivot to calculate DOC: DOC = Total Inventory / Runrate.

Here’s what I’ve built so far in Python:

  • The script pulls the latest sales and stock data files from a folder (based on timestamps).

  • It creates pivot tables for sales and stock data.

  • Then, it attempts to merge the two pivots and output the results in Excel.

 

However, I’m running into issues with the final output. The current output looks like this:

|| || |Dehradun_x|Delhi_x|Goa_x|Dehradun_y|Delhi_y|Goa_y| |319|1081|21|0.0833|0.7894|0.2755|

It seems like _x is inventory and _y is the Runrate, but the DOC isn’t being calculated, and columns like item_id and item_name are missing.

Here’s the output format I want:

|| || |Item_id|Item_name|Dehradun_inv|Dehradun_runrate|Dehradun_DOC|Delhi_inv|Delhi_runrate|Delhi_DOC| |123|abc|38|0.0833|456|108|0.7894|136.8124| |345|bcd|69|2.5417|27.1475|30|0.4583|65.4545|

Here’s my current code:
import os

import glob

import pandas as pd

 

## Function to get the most recent file

data_folder = r'C:\Users\HP\Documents\data'

output_folder = r'C:\Users\HP\Documents\AnalysisOutputs'

 

## Function to get the most recent file

def get_latest_file(file_pattern):

files = glob.glob(file_pattern)

if not files:

raise FileNotFoundError(f"No files matching the pattern {file_pattern} found in {os.path.dirname(file_pattern)}")

latest_file = max(files, key=os.path.getmtime)

print(f"Latest File Selected: {latest_file}")

return latest_file

 

# Ensure output folder exists

os.makedirs(output_folder, exist_ok=True)

 

# # Load the most recent sales and stock data

latest_stock_file = get_latest_file(f"{data_folder}/stock_data_*.csv")

latest_sales_file = get_latest_file(f"{data_folder}/sales_data_*.csv")

 

# Load the stock and sales data

stock_data = pd.read_csv(latest_stock_file)

sales_data = pd.read_csv(latest_sales_file)

 

# Add total inventory column

stock_data['Total_Inventory'] = stock_data['backend_inv_qty'] + stock_data['frontend_inv_qty']

 

# Normalize city names (if necessary)

stock_data['City_name'] = stock_data['City_name'].str.strip()

sales_data['City_name'] = sales_data['City_name'].str.strip()

 

# Create pivot tables for stock data (inventory) and sales data (run rate)

stock_pivot = stock_data.pivot_table(

index=['item_id', 'item_name'],

columns='City_name',

values='Total_Inventory',

aggfunc='sum'

).add_prefix('Inventory_')

 

sales_pivot = sales_data.pivot_table(

index=['item_id', 'item_name'],

columns='City_name',

values='qty_sold',

aggfunc='sum'

).div(24).add_prefix('RunRate_')  # Calculate run rate for sales

 

# Flatten the column names for easy access

stock_pivot.columns = [col.split('_')[1] for col in stock_pivot.columns]

sales_pivot.columns = [col.split('_')[1] for col in sales_pivot.columns]

 

# Merge the sales pivot with the stock pivot based on item_id and item_name

final_data = stock_pivot.merge(sales_pivot, how='outer', on=['item_id', 'item_name'])

 

# Create a new DataFrame to store the desired output format

output_df = pd.DataFrame(index=final_data.index)

 

# Iterate through available cities and create columns in the output DataFrame

for city in final_data.columns:

if city in sales_pivot.columns:  # Check if city exists in sales pivot

output_df[f'{city}_inv'] = final_data[city]  # Assign inventory (if available)

else:

output_df[f'{city}_inv'] = 0  # Fill with zero for missing inventory

output_df[f'{city}_runrate'] = final_data.get(f'{city}_RunRate', 0)  # Assign run rate (if available)

output_df[f'{city}_DOC'] = final_data.get(f'{city}_DOC', 0)  # Assign DOC (if available)

 

# Add item_id and item_name to the output DataFrame

output_df['item_id'] = final_data.index.get_level_values('item_id')

output_df['item_name'] = final_data.index.get_level_values('item_name')

 

# Rearrange columns for desired output format

output_df = output_df[['item_id', 'item_name'] + [col for col in output_df.columns if col not in ['item_id', 'item_name']]]

 

# Save output to Excel

output_file_path = os.path.join(output_folder, 'final_output.xlsx')

with pd.ExcelWriter(output_file_path, engine='openpyxl') as writer:

stock_data.to_excel(writer, sheet_name='Stock_Data', index=False)

sales_data.to_excel(writer, sheet_name='Sales_Data', index=False)

stock_pivot.reset_index().to_excel(writer, sheet_name='Stock_Pivot', index=False)

sales_pivot.reset_index().to_excel(writer, sheet_name='Sales_Pivot', index=False)

final_data.to_excel(writer, sheet_name='Final_Output', index=False)

 

print(f"Output saved at: {output_file_path}")

 

Where I Need Help:

  • Fixing the final output to include item_id and item_name in a cleaner format.

  • Calculating and adding the DOC column for each city.

  • Structuring the final Excel output with separate sheets for pivots and the final table.


r/DataScienceSimplified • • Nov 08 '24

Starting a masters in DS in January. What material can I prep with?

3 Upvotes

r/DataScienceSimplified • • Nov 01 '24

Need an advice...

3 Upvotes

Hi community, I'm a grad student in Data Science in the USA. I gotta enroll my Spring courses in the upcoming weeks. I wanna built domain knowledge through electives and projects. So, which domain would you suggest, where I could explore and align my DS learning into a particular domain?
Any suggestions are appreciated! Thanks in advance.


r/DataScienceSimplified • • Sep 29 '24

Is a physics degree good for DS

3 Upvotes

I will study quantum, nuclear, and particle physics in uni (sofia uni), knowing that I want to work in data science. I already work at BI company (not as a data scientist), and can easily make my way through the ds team there.

The PHY major seems really interesting to me, offering math/cos courses there too with the major. I will not also spend too much on education, and will have the chance to spend my money on more important things.

I am learning data science on my own, and thought a physics degree would be good for ds jobs maybe.

Please advise on that.

Thank you.


r/DataScienceSimplified • • Sep 12 '24

Need advice

3 Upvotes

Hi guys in need of bit of an advice. MY background is into hospitality management snd now I have come to conclusion that I do not want to be in this industry. I have been working as a recruitment consultant just working so I can do as I wish. I came accross a lot of data in my work and started to learn more about this and I got curious and it led me to find Data Science field. I wanna transition into it..so how can I start? Meaning where should I start?


r/DataScienceSimplified • • Aug 29 '24

"Embracing Change: Seeking Advice on My Journey into Data Analytics"

3 Upvotes

I’m excited (and a bit nervous) to share that I’m transitioning into a new chapter in my career, moving from retail and marketing into data analytics. After some time spent reflecting and upskilling, I’m ready to dive in—but I know there’s a lot to learn.If you’ve walked this path before, I’d love to hear your advice or guidance. Your insights would mean a lot as I navigate this new journey.Thank you in advance for your support!#CareerTransition #DataAnalytics #Learning #Mentorship


r/DataScienceSimplified • • Aug 21 '24

recommendations for types of courses to take in grad school? topics

3 Upvotes

I did my undergrad in a completely different area (no background in data science)

I'll be starting a masters in data science very soon (the program that I'm entering requires no prior background knowledge of data science) and I'm currently selecting elective courses that would help me build my skills for data science

Based on my research so far, I think the programs that data scientists use are mostly R, Python, and SQL (correct me if I'm wrong)

I was wondering if any of the following topics/courses would be useful:

Adopting DevOps for Large-Scale Information Systems

Explainability & Fairness for Responsible Machine Learning

Designing Sustainable and Resilient Machine Learning Systems with MLOps

Machine Learning with Applications in Python

Data Analytics with Microsoft Azure

Also, besides R, Python, and SQL, should aspiring data scientists learn any other programs/languages/software in grad school? Is learning DevOps or MLOps useful for getting a job in the data science industry?

Thanks!


r/DataScienceSimplified • • Jul 24 '24

Thesis in Data Science

3 Upvotes

Hi, I am a student of masters in Data Science in Germany, and I work with a company as an iOS developer. My idea was to combine these two things as my master thesis because I plan to work full-time as an iOS developer after graduating.
Thesis idea: To make an intelligent car maintenance system, which would tell the user, when to change tyres, oil filters etc. The target market would have been people with relatively older cars, as that is when people take their cars to independent auto workshops rather than the official ones (as the warranty runs out). The good thing is my company is an auto-related company, so they are on board with the idea.
The problem is the data needed to make the intelligent feature as an iOS app. I have contacted around 5-6 companies so far and have not received any helpful reply from any of them.
Do you have any ideas or suggestions? I wish to start my thesis as soon as I can.
The companies I have already reached out to are: TecAlliance, Webfleet, Route42, FleetBoard, Rio, YellowFox.
They have either said no it never got back to me, even though I sent follow-up emails twice or thrice. I am kind of running out of ideas here. follow-up


r/DataScienceSimplified • • Jul 14 '24

Data Science Transition

3 Upvotes

Hello- I am currently in a PhD program and learning that data analysis is my favorite part of the work I do. Has any one successfully transitioned from a non mathematics PhD/academia route to data science? What would I need to do? (Certificate programs, etc.?)


r/DataScienceSimplified • • Jul 11 '24

Data science boot camps

3 Upvotes

I am making a career change from governance to data science via a data science bootcamp. I am thinking of using General Assembly. I do have a degree and I also have no technical experience with coding. Is General Assemby a good bootcamp for beginners? Or can you recommend better ones if any? The gole is to become an advanced data scientist in 6 months.