def translate(phrase): translation = “” for letter in phrase: if letter.lower() in “aeiou”: if letter.isupper(): translation = translation + “M” else: translation = translation + “m” else: translation= translation+letter return translation print(translate(input(“Enter a phrase:”)))

# Category Archives: Uncategorized

## Function in Python

A function is a reusable code for specific action. Here we are defining two different function. First one is to say hello to the user after asking their name with their age. Second function is to calculate square of a number. #defining a function #function_1 def say_hi(name, age): print(“Hello” + name + “, you areContinue reading “Function in Python”

## PCA in R

What is PCA? Principal Component Analysis is a useful technique for exploratory data analysis. It helps in better defining the variation in samples when each sample is represented by many variables or you have wide dataset. PCA reduces the dimensionality of the data set and allows you to explain the variability using fewer variables. ThoughContinue reading “PCA in R”

## Soil Health Gap

Title: Soil Health Gap: A concept to establish a benchmark for soil health management Abstract Growing calls and the need for sustainable agriculture have brought deserved attention to soil and to efforts towards improving or maintaining soil health. Numerous research and field experiments report soil health in terms of physicochemical and biological indicators, and identifyContinue reading “Soil Health Gap”

## Extracting Table from Webpage and Analyzing using R

Saurav Das March 7, 2020 Extracting the coronavirus cases from website “https://www.worldometers.info/coronavirus/” loading the library extracting the data from webpage Plotting loading ggplot2 for plotting you can see x-asis is overcrowded and we can’t really figure out what is going on, so we need to modify the plot and if you pay close attention toContinue reading “Extracting Table from Webpage and Analyzing using R”

## Hypothesis Testing

Hypothesis testing is one of the key method of inferential statistics. It is based on the idea that we can define and describe a population based on the random samples we have collected. So, if you want to define hypothesis: What is Hypothesis? It is an assumption about a population based on the sampling, whichContinue reading “Hypothesis Testing”

## Cowplot

Ever wondered if you can put multiple plots in different alignment as plot-grids in R. Cowplot is something which can do that for you. Lets make some plots and see how we can arrange them using cow plot. For plotting we are going to use inbuilt R dataset : mtcars #For plotting we will useContinue reading “Cowplot”

## P value (Part 1)

People often thinks “p-value” as “probability”, though they are related but not completely same. Lets say, You flip a coin two times: First time you will get either 50% of Head and 50% of Tails Second time you will again get either 50% of Head or 50% of Tails. So, if the question now isContinue reading “P value (Part 1)”

## Time Series Data Analysis – 1

A time series data are sequence of data which were listed in time order. Example of time series data include daily temperature, precipitation for a year or historical data showing several years month wise or day wise. Time series are mostly used in econometric, mathematical finance, weather forecasting etc. Time series analysis and forecasting usesContinue reading “Time Series Data Analysis – 1”

## Truncated Mean

Before going to Trimmed Mean or Truncated Mean, lets have a quick view of the most common terms used in descriptive and summary statistics: (There are whole lot of other terms) Mean : calculation of the central value of the dataset Median: A value lying in the midpoint of the dataset Mode: value with highestContinue reading “Truncated Mean”