Comments (8)
do you have pandas-stubs
installed?
this only reproduces without pandas-stubs
for me
from pandas.
Would need to adjust
Line 681 in 10f31f6
to include Mapping
.
from pandas.
do you have
pandas-stubs
installed?this only reproduces without
pandas-stubs
for me
I don't have pandas-stubs. You are right, works fine with stubs. I still think this should not raise error even without stubs given that pandas-stubs describes itself as "narrower than what is possibly allowed by pandas".
from pandas.
It is completely conicidential that this works and nobody should rely on it. Closing
from pandas.
It is completely conicidential that this works and nobody should rely on it. Closing
@Dr-Irv pandas-stubs currently declares that any dict
would be okay
from pandas.
It is completely conicidential that this works and nobody should rely on it. Closing
@phofl So should we test for a dict
and then raise an Exception?
from pandas.
It is completely conicidential that this works and nobody should rely on it. Closing
@Dr-Irv pandas-stubs currently declares that any
dict
would be okay
I checked via Blame and I put that in there at some point without a test. I just tested removing dict
from Axes
in pandas-stubs and it works fine, so maybe we should remove it??
from pandas.
I don't have pandas-stubs. You are right, works fine with stubs. I still think this should not raise error even without stubs given that pandas-stubs describes itself as "narrower than what is possibly allowed by pandas".
Yes, but the typing in the pandas source is much wider than what is actually allowed by pandas. Also, type checking is faster using the stubs than using the pandas source.
from pandas.
Related Issues (20)
- ENH: GroupBy.transform should accept similar arguments to GroupBy.agg HOT 5
- BUG: Using `Series.diff()` on a Series with Periods on Windows shows an overflow error HOT 1
- BUG: Series.str.split broken with pyarrow strings and regex argument HOT 3
- DOC: Style extensibility doc links to invalid ecosystem page
- BUG: get_level_values() in a MultiIndex returns DatetimeIndex without frequency even though the index level has a frequency (and unique values). HOT 4
- BUG: incorrect assumption of full-name month format when "May" is initial month HOT 20
- BUG: `np.where` called with `ps.Series` returns `np.array` instead of `pd.Series` HOT 5
- BUG: groupby with as_index=False drops groupings when names collide HOT 1
- DOC: Inconsistent and incomplete documentation of `pandas.eval` HOT 2
- DOC: Mailing list section has no link to subscribe to the mailing list HOT 2
- BUG: groupby.apply requires func to be hashable. raises unhashable type error otherwise HOT 2
- DOC: Incorrect Source Link HOT 3
- DOC: Missing Source Links
- RLS: 2.2.3
- ENH: Infer column dtype when constructing object with pd.NA HOT 2
- BUG: pytest fails for conda editable installation in Mac HOT 3
- BUG: NonExistentTimeError with resample("7D"), but only when DST day is not part of the date range HOT 2
- BUG: pandas.Grouper should not accept args and kwargs and should have permanent arguments HOT 1
- PERF: df.unstack() is 500 times slower since pandas>=2.1 HOT 5
- BUG: Losing information when handling of `NoneType`s in `pd.json_normalize` 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 pandas.