# Path: dcs/clean.py
# def fillDown(df, columnFrom, columnTo, method):
# def fillByInterpolation(df, columnIndex, method, order):
# def fillWithCustomValue(df, columnIndex, newValue):
# def fillWithAverage(df, columnIndex, metric):
# def normalize(df, columnIndex, rangeFrom=0, rangeTo=1):
# def standardize(df, columnIndex):
# def deleteRowsWithNA(df, columnIndex):
# def findReplace(df, columnIndex, toReplace, replaceWith, matchRegex):
# def generateDummies(df, columnIndex, inplace):
# def insertDuplicateColumn(df, columnIndex):
# def splitColumn(df, columnIndex, delimiter, regex=False):
# def combineColumns(df, columnHeadings, seperator="", newName="merged_column", insertIndex=0):
# def discretize(df, columnIndex, cutMode, numberOfBins):
# def executeCommand(df, command):


import numpy as np
import pandas as pd
import pytest
from dcs import clean

d = {'col1' : pd.Series([1., 2., 3., 4.], index=[0, 1, 3, 4]),
     'col2' : pd.Series([1., 2., 2., 4.], index=[0, 1, 2, 4]),
     'col3' : pd.Series([1., 2., 3., 4., 5.])}

df = pd.DataFrame(d)

#-----------------------------(fillDown)-----------------------------

#fill all columns of the dataframe
def test_fill_pad1():
	testing_df = df.copy()

# Path: dcs/clean.py
# def fillDown(df, columnFrom, columnTo, method):
# def fillByInterpolation(df, columnIndex, method, order):
# def fillWithCustomValue(df, columnIndex, newValue):
# def fillWithAverage(df, columnIndex, metric):
# def normalize(df, columnIndex, rangeFrom=0, rangeTo=1):
# def standardize(df, columnIndex):
# def deleteRowsWithNA(df, columnIndex):
# def findReplace(df, columnIndex, toReplace, replaceWith, matchRegex):
# def generateDummies(df, columnIndex, inplace):
# def insertDuplicateColumn(df, columnIndex):
# def splitColumn(df, columnIndex, delimiter, regex=False):
# def combineColumns(df, columnHeadings, seperator="", newName="merged_column", insertIndex=0):
# def discretize(df, columnIndex, cutMode, numberOfBins):
# def executeCommand(df, command):


# Path: dcs/testing/test_clean_module.py
import numpy as np
import pandas as pd
import pytest
from dcs import clean


d = {'col1' : pd.Series([1., 2., 3., 4.], index=[0, 1, 3, 4]),
     'col2' : pd.Series([1., 2., 2., 4.], index=[0, 1, 2, 4]),
     'col3' : pd.Series([1., 2., 3., 4., 5.])}

df = pd.DataFrame(d)

#-----------------------------(fillDown)-----------------------------

#fill all columns of the dataframe
def test_fill_pad1():
	testing_df = df.copy()

	clean.fillDown(testing_df, 0, 1, 'pad')