<commit_before>"""
Create OHLC - groups data to X minutes

JonV / May 16 2015
"""

import sys
import pandas

def main(filename):
    df = pandas.read_csv(filename, parse_dates={'DateTime'}, index_col='DateTime', names=['Tid', 'Dealable', 'Pair', 'DateTime', 'Buy', 'Sell'], 
                         date_parser=parse)
    
    #del df['Tid']
    #del df['Dealable']
    #del df['Pair']<commit_msg>post4 source code<commit_after>"""
Create OHLC - groups data to X minutes

JonV / May 16 2015
"""

import sys
import pandas

def main(filename):
    df = pandas.read_csv(filename, parse_dates={'DateTime'}, index_col='DateTime', names=['Tid', 'Dealable', 'Pair', 'DateTime', 'Buy', 'Sell'], 
                         date_parser=parse)
    
    del df['Tid']
    del df['Dealable']
    del df['Pair']
{'fraction_non_alphanumeric': 0.1618569636135508, 'fraction_numerical': 0.01631116687578419, 'mean_word_length': 3.3135135135135134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3669209', 'n_tokens_mistral': 283, 'n_tokens_neox': 258, 'n_words': 71}