Posts

Showing posts with the label Placeholder

HBASE Vs. RDBMS Top Differences You can Unlock Now

Image
HBASE in the Big data context has a lot of benefits over RDBMS. The listed differences below make you understandable why HBASE is popular in Hadoop (or Bigdata) platform. Let us check one by one quickly. HBASE Vs. RDBMS Differences Random Accessing HBase handles a large amount of data that is store in a distributed manner in the column-oriented format while RDBMS is systematic storage of a database that cannot support a random manner for accessing the database. Database Rules RDBMS strictly follow Codd's 12 rules with fixed schemas and row-oriented manner of database and also follow ACID properties. HBase follows BASE properties and implement complex queries. Secondary indexes, complex inner and outer joins, count, sum, sort, group, and data of page and table can easily be accessible by RDBMS. Storage From small to medium storage application there is the use of RDBMS that provide the solution with MySQL and PostgreSQL whose size increase with concurrency and performance.  Codd'

Python placeholder '_' Top Ideas to Use it Perfectly

Image
In Python, you can call the underscore ( _ ) operator placeholder. The prime purpose is you can mask the variable that you don't use in a function. Python placeholder  Purpose of Placeholder The purpose is you can mask a few variables. This makes your code is readable. So in the future, you can replace placeholders with variable names you want. How to Use Placeholder in a Function I have explained in three steps how to use placeholder correctly. Code to create a Function Logic to use placeholder Logic to use two placeholders 1. Code to create a Function. def function_that_returns_multiple_values(x):        return x*2, x*3, x+1        for i in range(0,5):             square, cube, added_one = function_that_returns_multiple_values(i)             print(square, cube) In the above logic, in print, it returns only two variables. Therefore you can mask the third variable with an underscore.  Thus your code looks beautiful. 2. Logic to use Placeholder def function_that_returns_multiple_v