Python Resources - Basic Python, ML, DataScience, BigData
2.46K subscribers
14 photos
3 files
243 links
You can find all kinds of resources related to Python, ML, DataScience and BigData.
Resources — »»» @python_resources_iGnani
Projects — »»» @python_projects_repository
Questions— »»» @python_interview_questions
Forum — »»» @python_programmers_club
Download Telegram
Forwarded from Python Questions
#interviewQuestions : 0008
List.copy() does a shallow copy of the list, but when we check their id's they point to different address? Why?

A shallow copy means constructing a new collection object and then populating it with references to the child objects found in the original.

Hence, when you check their id's they both point to different address.

check out this code
L1 = 1, 2, 3, 4

# Using copy() to create a shallow copy
L2 = L1.copy()

print(id(L1), id(L2))
>>> 2763664559240 2763665433480
In the above result, address are different, they both point to different locations.


But, the elements will be pointing to the same objects in both the lists.
Check this code:

print(id(L10), id(L20))
>>> 140703554137856 140703554137856

See the result, the elements point to the same address in memory.

#list #collection #shallowCopy
Forwarded from Python Questions
What is the output of the following code (Python 3x). Explain why?

print (type (1/2))
Anonymous Quiz
13%
class int
5%
class number
62%
class float
10%
class decimal
4%
none of the above
6%
Show me the answer
Forwarded from Python Projects
#DataWrangling : Task: 0003 ——————————————————— Continued from 0002
🎯 »»»» FORWARD IF YOU LIKE IT «««« 🎯

Task:
The categories column contains the category and a list of sub-categories. Extract them into separate columns, with names as Category suffixed by a number depending on the hierarchy.
The level of hierarchy is not the same for all, you need to handle it.


Optional Tasks:
»» Clean up the newly created Categories columns by removing additional spaces. Try using regex.


📝 ———»»» Click here for the dataset ««« ———
««« Send your solution @hbabureddy and proper solutions will be added to our Github page »»»

🔥Ready to take this challenge? 🔥

««« Click here for the Solution »»»
#python #practiceCode #samples #DataWrangling #pandas
Forwarded from Python Questions
prefix = "hello"
print(prefix, "world!")
# What is the output of the above code? Hint: There is no space in these two words.
Anonymous Quiz
45%
helloworld!
39%
hello world!
4%
world! hello
6%
world!hello
4%
None of the above
2%
Show me the answer
Forwarded from Python Questions
#interviewQuestions : 0009

Q: What can we do using Python
Q: Applications of Python
Q: Explain some of the areas where we can use Python

As mentioned before, Python is one of the most widely used language over the web.
It is known for its general purpose nature that makes it applicable in almost each domain of software development. Python as a whole can be used in any sphere of development.

To list few of them here:
○ Databases
Python provides interfaces to all major commercial databases. There by making it useful to create tools or GUI of databases, and also to use with an application which involves interacting with data.

○ Web Applications - We can use Python to develop web applications.
- It provides libraries to handle internet protocols such as HTML and XML, JSON, Email processing, request, beautifulSoup, Feedparser etc.
- There are many well-known web Frameworks such as Django, FastAPI, Pyramid, Flask etc to design and develop web based applications.

○ Desktop GUI Programming
- Python supports GUI applications that can be installed and run locally on systems like Windows, Linux, iOS etc.
- Python provides Tk GUI library to develop user interface in python based application.
- Some other useful toolkits wxWidgets, Kivy, pyqt that are useable on several platforms. The Kivy is popular for writing multitouch applications.

○ BigData and Data Science -
- Python and Big Data is an inseparable combination when we consider a programming language for big data development phase. Being Open Source, wide community, and a huge library, its best suited for Big Data projects.
- Python has become the number 1 language in Data Science projects.
- Some important packages Pandas, Numpy, SciPy, Theano, Scikit-learn, etc provide everything that a developer needs to work on Big Data and machine learning projects.
- PySpark is also an example of its use.
- Compatible with Hadoop. As Python big data is compatible, similarly Hadoop and big data are synonymous with each other. Hence, Python has been made inherently compatible with Hadoop to work with big data. Python consists of Pydoop package which helps in accessing HDFS API and also writing Hadoop MapReduce programming. Besides that Pydoop enables MapReduce programming to solve complex big data problems with minimal effort.
- An example is IBM using python, they even have a Python SDK for Watson, and they use python extensively.
- Netflix, Spotify use extensively for their recommendation and analytics engine.

○ Console Based Application - We can use Python to develop console based applications. IPython is the best example for this.

○ Multimedia Applications - Python is awesome to perform multiple tasks and can be used to develop audio and video applications.

○ Python is can also be used to develop
- 3D CAD Applications
- Enterprise Applications
- Image Processors and editors

There are several such applications which can be developed using Python
Forwarded from Python Projects
#PracticeCode: 0033
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
Input a list of Numbers(int or float). You have to print their sum unless they are danger(13 to 19). Danger number counts as 0. Number 14 and 17 are exception, there not taken as danger numbers.

