Skip to main content

A statistical package to manage and analyse 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.

Source Distribution

xuerui-stat-0.0.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

xuerui_stat-0.0.5-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file xuerui-stat-0.0.5.tar.gz.

File metadata

  • Download URL: xuerui-stat-0.0.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for xuerui-stat-0.0.5.tar.gz
Algorithm Hash digest
SHA256 bad964b4a38e05278a666cfbe06a69f9257fa0b03bb7c992d2bcb6a414d8685d
MD5 7805c1a9305bf0f36fe9dd8f31868d0e
BLAKE2b-256 07313c5db1b2682858ed761bb6c0f915af415cf87722567339d668948911cae6

See more details on using hashes here.

File details

Details for the file xuerui_stat-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: xuerui_stat-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for xuerui_stat-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7a750e3acece0d31dd41ca49fba1e8bdfcdf2c5453ec8babf7b11da82701436d
MD5 ea821c70306df96ab305514c82aaf781
BLAKE2b-256 e79bdbcbe88f967cd9d1252cf44d8673fc44f79f29f21ef62e8a6f1fe74f107b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page