Epython Lab
6.44K subscribers
660 photos
31 videos
104 files
1.22K links
Welcome to Epython Lab, where you can get resources to learn, one-on-one trainings on machine learning, business analytics, and Python, and solutions for business problems.

Buy ads: https://telega.io/c/epythonlab
Download Telegram
Python-Programming.pdf
4.9 MB
Tkinter GUI Programming by Example

@epythonlab
👍1
Python Programming for Absolute Beginners

You don't need previous knowledge of Computer Programming

You can start learning now from scratch.


Subscribe to the YouTube Channel and receive all video tutorials from the scratch

https://youtu.be/cChdA70hnaU
Also find resources at https://t.me/epythonlab
👍2
#ChallengeAbsoluteDifference #Algorithm #DataStructure #Loop #Array

Consider an array of integers, arr[0], arr[1] ... arr[n-1]. We define the absolute difference between two elements, arr[i] and arr[j] (where i != j), to be the absolute value of arr[i] - arr[j]

Given an array of integers, find and print the minimum absolute difference between any two elements in the array. For example, given the array arr=[-2, 2, 4] we can create 3 pairs of numbers: [-2, 2], [-2, 4], and [2, 4] . The absolute differences for these pairs are |(-2)-2|=4, |(-2)-4|=6, and |2-4|=2 . The minimum absolute difference is 2.

Q: Define the minimumAbsoluteDifference function which has a parameter arr. It should return an integer that represents the minimum absolute difference between any pair of elements.
Post your solution @EPYTHONLABBOT
👍1
You can find all available books from files.
Epython Lab
#ChallengeAbsoluteDifference #Algorithm #DataStructure #Loop #Array Consider an array of integers, arr[0], arr[1] ... arr[n-1]. We define the absolute difference between two elements, arr[i] and arr[j] (where i != j), to be the absolute value of arr[i]…
Many of you are participated in this challenge. Thanks for your participation.
Your answers are correct and accepted.
But you always find the most efficient and optimized algorithm to solve problems.

Here is the efficient solution for the challenge. Share it.

def minimumAbsoluteDifference(arr):
arr.sort()
result = []
for i in range(len(arr)-1):
result.append(abs(arr[i+1]-arr[i]))
return sorted(result)[0]
Epython Lab pinned Deleted message
My choices are #Jupyter and #VSCode. Because interesting tools for data science.
Learn Array with Numpy especially vectors in Numpy, ndarray, mathematical functions with examples

Prerequisite : Python basic concepts, matplotlib to plot the examples

What is Numpy?

NumPy
is the fundamental package for scientific computing in Python. It is a Python library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices), and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistical operations, random simulation and much more.

Why is NumPy Fast?

Vectorization describes the absence of any explicit looping, indexing, etc., in the code - these things are taking place, of course, just “behind the scenes” in optimized, pre-compiled C code.

Link: https://numpy.org/devdocs/user/whatisnumpy.html
@epythonlab
Quick start link: https://numpy.org/devdocs/user/quickstart.html
#DataScience #DataMuging #WebScrapping
Data Munging is important to get and process messy and complicated data into structured and tabular format.

We will learn more about.
Change color of the DataFrame Cell
PRACTICAL_DATA_ANALYSIS.pdf
9.8 MB
Practical Data Analysis

@epythonlab