Comments (2)
I agree with @ericmjl here.
pyjanitor aims to be a general purpose library that extends the Pandas API. Users should be able to add pyjanitor to their current workflow without breaking their existing code.
If pyjanitor starts patching pandas functions/methods, it could quickly cause trouble for users and prevent them from using pyjanitor.
Also, I don't think you need a sophisticated tool like pyjanitor to fix your problems. Because read_csv
, read_excel
are just functions, you could create a small module that enforces the signature you want:
import pandas as pd
from functools import wraps
@wraps(pd.read_excel)
def read_excel(parameters_that_you_want):
# Only include the parameters you want in the function signature.
return pd.read_excel(parameters_that_you_want)
Perhaps this would solve your problem until Pandas addresses the issue?
from pyjanitor.
Is it possible to "fix" pandas methods using pyjanitor? ... If janitor accept the PR to override the default behavior of read methods, then it will be great.
@shantanuo I'd be inclined to disagree with doing that. The purpose behind pyjanitor is to provide the convenience APIs that pandas did not provide. If there's a bug that's inside pandas, then that should be raised with the pandas devs, as you did already.
from pyjanitor.
Related Issues (20)
- [INFRA] Switch over to pyproject.toml
- Support efficient json extraction within a pandas column HOT 1
- [ENH] implement full numba version of a single conditional_join
- deprecation warning for pivot_longer HOT 1
- Return only matching indices for `conditional_join`
- [ENH] cython a subset of _range_join_indices and equi join HOT 4
- extend `col` powers for index selection HOT 1
- dtype conversion on index
- `conditional_join` fails on mac for `equi-join` and numba HOT 1
- Outdated version in conda forge HOT 1
- extend `row_to_names` to support multiindex
- `sheet_name` not required in jn.xlsx_table
- Problems with equalities in contional_join HOT 18
- Make clean_names() compatible with polars and geopandas dataframes HOT 6
- implement similar functions for polars HOT 4
- perf slower when `sort_by_appearance` is True for `pivot_longer`
- Question about "tabyl()" in pyjanitor HOT 1
- sub-repo for performance optimisations in a lower level language
- add `strip_whitespace` to `clean_names` function
- importing janitor fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyjanitor.