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)
- BUG: DataFrame.xs multi-index drop_level=False has no effect when level= is left at default
- DataFrameGroupBy.agg with nan results into inf HOT 1
- CI: Don't run the 'trailing-whitespace' check on markdown files.
- BUG: HDF support and `show_versions()` broken with pandas 2.2.2 and numpy 2.0
- BUG: to_sql does not populate index column with a value when using the mssql+pyodbc engine HOT 1
- BUG: to_sql does gives incorrect column name for index when callable passed in to method HOT 1
- ENH: Back pd.BooleanArray with nanoarrow HOT 1
- BUG: None becomes empty string when writing multiple columns to CSV, but double quotes "" when writing single columns HOT 2
- BUG: Unable to import `pandas` when `pyarrow` 16.1.0 is installed HOT 2
- BUG: datetime64[s] data changes when put into HDFStore HOT 1
- BUG: random crash / hang when calculating rolling sum HOT 2
- BUG: 0/0 with arrow backend is not "NA" HOT 3
- BUG: pivot_table chokes on pd.DatetimeTZDtype if there are no rows.
- DOC: "Accelerated operations" talks about speedup in obsolete versions of Pandas HOT 2
- BUG: rounding datetime in series is broken HOT 1
- BUG: DataFrame to JSON failed when it with UUID HOT 4
- ENH: merge_asof with "how” functionality
- ENH: is it possible to save a reference to a method depending on the version HOT 3
- ValueError: Usecols do not match columns, columns expected but not found: ['Col3', 'Col1'] HOT 6
- ENH: Query function to have a star * for all columns
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.