Sample Run :-

input → (4,16,9)
output → 29

input → (6,8,12,14)
output → 26

GOOD LUCK!

««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #conditions
Forwarded from Python Questions
What is the output of the following program :
`print('cd'.partition('cd'))`
Anonymous Quiz
22%
('cd')
11%
('')
29%
('', 'cd', '')
10%
('cd', '')
28%
Show me the answer.
Forwarded from Python Projects
#PracticeCode: 0034
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which take input a list of numbers and print the sum of their rounded values to 10 ( if one's place is more than 5 then round to next 10 or vice versa).

Sample :-

input → 16,17,18,19,14
output → 80


GOOD LUCK!

««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #conditions
🌟

Future of Artificial Intelligence

Learn fundamentals of Artificial Intelligence from Scratch

AI Course is divided into four sections.
* The first is about the introduction of Artificial Intelligence i.e. what is AI?
* The second is How & Why AI is important to us, etc. the next section covers the relevance of AI with other technologies like Data Science, Machine Learning, Internet of Things, Virtual Reality, etc.
* The third section covers the AI Project Cycle - Problem Scoping, Data Acquisition, Data Exploration, Modelling & Evaluation.
* The last section covers a case study on Neural Network. All these sections will help you to understand AI and also help to decide your career in AI.

🔥 Free AI Course 🔥

#ArtificialIntelligence #AI #tutorial #beginners #free #Course
Python Resources - Basic Python, ML, DataScience, BigData pinned «FREE Python Training program - - - - (Click on blue text) 1. Click here to Subscribe to Training 2. Training will be provided 2 classes per week. Will share the link before hand for training. 3. If you miss the class, then the training video…»
Forwarded from Python Projects
#PracticeCode: 0035
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which you have to take input in a temperature [ In Celsius, Fahrenheit or Kelvin anyone]. And convert it into other both types and print.

{C = 5/9*(F-32) , C = K - 273, where F is Fahrenheit , C is Celsius, K is Kelvin}

Sample run :-

input → 60°C
output → 140 Fahrenheit , 333 Kelvin

GOOD LUCK!

««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #conditions
002 : FastAPI - Getting Started - Python

🌟

Getting Started with FastAPI.
This video show you on how to get started in building a simple FastAPI based RestAPI application in Python. It covers
* Install fastapi, and a ASGI server such as uvicorn
* Create our good old Hello World sample using FastAPI
* Running the application in dev mode using both through command line and PyCharm.
* Finally browsing the RestAPI that we created and also checking out the OpenAPI documents that were generated automatically for us.

#python #restapi #webFramework #FastAPI #tutorial #videotutorial
Forwarded from Python Questions
y, z = 10, 15
y *= y + z
# What is the value of y. Explain How?
Anonymous Quiz
5%
10
5%
15
15%
25
21%
115
44%
250
5%
None of the above
6%
Show me the answer
Forwarded from Python Questions
#interviewQuestions : 0011

Q: Explain the following assignment?

x, y, z = 5, 10, 15
a = b = c = 0

a = x - z
x -= z

b = y - y + z
y -= (y + z)
print(b, y)

15 -15

Notice
the result in the here, it should be 15 and 15, but the value of y is -15.
Do you know why?
When the statements are evaluated, the statements are evaluated from left to right. But before that, anything within the braces are executed first.

So, in the first statement, since there is no curly braces, it first executes y - y and the result + z, this becomes 15
In the second statement, the expression within curly braces is executed, which is y + z, which comes to 50 and then now the expression becomes y -= 50, which is same as y = y- 50, hence the result -15.
Forwarded from Python Questions
#interviewQuestions : 0012

What is PYTHONPATH?

PYTHONPATH is an environment variable can be set, to add additional directories where python will look for modules and packages.

Whenever a module is imported, PYTHONPATH is also looked up to check for the presence of the imported modules in various directories. The interpreter uses it to determine which module to load.

For most installations, you should not set these variables since they are not needed for Python to run. Python knows where to find its standard library.

The only reason to set PYTHONPATH is to maintain directories of custom Python libraries that you do not want to install in the global default location (i.e., the site-packages directory).
Forwarded from Python Questions
#interviewQuestions : 0013

What are python modules?

Python modules are files containing Python code.

A module can define functions, classes and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use.
Forwarded from Python Questions
x = [3,1,2]
What is the output of x [1:-1]? Explain Why?
Anonymous Quiz
13%
3,1,2
13%
3,1
30%
1,2
28%
1
10%
None of the above
6%
Show me the answer
Forwarded from Python Questions
Which of the following programming styles does Python support?
Anonymous Quiz
7%
Functional
9%
Procedural
30%
Object Oriented
51%
All of the above
4%
Show me the answer
Forwarded from Python Questions
print('abcefd'.replace('cd', '12'))

#What is the output of the above code?
Anonymous Quiz
28%
ab1ef2
14%
ab12ef12
4%
ab1efd
3%
abcef2
22%
abcefd
21%
None of the above
7%
Show me the answer