rhiever / datacleaner Goto Github PK
View Code? Open in Web Editor NEWA Python tool that automatically cleans data sets and readies them for analysis.
License: MIT License
A Python tool that automatically cleans data sets and readies them for analysis.
License: MIT License
It would be nice to be able to pass in an encoding type to use something more than the default label encoding. I have a library: category encoders, which does that, and it can be easily added in with one extra flag. (suggested -en for encoder).
I have a not-yet-tested implementation of this at:
https://github.com/wdm0006/datacleaner
Which just carries over the available encoders:
A deeper look into the differences between these can be found here and here.
Let me know if you think that fits into your project, or if there is any change I can make to my implementation or the library, I can work on those and send a PR.
In the immediate future, datacleaner will:
See this tweet chain for more ideas.
If anyone has more ideas, please add them here.
[provide general introduction to the issue and why it is relevant to this repository]
CI/CD doens't work at all
I suggest that editting travis.yml without virtual
I tested in my repo. I got success from it
edit travis.yml without virtual
[describe what you currently experience from this process, and thereby explain the bug]
[not necessary, but suggest fixes or reasons for the bug]
name of issue
screenshot[if relevant, include a screenshot]
Thanks for this awesome tool! I was wondering if we could include some sanity checking/cleanup for badly behaved text (e.g. all those invalid unicode characters). Could be as simple as running ftfy on all text columns. I'd volunteer to integrate this into datacleaner.
Send PR to update @bboe's server.
Add a easy-to-use handle that saves the mapping between features values to their categorical label.
Hi there,
datacleaner seems quite interesting. Cleaning Data is always annoying and tools are missing.
If I have seen it right, you impute NaNs. You could also consider to replace +/- Infs by Max/Min of the respective column.
We have implemented that In the tsfresh impute function. Maybe you can use some of the code there.
Hi
I find a issue in datacleaner. When I use this tool to deal with my dataset, it generates a index out of bounds error. I check the code and I find this row in function autoclean:
input_dataframe[column].fillna(input_dataframe[column].mode()[0], inplace=True)
when a col has no same value, the mode will return empty, so the index will out of bound.
I think this is the reason, could you confirm it. Thank you!
The try except block starting at line 76 of datacleaner.py raises a ValueError in Python 2.7 when the column is of type object (string). Since the Python 2.7 icon is displayed in the repo markdown, can you clarify which Python version is supported?
when running the script,
my_data = pd.read_csv('test2.csv', sep=',',encoding='utf-8')
my_clean_data = autoclean(my_data)
my_data.to_csv('my_clean_data.csv')
getting error
'<' not supported between instances of 'str' and 'int'
Test both autoclean() and autoclean_cv(), each with 5 test cases:
Simulated data, no NaNs, all columns numerical
Simulated data, with NaNs, all columns numerical
Simulated data, no NaNs, some columns with strings
Simulated data, with NaNs, some columns with strings
Real data (adult.csv.gz) with some NaNs placed into it
Write a wrapper for datacleaner that allows it to act as a scikit-learn transformer. See the scikit-learn docs for information on the transformer API.
You have some datasets that have % values strings e.g. '95%',''82%' etc.
It would be great if this could be automatically dealt with. On Pandas dataframe this can be done with
df = df.replace('%','',regex=True).astype('float')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.