Data Analysis with Python and PySpark (Jonathan Rioux).pdf
14.6 MB
Data Analysis with Python and PySpark PDF
๐4๐1
Which programming language should I use on interview?
Companies usually let you choose, in which case you should use your most comfortable language. If you know a bunch of languages, prefer one that lets you express more with fewer characters and fewer lines of code, like Python or Ruby. It keeps your whiteboard cleaner.
Try to stick with the same language for the whole interview, but sometimes you might want to switch languages for a question. E.g., processing a file line by line will be far easier in Python than in C++.
Sometimes, though, your interviewer will do this thing where they have a pet question thatโs, for example, C-specific. If you list C on your resume, theyโll ask it.
So keep that in mind! If youโre not confident with a language, make that clear on your resume. Put your less-strong languages under a header like โWorking Knowledge.โ
Companies usually let you choose, in which case you should use your most comfortable language. If you know a bunch of languages, prefer one that lets you express more with fewer characters and fewer lines of code, like Python or Ruby. It keeps your whiteboard cleaner.
Try to stick with the same language for the whole interview, but sometimes you might want to switch languages for a question. E.g., processing a file line by line will be far easier in Python than in C++.
Sometimes, though, your interviewer will do this thing where they have a pet question thatโs, for example, C-specific. If you list C on your resume, theyโll ask it.
So keep that in mind! If youโre not confident with a language, make that clear on your resume. Put your less-strong languages under a header like โWorking Knowledge.โ
๐12โค6
Robust_Python_Write_Clean_and_Maintainable_Code_Patrick_Viafore.pdf
7.2 MB
Robust Python: Write Clean and Maintainable Code PDF
๐7๐1
Best python github Repositories very helpful for beginners -
1. scikit-learn : https://github.com/scikit-learn
2. Flask : https://github.com/pallets/flask
3. Keras : https://github.com/keras-team/keras
4. Sentry : https://github.com/getsentry/sentry
5. Django : https://github.com/django/django
6. Ansible : https://github.com/ansible/ansible
7. Tornado : https://github.com/tornadoweb/tornado
1. scikit-learn : https://github.com/scikit-learn
2. Flask : https://github.com/pallets/flask
3. Keras : https://github.com/keras-team/keras
4. Sentry : https://github.com/getsentry/sentry
5. Django : https://github.com/django/django
6. Ansible : https://github.com/ansible/ansible
7. Tornado : https://github.com/tornadoweb/tornado
๐6
What are python namespaces?
๐A Python namespace ensures that object names in a program are unique and can be used without any conflict. Python implements these namespaces as dictionaries with โname as keyโ mapped to its respective โobject as valueโ.
Letโs explore some examples of namespaces:
๐Local Namespace consists of local names inside a function. It is temporarily created for a function call and gets cleared once the function returns.
๐Global Namespace consists of names from various imported modules/packages that are being used in the ongoing project. It is created once the package is imported into the script and survives till the execution of the script.
๐Built-in Namespace consists of built-in functions of core Python and dedicated built-in names for various types of exceptions.
๐A Python namespace ensures that object names in a program are unique and can be used without any conflict. Python implements these namespaces as dictionaries with โname as keyโ mapped to its respective โobject as valueโ.
Letโs explore some examples of namespaces:
๐Local Namespace consists of local names inside a function. It is temporarily created for a function call and gets cleared once the function returns.
๐Global Namespace consists of names from various imported modules/packages that are being used in the ongoing project. It is created once the package is imported into the script and survives till the execution of the script.
๐Built-in Namespace consists of built-in functions of core Python and dedicated built-in names for various types of exceptions.
๐8
Inheritance in Python with an example?
๐As Python follows an object-oriented programming paradigm, classes in Python have the ability to inherit the properties of another class. This process is known as inheritance. Inheritance provides the code reusability feature. The class that is being inherited is called a superclass or the parent class, and the class that inherits the superclass is called a derived or child class. The following types of inheritance are supported in Python:
๐Single inheritance: When a class inherits only one superclass
๐Multiple inheritance: When a class inherits multiple superclasses
๐Multilevel inheritance: When a class inherits a superclass, and then another class inherits this derived class forming a โparent, child, and grandchildโ class structure
๐Hierarchical inheritance: When one superclass is inherited by multiple derived classes
๐As Python follows an object-oriented programming paradigm, classes in Python have the ability to inherit the properties of another class. This process is known as inheritance. Inheritance provides the code reusability feature. The class that is being inherited is called a superclass or the parent class, and the class that inherits the superclass is called a derived or child class. The following types of inheritance are supported in Python:
๐Single inheritance: When a class inherits only one superclass
๐Multiple inheritance: When a class inherits multiple superclasses
๐Multilevel inheritance: When a class inherits a superclass, and then another class inherits this derived class forming a โparent, child, and grandchildโ class structure
๐Hierarchical inheritance: When one superclass is inherited by multiple derived classes
๐10
What are the common built-in data types in Python?
Python supports the below-mentioned built-in data types:
Immutable data types:
๐Number
๐String
๐Tuple
Mutable data types:
๐List
๐Dictionary
๐set
Python supports the below-mentioned built-in data types:
Immutable data types:
๐Number
๐String
๐Tuple
Mutable data types:
๐List
๐Dictionary
๐set
๐10๐ฅ7โค1