Just Published: My NumPy Blog Series (Part 1) Most beginners learn NumPy… but still struggle to actually use it. So I decided to break it down in the simplest way possible 👇 Part 1: NumPy Basics & Array Creation In this blog, I’ve covered: • How NumPy arrays really work • Creating 1D, 2D, 3D arrays • Important functions like arange, linspace, zeros, ones • Understanding shape, size, dtype (the stuff people usually skip) • Why changing data types can improve performance This is not just theory — I’ve added examples and explanations the way I wish I had when I started. Blog Link : - https://lnkd.in/d4_BfSzg #NumPy #Python #DataScience #MachineLearning #Coding #LearnInPublic
NumPy Basics & Array Creation Tutorial
More Relevant Posts
-
🚀 Day 04 of My Machine Learning Journey: NumPy Data Types (dtypes) Today, I learned about NumPy data types (dtypes), which define the type of elements stored in an array. I explored: ✅ Different types like int, float, and bool ✅ How NumPy uses fixed data types for better performance ✅ Why choosing the right dtype helps optimize memory usage Understanding dtypes helps write more efficient and faster code — an important step for Machine Learning. 💡 #MachineLearning #NumPy #Python #LearningJourney #Day04
To view or add a comment, sign in
-
-
Subsets: Classic Backtracking Template Generate all 2^n subsets via binary decision tree — include or exclude each element. Base case: index exceeds array length, save current subset copy. Backtracking: add element, recurse, remove element (backtrack), recurse again. Critical Detail: subset.copy() is essential — without it, all results reference same list, causing incorrect final output. Each subset snapshot must be independent. Time: O(2^n) | Space: O(n) recursion #Backtracking #Subsets #DecisionTree #DeepCopy #Recursion #Python #AlgorithmDesign #SoftwareEngineering
To view or add a comment, sign in
-
-
NumPy Practice – Day 2 🚀 Continued my NumPy learning and practiced: 🔹 Reshaping & flattening arrays 🔹 Stacking arrays (horizontal & vertical) 🔹 Random number generation 🔹 Finding unique & duplicate elements 🔹 Sorting & moving averages Key learning: NumPy enables efficient array operations and reduces the need for loops. 📒 Sharing my Google Colab notebook: https://lnkd.in/gs3aZcfY #Python #NumPy #DataScience #LearningInPublic
To view or add a comment, sign in
-
📌 Problem: Reverse Vowels of a String 💡 Approach: Used the two-pointer technique to reverse only the vowels in the string. Initialize one pointer at the beginning and one at the end. Move both pointers inward until vowels are found, then swap them. Continue this process until both pointers meet. ⚙️ Key Insight: Use a set for fast vowel lookup (O(1)) Two-pointer approach avoids extra space for storing vowels separately ⏱️ Time Complexity: O(n) 📦 Space Complexity: O(n) (due to string → list conversion) 📚 What I learned: Efficient string manipulation using two pointers Optimizing lookups with hash sets #LeetCode #DSA #Algorithms #Coding #ProblemSolving #Python #TwoPointers #InterviewPreparation #CodingJourney
To view or add a comment, sign in
-
Are Matplotlib abstractions helping—or getting in the way? Let’s ask Cameron Riddell! In this week’s Cameron’s Corner, Cameron looks at the layers of abstraction in Matplotlib and how they shape the way we write plotting code. While higher-level interfaces can make things faster to write, they can also obscure what’s actually happening underneath. Learn: ✅ How Matplotlib’s abstraction layers are structured ✅ When higher-level APIs simplify your workflow ✅ Why dropping down a level can sometimes give you more control Read here: https://lnkd.in/gVJKvErq Do you prefer high-level plotting tools or working closer to Matplotlib’s core? Let us know how you approach it 👇 #Python #Matplotlib #DataViz #CameronsCorner
To view or add a comment, sign in
-
-
🚀 Day 11 of #500DaysOfCoding Today’s problem: Maximum Average Subarray I I used the sliding window technique to solve this problem and reduced the time complexity to O(n). 💡 Key Takeaways: - Precompute the sum of the first window - Slide the window by adding the next element and removing the previous one - Track the maximum sum → compute the maximum average. On to Day 12 🔥 #CodingJourney #DataStructures #Algorithms #Python #ProblemSolving
To view or add a comment, sign in
-
-
Just wrapped an energizing session teaching data loaders for local LLMs in Python! We mapped out Text Loaders pulling PDFs, JSONs, CSVs, and TXTs into strings or key-value trees via #LangChain, Image Loaders converting to binary formats, plus #OCR magic on pure-image #PPTX files using Python’s pptx loader—and Pandas crushing CSV/XLS flows. Total game-changer for building rock-solid AI pipelines! Tell me how do you think about texts on whiteboard? #Python #AI #LocalLLM #whiteboardKnowledge
To view or add a comment, sign in
-
-
In my latest video, I break down the math behind logistic regression, derive the gradient descent update rules, explore vectorized implementations, and finally, code it from scratch in Python. Perfect for anyone preparing for ML interviews or looking to strengthen their foundations in machine learning. Video Link: youtu.be/cT_U40djaww Channel Link: youtube.com/@datatrek
To view or add a comment, sign in
-
🎬 Building my first Movie Recommendation System. Explored a dataset with 1.4M+ rows and found heavy missing values in key features like genres, keywords, and overview. My approach: dropping missing data to keep recommendations meaningful. What would you do? Drop or fill? Let me know your thoughts in the comments 👇 #MachineLearning #Python #DataScience
To view or add a comment, sign in
-
Working with messy real-world datasets taught me one thing: The cleaning step takes longer than the actual analysis. So I spent the last few weeks building dfdoctor - an open-source Python library that audits your DataFrame, tells you what’s wrong, and helps you fix it systematically instead of manually. It helps you quickly understand what’s broken and what to fix first. The part I'm most proud of: 5 correlation methods (including Kendall τ and Phi-k) implemented from scratch in pure numpy - no scipy dependency anywhere. 164 tests. CI passing across Python 3.9–3.12. Try it: pip install dfdoctor https://lnkd.in/e-ChV6mE #Python #OpenSource #DataEngineering #Pandas #EDA #DataScience
To view or add a comment, sign in
-
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