Skip to content

Instantly share code, notes, and snippets.

Jani Päijänen janipaijanen

Block or report user

Report or block janipaijanen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@janipaijanen
janipaijanen / sampler_resample.py
Created Dec 5, 2018
Resample digital samples from a X (seconds) 30s (seconds)
View sampler_resample.py
import pandas as pd
import numpy as np
import os
def resample(filename, new_sample, header, index_col, usecols=None, separator=","):
df = pd.read_csv(filename, header=header, index_col=index_col, usecols=usecols, parse_dates=[0], sep=separator)
pd.set_option("display.precision", 3)
df.index = pd.to_datetime(df.index)
@janipaijanen
janipaijanen / get_dir_dups.py
Created Dec 30, 2015
Detects duplicate files with distinct extensions and file create time
View get_dir_dups.py
#!/usr/bin/env python
import os
import sys
import glob
import argparse
# Author Jani Päijänen
# Copyright (C) 2015 Jani Päijänen
# license: The MIT License (MIT).
You can’t perform that action at this time.