Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Jiten Miglani

Jiten Miglani

★ JanBask Expert
Share
12Questions
10Answers
19.7KViews on questions

JavaScript switch vs if - What's the difference?

JavaScript switch vs if semantics. Personally, in a situation like this, I make a judgement call as to which one will be easier to understand. What influences the ease of understanding, again, in my opinion, is maybe a combination of several factors: Collectively exhaustive - Is there a specific way to handle each…

Java

Answered Oct 6, 2022 · 1.1K Views Read answer →

How to run multiple commands in docker at once

In order to run multiple commands in docker, use /bin/bash -c with a semicolon ; docker run image /bin/bash -c "cd /some/path; python a.py"In this case, the second command (python) will be executed only if the first command (cd) returns no error or exit status. To avoid this use && instead of ; (semi-colon) docker run…

Devops

Answered Jul 27, 2021 · 1.8K Views Read answer →

How to enable the permission when SSHH access to AWS EC2 instance

There could be different reasons why your verification is coming up short. As a matter of first importance, ensure that you are utilizing the right key pair. I realize it sounds unimportant however it could really be an issue in cases like these. Check if the username that you are utilizing is right or not. For…

AWS

Answered Feb 22, 2021 · 1.4K Views Read answer →

You have a banking account on google pay, while making payment to one ofyour friends, payment gateway crashes. What would be severity and priority ofthis bug.

As we know the severity of the bug is defined based on the impact the bug is causing in the application and the risks it poses to the business flow and costs associated with it. However, priority has its own business values, if this is frequent used feature or not and how much is its need in current scenario. This…

QA Testing

Answered Jan 29, 2020 · 1.5K Views Read answer →

How to apply a function on a particular column in a dataframe?

A for loop allows us to iterate over an object (such as a vector) and we can then perform and execute blocks of codes for every loop we go through. The syntax for a for loop is: for (temporary_variable in object){ # Execute some code at every loop } For loop can be applied in many real world cases when a proper…

Data Science

Answered Jan 15, 2020 · 1.6K Views Read answer →

A user is learning python/numpy and wondering if anyone can help with doing a linear regression curve equation in python/numpy?

We can use the following code implement a linear regression curve in Python import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit #just some data. Make sure that they are stored in an array, not in a list!!!: y = np.array([1, 3.8, 7.1, 10.6, 12.6]) x = np.array([0, 1, 2, 3, 4]) #make…

Data Science

Answered Jan 15, 2020 · 2.0K Views Read answer →

State the assumptions of linear regression.

Linear regression has the following assumptions, failing which the linear regression model does not hold true: The dependent variable should be a linear combination of independent variables There should not be any autocorrelation in error terms The errors should have zero mean and should be normally distributed There…

Data Science

Answered Jan 15, 2020 · 1.5K Views Read answer →

More members from the Data Science community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.