GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KeepFloyding/DSToolboxpy: A data science toolbox useful for reading, manipulating and analyzing data using python.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
Add
Add
 
 
DSToolbox.egg-info
DSToolbox.egg-info
 
 
DSToolbox
DSToolbox
 
 
dist
dist
 
 
test
test
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

DSToolboxpy

A data science toolbox useful for reading, manipulating and analyzing data using python.

It contains an easy and quick manner of transforming clickstream data into a machine learning format with the prepareTimesSeries function. It also has an sklearn classifier can be easily tested through k-folds cross-validation using the testClassifier function.

Getting started

Prerequisites

  • pandas
  • numpy
  • sklearn

Installing

The library can be added as a module to python using

python setup.py install 

Testing

Now you should be able to import the library with

import DSToolbox

Running

A sample dataset has been provided that contains user_ids, clickstream actions, dates of the events and their registration date. Running testToolbox.py will import the dataset, manipulate it and save it as csvs after running each function.

python testToolbox.py

First the users and their actions in the dataset will be grouped by discretised event legs.

dt = 60*60*24*30 # Each event leg represents 30 days
start_date = 'registration_date'
date_feature = 'date_of_event'
group_array = ['user_id','event_leg','event_type']

df_grp = prepare_df(df,start_date, dt, date_feature, group_array)

Then the data will be manipulated again to assig the actions in each event_leg as seperate features.

month_array = [0,1,2]
type_operation = 'append' # other option is to sum
df_new = prepare_time_series(df_grp, month_array, type_operation)

This can then be used with the testClassifier function to test a machine learning algorithm on that dataset.

About

A data science toolbox useful for reading, manipulating and analyzing data using python.

Topics

data-science-toolboxpythonsetuptoolssklearn

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.