Filter interviews by
Python efficiency can be improved by optimizing code, using built-in functions, and avoiding unnecessary loops.
Use built-in functions like map, filter, and list comprehensions instead of loops for better performance.
Avoid unnecessary loops by optimizing code and reducing redundant operations.
Consider using libraries like NumPy for efficient handling of large datasets.
Profile your code using tools like cProfile to ident...
Top trending discussions
I applied via Campus Placement and was interviewed in Sep 2021. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jul 2021. There were 3 interview rounds.
I applied via Job Fair and was interviewed before Jan 2022. There were 3 interview rounds.
I applied via Referral and was interviewed in Sep 2021. There was 1 interview round.
I applied via Referral and was interviewed in Sep 2021. There was 1 interview round.
I applied via Referral and was interviewed in Mar 2021. There were 3 interview rounds.
I applied via Referral and was interviewed in Oct 2020. There were 3 interview rounds.
Repartition increases or decreases the number of partitions in a DataFrame, while coalesce only decreases the number of partitions.
Repartition shuffles the data across the network, while coalesce does not.
Repartition can be used to increase parallelism, while coalesce is used to reduce it.
Repartition can result in uneven partition sizes, while coalesce always results in equal or smaller partition sizes.
Generator produces values on the fly while iterator returns values from a collection.
Generators use 'yield' keyword to produce values one at a time.
Iterators use 'next()' method to return the next value in a collection.
Generators can be infinite while iterators are finite.
Generators are memory efficient while iterators may require more memory.
Example of generator: function* myGenerator() { yield 1; yield 2; }
Example of...
based on 1 interview experience
TCS
Accenture
Wipro
Cognizant