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: 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 are " … Continue 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. Though … Continue 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 identify … Continue 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 library(rvest) ## Loading required package: xml2 library(xml2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union extracting … Continue 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, which … Continue 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 mtcars ## mpg cyl disp hp drat … Continue 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 TailsSecond time you will again get either 50% of Head or 50% of Tails. So, if the question now is a. … Continue 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 uses … Continue 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 highest … Continue reading Truncated Mean