Python Interview Questions Set - 17 Released
Intermediate Level How to merge two DataFrames on a common column? df1 = pd.DataFrame({"A":[1,2,3], "B":[11,12,13]}) df2 = pd.DataFrame({"A":[1,2,4], "B":[21,22,23]}) new_df = pd.merge(df1, df2, how='inner', on='A') new_df A B_x B_y 0 1 11 21 1 2 12 22 How to apply a function to each element...
Python Interview Questions Set - 14 Released
Intermediate Level Print First 10 natural numbers using while loop cnt = 0 while (cnt := cnt + 1)
Python Interview Questions Set - 13 Released
Intermediate Level Display numbers divisible by 5 from a list lst_ = list(np.random.randint(10,99,100)) def isDivByFive(num): return (num%5==0) for n in lst_: if isDivByFive(n): print(n, end=",") Create the dictionary with number and its square which is leas then or equal to given number. ur_input = int(input("Enter...
Python Interview Questions Set - 8 Released
Intermediate Level Sum of Digits Program in Python Aproch 01 ur_input = input("Enter Some Number: ") # return str total_ = 0 for i in ur_input: total_ += int(i) print(total_) Aproch 02 ur_input = int(input("Enter Some Number: ")) # return type is int total_ =...
Python Interview Questions Set - 7 Released
Intermediate Level Importing Required Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns np.random.seed(42) Python Program to Check Whether a Given Number is Even or Odd using Recursion def checkEvenOdd(num): if num < 2: return (num%2 ==...
Python Interview Questions Set - 4 Released
Intermediate Level What are comments and how can you add comments in Python? Comments in Python refer to a piece of text intended for information. It is especially relevant when more than one person works on a set of codes. It can be used to...
Python Interview Questions Set - 2 Released
Intermediate Level What is PYTHON PATH? PYTHONPATH is an environment variable that allows the user to add additional folders to the sys.path directory list for Python. In a nutshell, it is an environment variable that is set before the start of the Python interpreter. What...
Python Interview Questions Set - 1 Released
Intermediate Level What is Python? Python was created and first released in 1991 by Guido van Rossum. It is a high-level, general-purpose programming language that emphasizes code readability and provides easy-to-use syntax. Several developers and programmers prefer using Python for their programming needs due to...
Tableau Interview Questions Set - 6 Released
Intermediate Level What is Tableau Data Server? Tableau data server is a feature provided with Tableau server which allows its user to store Data extracts on one centralized server which can be accessed by different users to draw some visualization and analysis on data based...
Tableau Interview Questions Set - 5 Released
Intermediate Level Name the different products Tableau offer? Tableau offers products like – - Desktop - Reader - Public - Server How to get the current date and time? We get the current date and time by using the NOW () function. What are the...
Recent Comments
Archives
Categories
Categories
- Inspiration (1)
- Style (1)
- Technical Blog (18)
- Tips & tricks (2)
- Uncategorized (21)