A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/24435 below:

DataFrame constructor silently ignores `dtype` keyword when values cannot be coerced · Issue #24435 · pandas-dev/pandas · GitHub

In [1]: import pandas as pd

In [2]: pd.DataFrame({'A': ['a', 'b']}, dtype=int)
Out[2]:
   A
0  a
1  b

In [3]: pd.DataFrame({'A': ['a', 'b']}, dtype=int).dtypes
Out[3]:
A    object
dtype: object

I propose that we warn that that will raise in the future.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4