# Path: dcs/analyze.py
# def textAnalysis(series):
# def numericalAnalysis(series):
# def dateAnalysis(series):
# def genericAnalysis(series):
# def analysisForColumn(df, column):


import numpy as np 
import pandas as pd 
import pytest
import datetime
from dcs import analyze
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["50%"] == test_series.quantile(0.50)

#test range of numbers
def test_numeric_range():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["range"] == (test_series.max() - test_series.min())

#test unique values count
def test_numeric_unique_count():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["unique_count"] == 4

#test frequencies of entries
def test_numeric_frequencies():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["frequencies"] == [(3, 3), (2, 3), (4, 1), (1, 1)]

#test mode
def test_numeric_mode():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["mode"] == [3]

#test mode count
def test_numeric_mode_count():
	test_series = df['col1']

# Path: dcs/analyze.py
# def textAnalysis(series):
# def numericalAnalysis(series):
# def dateAnalysis(series):
# def genericAnalysis(series):
# def analysisForColumn(df, column):


# Path: dcs/testing/test_analyze_module.py
import numpy as np 
import pandas as pd 
import pytest
import datetime
from dcs import analyze

	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["50%"] == test_series.quantile(0.50)

#test range of numbers
def test_numeric_range():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["range"] == (test_series.max() - test_series.min())

#test unique values count
def test_numeric_unique_count():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["unique_count"] == 4

#test frequencies of entries
def test_numeric_frequencies():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["frequencies"] == [(3, 3), (2, 3), (4, 1), (1, 1)]

#test mode
def test_numeric_mode():
	test_series = df['col1']
	test_analysis = analyze.numericalAnalysis(test_series)
	assert test_analysis["mode"] == [3]

#test mode count
def test_numeric_mode_count():
	test_series = df['col1']

	test_analysis = analyze.numericalAnalysis(test_series)