Tag: Python
NumPy for Data Science – Part 1
Naveen
- 0
What is NumPy Array? An array is a grid of values and it contains information about the raw data, how to locate an element, and how to interpret an element. Numpy vs Python List Advantages of using NumPy Arrays over Python List: Let’s look at the example of NumPy Array and Python List. Importance of…
Read MoreDifference between Pandas .at and .iat Function
Naveen
- 0
.at The .at and .iat index accessors are analogous to .loc and .iloc. The difference being that they will return a numpy.ndarray when pulling out a duplicate value, whereas .loc and .iloc return a Series: .iat .iat is similar to [] indexing. Because it tries to support both positional and label based indexing, I advise…
Read MoreTop 10 Pandas Functions
Naveen
- 0
1 – To Read CSV and Excel files. These Functions will be used in almost every Project, They are used to read a CSV or an excel file to pandas DataFrame format. 2 – Columns Function. When we have a big dataset with many columns it will be difficult to see all columns, hence we…
Read MoreDifference between Pandas .iloc and .loc function
Naveen
- 0
The optimized data access methods are accessed by indexing off of the .loc and .iloc attributes. These two attributes allow label-based and position-based indexing respectively. When we perform an index operation on the .iloc attribute, it does lookup based on index position (in this case pandas behaves similar to a Python list). DataFrame operation: .loc…
Read MoreDefault argument and Ternary operators in Python
Naveen
- 0
The objects like list, dict are mutable. A mutable object can change its state or contents, so whenever we use these types of mutable objects as default argument in Python functions, and execute or call the function multiple times it gives unnecessary output for each function call. The example shown below is to return the…
Read MoreDifference between List and Tuple in Python
Naveen
- 1
Lists and Tuple store one or more objects or values in a specific order. The objects stored in a list or tuple can be of any type including the nothing type defined by the None Keyword. Syntax Differences Syntax of list and tuple is slightly different. List are surrounded by square brackets [] and Tuples…
Read MorePython List Methods
Naveen
- 1
The Python List is a general data structure widely used in Python programs. They are both mutable and can be indexed and sliced. List methods 1 – append(value) Append a new element to the end of the list. 2 – extend(value) Extends the list by appending elements from another enumerable. 3 – index(value) Gets the…
Read MoreEnd to End Project Multiple Disease Detection using ML
Naveen
- 1
Project 1: Heart Disease Detection Machine Learning is used across numerous spheres around the world. The healthcare industry is no exception. Machine Learning can play an essential part in predicting presence/ absence of Locomotor diseases, Heart conditions and further. similar information, if predicted well in advance, can give important perceptivity to doctors who can also…
Read MoreArrays Functions and Functional Programming in Python
Naveen
- 2
This post is dedicated to some of the commonly used numpy function to do with arrays in python. 1 – Remove Duplicate from arrays using numpy 2 – Concatenate two arrays using numpy 3 – Get product of one/two arrays using numpy 4 – Basic maths function of Numpy Functional Programming Functional programming is a…
Read MoreArray Methods in Python
Naveen
- 0
Arrays are used to store multiple values in one single variable. Array can be handled in Python by a module named array. Type codes for different data types: These codes are used while creating an array. 1 – Creating an Array Array(data_type, value_list) 2 – Adding Element to Array Insert() is used to insert one…
Read More