Skip to content

Instantly share code, notes, and snippets.

View nalvared's full-sized avatar

Néstor Álvarez Díaz nalvared

View GitHub Profile
@nalvared
nalvared / CsvMapReduce.java
Last active February 25, 2024 10:36
Hadoop MapReduce CVS example
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
@nalvared
nalvared / ExamplePlotHelper.md
Created October 31, 2017 17:41
This is a minimal utility for creating a "beauty" printing of seaborn pairplot function. It remove self comparisons and split lines into an specified number of items

PlotHelper

Import library

The plothelper.py file should be in the same folder

import numpy as np
import pandas as pd
from plothelper import PlotHelper as PH