Data

Combine CSV files in Python in 3 Easy Steps

Combine CSV files in Python in 3 Easy Steps

Combine CSV files in Python in 3 Easy Steps Unfortunately, with the latest update to RStudio, RWordPress has not yet been updated. In the meantime, manually posting RStudio code on how to easily combine two files in R in a few easy steps: Step 1:  Import the packages Select the folder Step 2:  Read each
+ Read More

Top Words in COVID & Corona Domain Names – Text Basics

Top Words in COVID & Corona Domain Names A few basics on determining the most popular terms in a dataframe of text. In this case, the dataframe is domain names that have been exported into a csv. For my example, I have a list of ~205,000 domain names with that has been compiled with ‘covid’
+ Read More

Forecasting Dengue Epidemics

Predicting the next Pandemic – Dengue

Predicting Dengue – DataDriven Competition Goal:  Predict Dengue outbreaks by the total number of cases by year and week for for two cities (Juan and Iquitos). Data:  U.S. Centers for Disease Control and prevention, the Department of Defense’s Naval Medical Research Unit 6 and the Armed Forces Health Surveillance Center, in collaboration with the Peruvian
+ Read More

R Coding

R Coding

Coding in R A few snipits of code that are always useful: Finding which column has NA values: unlist(lapply(dataframe , function(x) any(is.na(x))))

Machine Learning

Machine Learning: Charity Donor Analysis

Machine Learning:  Charity Donor Analysis Introduction A charitable organization wishes to develop a machine learning model to improve the cost effectiveness of their direct marketing campaigns to previous donors. The recent mailing records reflect an overall 10% response rate with an average donation of $14.50. The cost to produce and send each mail is $2.
+ Read More

Factor Analysis Path Diagram

Factor Analysis to Identify Sectors

Factor Analysis Introduction Utilizing a stock portfolio data set and a factor analysis to identify sectors in the stock market, we will transform the variables into log values to explain the variation in the log-returns of the stocks and market index.  We will begin the factor analysis by performing a Principal Factor Analysis without a
+ Read More

Python Data Types

Python Data Types

Python Data Types:  Putting Airline Data In Order The data used in the python data types example is from OpenFlights.org and contains three data files, one for airports, one for routes and one for airlines. The data are for up to January 2012. The data in the file airports.dat looks like this: 1,”Goroka”,”Goroka”,”Papua New Guinea”,”GKA”,”AYGA”,-6.081689,145.391881,5282,10,”U”,”Pacific/Port_Moresby” 2,”Madang”,”Madang”,”Papua New Guinea”,”MAG”,”AYMD”,-5.207083,145.7887,20,10,”U”,”Pacific/Port_Moresby” 3,”Mount
+ Read More