A unified module of frequently used data-science modules
Project description
Find yourself doing these over and over again everytime you start a new project or notebook?
pip3 install pandas scikit-learn matplotlib numpy statmodels scipy seaborn ...
and
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import scipy
...
dslibs eases your pain with an unified module that automatically installs and imports frequently used data science modules like numpy, pandas, scikit-learn, etc. in just a sec.
Installation
pip install dslibs-baosws
Usage
Just from dslibs import *
:
>>> from dslibs import *
-------------------------------------------------------
Following modules was installed and imported by dslibs:
"numpy" as "np"
"pandas" as "pd"
"sklearn" as "skl"
"sklearn.preprocessing" as "spp"
"sklearn.model_selection" as "sms"
"sklearn.pipeline" as "spl"
"sklearn.metrics" as "smt"
"sklearn.feature_selection" as "sfs"
"matplotlib.pyplot" as "plt"
"statsmodels.api" as "sma"
"scipy" as "sp"
-------------------------------------------------------
>>> # now we can use 'pd' without 'import pandas as pd' as usual
>>> df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
>>> df
A B
0 1 4
1 2 5
2 3 6
Currently supported imports
module | alias |
---|---|
numpy | np |
pandas | pd |
sklearn | skl |
sklearn.preprocessing | spp |
sklearn.model_selection | sms |
sklearn.pipeline | spl |
sklearn.metrics | smt |
sklearn.feature_selection | sfs |
matplotlib.pyplot | plt |
statsmodels.api | sma |
scipy | sp |
seaborn | sns |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dslibs-baosws-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for dslibs_baosws-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21fc5e9b77eca641fd0ac4c106a0ea923246ef29f5dd7772126882aec2ad6526 |
|
MD5 | 9af7f6b0606e6f01d22d2e613661e5b0 |
|
BLAKE2b-256 | e2dde4129c3b90552974477fe592f870cb2749224fd31ad202713ac6dba58729 |