Skip to main content

A statistical package to manage data

Project description

xuerui-stat

Build Status

An open-source Python package for using statistical tools and methods.

Source code

https://github.com/Xuerui-Yang/xuerui-stat

Installation

pip install xuerui-stat

Tools and methods

DataManager

  • Description

It is a tool to manage data files. Once a data file is imported, the tool would move it to a specified data directory automatically. And when importing data, the tool can search files in the data directory.

  • Example
from xuerui_stat import DataManager
dm = DataManager(enable=True)

This command defines a class to name the tool. For the first use, users should use the command 'set_dir(yourpath)' with your prefered path to set your data directory, for example,

dm.set_dir('/home/xuerui/Documents/Data/')

Once it is done, the directory path is printed like this:

Data directory: '/home/xuerui/Documents/Data/'

The parameter 'enable' for the class can be set as True or False. When it is True, the data file imported by the command below would be moved to the data directory automatically.

df=dm.import_data('/home/xuerui/Documents/PythonProjects/FactorAnalysis/example.csv')

Otherwise users can manually move the files using the such command:

dm.addto_dir('/home/xuerui/Documents/example.csv')

The moved data files are renamed by adding the script names, in order to identify them. For example, 'example.csv' is imported in 'my_example.py' using the above command. So it would be moved to the data directory and renamed as 'MyExample_example.csv'.

Users can also check the contents under the data directory using

dm.list_dir()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xuerui-stat, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size xuerui_stat-0.0.4-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size xuerui-stat-0.0.4.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page