Back

Sanskar

Keen Learner and Exp... • 20h

Day 7 of learning Data Science as a beginner. Topic: Indexing and Slicing NumPy arrays Since a past few days I have been learning about NumPy arrays I have learned about creating arrays from list and using other numpy functions today I learned about how to perform Indexing and Slicing on these numpy arrays. Indexing and slicing in numpy arrays is mostly similar to slicing a python list however the only major difference is that array slicing does not create a new array instead it just takes a view from the original one meaning that if you change the new sliced array its effect will also be shown in the original array. To tackle this we often use a .copy() function while slicing as this will create a new array of that particular slice. Then there are some fancy slicing where you can slice a array using multiple indices for example for array ([1, 2, 3, 4, 5, 6, 7, 8, 9]) you can also slice it like flat[[1, 5, 6]] please note that flat here is the name of the array and the output will be array([2, 6, 7]). Then there is Boolean masking which helps you to slice the array using a condition like flat[flat>8] (meaning print all those elements which are greater than 8). I must also say that I have been receiving many DM asking me for my resources so I would like to share them here as well for you amazing people. I am following CodeWithHarry's data science course and also use some modern AI tools like ChatGPT (only for understanding errors and complexities). I also use perplexity's comet browser (I have started using this recently) for brainstorming algorithms and bugs in the program I only use these tools for learning and writes my own code. Also here's my code and its result. Also here's the link of resources I use if you are searching 1. CWH course I am following: https://www.codewithharry.com/courses/the-ultimate-job-ready-data-science-course 2. Perplexity's Comet browser: https://pplx.ai/sanskar08c81705 Note: I am not forcing or selling to anyone I am just sharing my own resources for interested people.

Reply
1

More like this

Recommendations from Medial

Sanskar

Keen Learner and Exp... • 2d

Day 6 of learning Data Science as a beginner. Topic: creating NumPy arrays NumPy arrays can be created using various ways one of them is using python list and converting it into a numpy array however this is a long way here you first create a pytho

See More
Reply
10
Image Description
Image Description

Sanskar

Keen Learner and Exp... • 26d

Day 12 of learning AI/ML as a beginner. Topic: TF-IDF practical. Yesterday I shared my theory notes and today I have done the practical of TF-IDF. For the practical I reused my spam classifier code and for TF-IDF I first imported it from the sklear

See More
2 Replies
1
13
1

Prince Singh Chouhan

Front-end Developer • 1y

#Array in #javascript: Array in Javascript enables storing a collection of multiple items under a single variable name, and has members for performing common array operations. Arrays aren't primitives but are instead Array #objects with the followin

See More
Reply
2

Shubham

Fearless • 27d

🚀 Day 4/21 – My JavaScript Learning Journey Today’s focus: Arrays in JavaScript 📦 An Array is a special object in JS used to store multiple values in a single variable. 🔹 Creating Arrays let fruits = ["Apple", "Banana", "Mango"]; 🔹 Common Me

See More
Reply
3

Somen Das

Senior developer | b... • 1y

Array.reduce() is Goated the Swiss army knife Summing Numbers: Using reduce() to calculate the sum of numbers in an array. Flattening Arrays: Flattening a nested array into a single array. Grouping Objects: Grouping objects based on a speci

See More
Reply
5

Giggity

Memes,games, startup... • 1y

Do you guys use slice to borrow money I heard their interest rates are high compared to credit cards do you think slice makes sense.

Reply
2
Image Description
Image Description

Rohit Gupta

Aspiring Web Develop... • 1y

Day30 of 100daysofcodechallenge... Today I learned about Object Literal, Array of object and Math object In JavaScript. I also make a basic "Guess The Number" game.

5 Replies
8

Rohit Gupta

Aspiring Web Develop... • 1y

Day30 of 100daysofcodechallenge... Today I learned about Object Literal, Array of object and Math object In JavaScript. I also make a basic "Guess The Number" game.

Reply
4

Sanskar

Keen Learner and Exp... • 3d

Day 5 of learning Data Science as a beginner Topic: Using NumPy in Data Science Python despite having much advantages (like being beginner friendly, easy to read) is also famous for its one limitation i.e. it is slow. We don't really feel much abou

See More
Reply
9
Image Description

Kevin Patel

Learner 🍂🤎 • 1y

Some one please guide me for the road map of the data science: Skill I do have right now is Python, numpy , pandas (learning) After completing pandas, numpy and Excel can I do freelancing.. It will be so helpful if someone guides me

2 Replies
5

Download the medial app to read full posts, comements and news.