Day 8/30 Sometimes breaking data into smaller parts makes it much easier to understand and work with. 🔹 Problem: Separate numbers into even and odd lists 🔹 What I focused on today: Using loops and conditions together to organize data 🔹 My Thinking Process: Take a list of numbers from the user Check each number If divisible by 2 → even list Otherwise → odd list 👉 Simple condition, but very useful in data handling 🔹 Inputs I used: List of numbers 🔹 Code: numbers = list(map(int, input("Enter numbers separated by space: ").split())) even_numbers = [] odd_numbers = [] for num in numbers: if num % 2 == 0: even_numbers.append(num) else: odd_numbers.append(num) print("Even numbers:", even_numbers) print("Odd numbers:", odd_numbers) 🔹 Example: Input: 1 2 3 4 5 6 Even → [2, 4, 6] Odd → [1, 3, 5] 🔹 Key Takeaway: Breaking data into categories helps in better analysis and organization, which is a core concept in data analytics #Day8#Python #30DaysOfCode #LearningInPublic #DataAnalytics #ProblemSolving
Separate Numbers into Even and Odd Lists with Python
More Relevant Posts
-
🚀 Day 26 — Advanced Pandas (Real-World Data Workflows) 👉 Welcome to Advanced Pandas — where datasets connect, reshape, and scale. --- 🔗 1. Merging & Joining Datasets In real life, your data is rarely in one file. You often need to combine datasets: df1.merge(df2, on="User_ID", how="inner") Types of joins: - "inner" → matching records only - "left" → all from left + matches - "right" → all from right + matches - "outer" → everything 💡 Think SQL-style joins — this is critical in real systems. --- 🔄 2. Concatenation Stack datasets together: pd.concat([df1, df2], axis=0) 👉 Useful when: - Combining logs from different time periods - Merging datasets with same structure --- 📊 3. Pivot Tables Summarize data like a pro: pd.pivot_table(df, values="Sales", index="Region", aggfunc="sum") 💡 This gives you: 👉 Clean, structured summaries (like Excel pivot tables) --- ⏳ 4. Time Series Handling Many real datasets involve time: df["Date"] = pd.to_datetime(df["Date"]) df.set_index("Date", inplace=True) 👉 Now you can: - Filter by date - Resample data - Analyze trends over time --- ⚡ 5. Performance Tips As datasets grow: - Use vectorized operations (avoid loops) - Optimize data types - Work with subsets when needed Let’s keep building 🔥 #M4ACELearningChallenge #LearningInPublic
To view or add a comment, sign in
-
📊 Outliers in Data – How to Identify & Treat Them Effectively Outliers can silently distort your analysis and lead to misleading insights. Knowing how to identify and treat them is a must-have skill for every data analyst 👇 🔍 Ways to Identify Outliers 📦 1. Box Plot Quickly highlights outliers as points outside whiskers ✔️ Best for visual detection 📏 2. Z-Score / Standard Deviation Measures how far a value is from the mean ✔️ |Z| > 3 → Outlier 📊 3. Scatter Plot Shows unusual data points that don’t follow the pattern ✔️ Great for relationships 📈 4. Histogram Reveals distribution and extreme values ✔️ Helps spot skewness & gaps 🛠️ How to Treat Outliers ❌ 1. Removal (Trimming) Delete outliers if they are errors or irrelevant 🔄 2. Transformation Apply log/sqrt to reduce skewness 📉 3. Capping (Winsorization) Limit extreme values within a range 🔁 4. Imputing Replace outliers with mean/median (prefer median) 📦 5. Binning Group values into ranges to smooth data 💡 Key Insight There’s no one-size-fits-all approach—choose based on data type, distribution, and business context 🚀 Clean data + smart outlier handling = accurate insights & better decisions Ranjith Kalivarapu, Krishna Mantravadi, Upendra Gulipilli , Rakesh Viswanath, Frontlines EduTech (FLM) #DataAnalytics #DataCleaning #Outliers #MachineLearning #Statistics #Python #SQL #PowerBI #FLM
To view or add a comment, sign in
-
-
🚀 Turning Data into Decisions I recently completed a Customer Shopping Behavior Analysis project where I worked on real-world data to uncover meaningful business insights. 📊 Analyzed 3,900+ transactions to understand customer patterns 🧹 Cleaned and transformed data using Python 🗄️ Performed SQL analysis for deeper insights 📈 Built an interactive dashboard in Power BI 🔍 Key Insights: Subscription users spend significantly more Express shipping customers generate higher revenue Identified loyal, returning, and new customer segments Highlighted top-performing products and smart discount users. 💡 This project strengthened my skills in data cleaning, EDA, SQL, and visualization, and showed how data can drive real business strategies.
To view or add a comment, sign in
-
📊 Outliers in Data – The Hidden Factor Behind Wrong Insights In data analytics, a single extreme value can completely change your results. That’s where outliers come in 👇 📌 What are Outliers? Outliers are data points that differ significantly from other values in a dataset. 👉 Example: ₹30K, ₹40K, ₹50K, ₹5L 📍 ₹5L is an outlier (far from the rest) 📌 Why Outliers Matter (Effects) ⚠️ Skew the mean (average) ⚠️ Distort data distribution ⚠️ Mislead dashboards & reports ⚠️ Reduce model accuracy 💡 Even one outlier can impact your entire analysis! 📌 How to Identify Outliers 🔍 1. IQR Method IQR = Q3 − Q1 Outliers: 👉 Below Q1 − 1.5×IQR 👉 Above Q3 + 1.5×IQR 🔍 2. Z-Score Method Measures distance from mean |Z| > 3 → Outlier 🔍 3. Visualization Box Plot 📦 (most effective) Scatter Plot Histogram 📌 Box Plot – Your Best Friend A box plot quickly shows: ✔️ Median (center line) ✔️ Q1 & Q3 (box) ✔️ Whiskers (range) ✔️ Outliers (points outside) 👉 Perfect for spotting anomalies in seconds! 🚀 Pro Tip: Don’t remove outliers blindly—first understand whether they are errors or valuable insights. ✅ Final Insight: Clean data + smart outlier handling = accurate insights & better decisions Ranjith Kalivarapu, Krishna Mantravadi, Upendra Gulipilli , Rakesh Viswanath, Frontlines EduTech (FLM) #DataAnalytics #DataCleaning #Outliers #Statistics #MachineLearning #PowerBI #Python #SQL #FLM
To view or add a comment, sign in
-
-
For a long time, I thought being fast with data was a good thing. • Write the query quickly. • Build the dashboard fast. • Move to the next task. What I eventually learned is this: Speed doesn’t matter if you don’t understand what you’re looking at. Every time I rushed, I missed something: • a wrong assumption in the data • a number that didn’t make sense • a detail that changed the whole picture When I slowed down, things improved: • fewer mistakes • cleaner logic • clearer outputs Now I spend more time understanding before doing. It feels slower. But the result is better. Data work isn’t about moving fast. It’s about getting it right. #dataanalytics #datascience #sql
To view or add a comment, sign in
-
𝐃𝐚𝐭𝐚 𝐀𝐧𝐚𝐥𝐲𝐬𝐭 𝟗𝟎 — 𝐃𝐚𝐲 12: 𝐔𝐧𝐝𝐞𝐫𝐬𝐭𝐚𝐧𝐝𝐢𝐧𝐠 𝐭𝐡𝐞 𝐑𝐨𝐥𝐞 𝐨𝐟 𝐭𝐡𝐞 𝐃𝐚𝐭𝐚 𝐀𝐧𝐚𝐥𝐲𝐬t 𝐓𝐡𝐞 𝟖 𝐒𝐭𝐞𝐩𝐬 𝐨𝐟 𝐄𝐱𝐩𝐥𝐨𝐫𝐚𝐭𝐨𝐫𝐲 𝐃𝐚𝐭𝐚 𝐀𝐧𝐚𝐥𝐲𝐬𝐢𝐬 🔹Data Format, Schema & Sample: Defining the initial structure of the data and looking at small subsets to understand its layout. 🔹Understand type of Data: Identifying whether the data is numerical, categorical, or another type (like dates or text). 🔹Fill Rates: Checking for missing values or "nulls" to see how complete the dataset is. 🔹Ranges, Distribution: Examining the spread of data (min/max) and how the values are distributed. 🔹Outlier or Anomaly Detection: Identifying "extreme values" that fall far outside the normal range and could skew results. 🔹Identifying Patterns: Looking for cyclical, seasonal, or domain-specific trends in how values appear over time or categories. 🔹Data Relations: Exploring linear or non-linear relationships and checking for redundancy between variables. 🔹Hypothesis Testing: Validating assumptions or theories about the data to see if they hold up statistically. Follow Sudeesh Koppisetti for such informative content on data analytics #DataAnalytics #DataAnalysis #DataCleaning #DataQuality #DataPreprocessing #AnalyticsEngineering #BusinessAnalytics #SQL #Python #PowerBI #Tableau #DataEngineering #ETL #DataPipeline
To view or add a comment, sign in
-
Headline: Stop collecting data. Start asking better questions. 📊 We’re living in an era where we have more data than we know what to do with. But here’s the cold truth: Data is just noise until someone gives it a voice. In my experience with MAS Technical, the most successful projects didn't start with a spreadsheet. They started with a problem. Whenever I dive into a new dataset, I follow these three rules to ensure the output is actually useful: Context is King: A 10% drop in conversion sounds scary—until you realize it’s a holiday weekend and traffic quality changed. Never analyze in a vacuum. Focus on the "So What?": If your dashboard doesn't prompt an action, it’s just a digital paperweight. Every insight should end with: "Therefore, we should..." Simplify the Complexity: My job isn't to show you how complex the math is; it’s to show you how clear the solution can be. Data analysis isn't about being the smartest person in the room with a Python script or a Pivot Table. It’s about being the person who helps the team make a confident decision. How do you ensure your data leads to action rather than just more meetings? #DataAnalytics #BusinessIntelligence #DataStrategy #ProblemSolving
To view or add a comment, sign in
-
I recently worked on a Customer Churn Analysis project to understand why customers leave and how businesses can improve retention. The objective of this project was to analyze customer data and identify patterns that influence churn. Key work done in this project: • Data cleaning and exploratory data analysis • Identifying key factors influencing customer churn • Analyzing customer segments and behavior • Deriving insights to support retention strategies Tools used: Python, Pandas, Data Analysis GitHub Project: https://lnkd.in/gKGy36PN This project helped me understand how data analysis can be used to solve real business problems like customer retention. #DataAnalysis #Python #DataScience #CustomerChurn #BusinessAnalytics
To view or add a comment, sign in
-
🚀𝗦𝗤𝗟 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗦𝗲𝗿𝗶𝗲𝘀 #𝟭𝟳: 𝗣𝗜𝗩𝗢𝗧🚀 In the world of data analysis, we often deal with Tall Data (rows upon rows of repeated categories). While great for storage, it’s a nightmare for side-by-side comparisons. That’s where the SQL PIVOT clause comes in. It’s the "magic trick" of SQL that transforms your rows into columns, turning messy logs into clean, executive-ready reports. 🛠️ 𝗧𝗵𝗲 𝟯-𝗦𝘁𝗲𝗽 𝗧𝗿𝗮𝗻𝘀𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: → Identify the Pivot Point: Which column’s values (like 'Month' or 'Region') should become your new headers? → Choose your Aggregation: Do you want to SUM sales, COUNT leads, or AVG scores? → The Flip: SQL rotates the data, grouping everything by your remaining attributes (like 'Product') and filling the new columns with your calculated values. 𝗧𝗵𝗲 𝗥𝗲𝘀𝘂𝗹𝘁? ❌ From: "I can't tell which month performed better." ✅ To: Clear, horizontal trends that even a non-technical stakeholder can read in seconds. Follow Vipin Puthan for more Data and AI content ♻️ If this information is useful to you, you're welcome to... 🤝 React 🧑💻 Comment 🔄 Share #SQL #DataAnalytics #Database #CodingTips #DataVisualization #TechCommunity #DataTest #ETL #DataTestAutomation
To view or add a comment, sign in
-
-
🚀Day 97 of My 100 Days Data Analysis Journey I can now look at data… and already know what the query should look like. That’s the shift. Moving from: Writing basic queries, to structuring cleaner, more efficient logic Guessing outputs, to predicting results before execution Isolated tables, to confidently working across relationships and joins SQL is starting to feel less like syntax… and more like problem-solving. Focusing now on: Writing optimized queries, not just correct ones Understanding how joins affect data at scale Using aggregations to extract real insights, not just numbers The goal is simple: Not just to query data… but to understand it deeply. Progress is no longer loud. But it is very real. #DataAnalytics #LearningInPublic #DataSkills #100DaysOfCode
To view or add a comment, sign in
-
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development