
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
BUG: Series constructor with nullable unsigned integer dtype fails with large number Β· Issue #38798 Β· pandas-dev/pandas
Description:
xref #38746 The following runs fine: In [30]: s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="uint64") In [31]: s Out[31]: 0 18446744073709551614 1 1 dtype: uint64 but with the equivalent extension dtype the constructor throws: In [...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Dating & Relationships
- Careers
Content Management System {π}
What CMS is github.com built with?
Github.com relies on WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
dtype, copy, issue, arw, member, typeerror, values, added, nullable, return, array, data, jorisvandenbossche, commented, sign, bug, large, dtypeuint, uint, repospandaspandascorearraysintegerpy, safecastvalues, index, subarr, mask, related, numpy, constructors, pandas, issues, projects, constructor, pdseriesnpiinfonpuintmax, extension, copycopy, cast, raisecastfailure, float, blocker, fangchenli, raspbianautopush, commit, references, fix, archspecific, upstream, xfails, navigation, pull, requests, actions,
Topics {βοΈ}
mask ~/repos/pandas/pandas/core/arrays/integer ~/repos/pandas/pandas/core/arrays/integer ~/repos/pandas/pandas/core/construction ~/repos/pandas/pandas/core/series cb1cf36 raspbian-autopush added 7c0ed15 raspbian-autopush added nullable extension arrays personal information bug enable arm64 build comment metadata assignees numpy apparently converts equivalent extension dtype triage issue type projects cast array data projects milestone nullable eas series constructor large integers float array safely cast uint64 array mask = coerce_to_array runs fine constructor throws recent call support downcasting loosing precision milestone relationships equivalent float64 equivalent {values series rule 'safe' err typeerror original pr github copy=false index uint64 activity raise_cast_failure=true na related dtype=dtype copy=copy = pd mask pd typeerror _from_sequence numpy
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:BUG: Series constructor with nullable unsigned integer dtype fails with large number
articleBody:xref #38746
The following runs fine:
``` python
In [30]: s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="uint64")
In [31]: s
Out[31]:
0 18446744073709551614
1 1
dtype: uint64
```
but with the equivalent extension dtype the constructor throws:
```python
In [29]: s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="UInt64")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/repos/pandas/pandas/core/arrays/integer.py in safe_cast(values, dtype, copy)
100 try:
--> 101 return values.astype(dtype, casting="safe", copy=copy)
102 except TypeError as err:
TypeError: Cannot cast array data from dtype('float64') to dtype('uint64') according to the rule 'safe'
The above exception was the direct cause of the following exception:
TypeError Traceback (most recent call last)
<ipython-input-29-7fde9ec5cff9> in <module>
----> 1 s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="UInt64")
~/repos/pandas/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath)
339 data = data.copy()
340 else:
--> 341 data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
342
343 data = SingleBlockManager.from_array(data, index)
~/repos/pandas/pandas/core/construction.py in sanitize_array(data, index, dtype, copy, raise_cast_failure)
485
486 if dtype is not None:
--> 487 subarr = _try_cast(data, dtype, copy, raise_cast_failure)
488 else:
489 subarr = maybe_convert_platform(data)
~/repos/pandas/pandas/core/construction.py in _try_cast(arr, dtype, copy, raise_cast_failure)
594 # SparseDtype does not
595 array_type = dtype.construct_array_type()._from_sequence
--> 596 subarr = array_type(arr, dtype=dtype, copy=copy)
597 return subarr
598
~/repos/pandas/pandas/core/arrays/integer.py in _from_sequence(cls, scalars, dtype, copy)
307 cls, scalars, *, dtype=None, copy: bool = False
308 ) -> "IntegerArray":
--> 309 values, mask = coerce_to_array(scalars, dtype=dtype, copy=copy)
310 return IntegerArray(values, mask)
311
~/repos/pandas/pandas/core/arrays/integer.py in coerce_to_array(values, dtype, mask, copy)
204 values = safe_cast(values, dtype, copy=False)
205 else:
--> 206 values = safe_cast(values, dtype, copy=False)
207
208 return values, mask
~/repos/pandas/pandas/core/arrays/integer.py in safe_cast(values, dtype, copy)
106 return casted
107
--> 108 raise TypeError(
109 f"cannot safely cast non-equivalent {values.dtype} to {np.dtype(dtype)}"
110 ) from err
TypeError: cannot safely cast non-equivalent float64 to uint64
```
author:
url:https://github.com/arw2019
type:Person
name:arw2019
datePublished:2020-12-30T06:22:36.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/38798/pandas/issues/38798
context:https://schema.org
headline:BUG: Series constructor with nullable unsigned integer dtype fails with large number
articleBody:xref #38746
The following runs fine:
``` python
In [30]: s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="uint64")
In [31]: s
Out[31]:
0 18446744073709551614
1 1
dtype: uint64
```
but with the equivalent extension dtype the constructor throws:
```python
In [29]: s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="UInt64")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
~/repos/pandas/pandas/core/arrays/integer.py in safe_cast(values, dtype, copy)
100 try:
--> 101 return values.astype(dtype, casting="safe", copy=copy)
102 except TypeError as err:
TypeError: Cannot cast array data from dtype('float64') to dtype('uint64') according to the rule 'safe'
The above exception was the direct cause of the following exception:
TypeError Traceback (most recent call last)
<ipython-input-29-7fde9ec5cff9> in <module>
----> 1 s = pd.Series([np.iinfo(np.uint64).max-1, 1], dtype="UInt64")
~/repos/pandas/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath)
339 data = data.copy()
340 else:
--> 341 data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
342
343 data = SingleBlockManager.from_array(data, index)
~/repos/pandas/pandas/core/construction.py in sanitize_array(data, index, dtype, copy, raise_cast_failure)
485
486 if dtype is not None:
--> 487 subarr = _try_cast(data, dtype, copy, raise_cast_failure)
488 else:
489 subarr = maybe_convert_platform(data)
~/repos/pandas/pandas/core/construction.py in _try_cast(arr, dtype, copy, raise_cast_failure)
594 # SparseDtype does not
595 array_type = dtype.construct_array_type()._from_sequence
--> 596 subarr = array_type(arr, dtype=dtype, copy=copy)
597 return subarr
598
~/repos/pandas/pandas/core/arrays/integer.py in _from_sequence(cls, scalars, dtype, copy)
307 cls, scalars, *, dtype=None, copy: bool = False
308 ) -> "IntegerArray":
--> 309 values, mask = coerce_to_array(scalars, dtype=dtype, copy=copy)
310 return IntegerArray(values, mask)
311
~/repos/pandas/pandas/core/arrays/integer.py in coerce_to_array(values, dtype, mask, copy)
204 values = safe_cast(values, dtype, copy=False)
205 else:
--> 206 values = safe_cast(values, dtype, copy=False)
207
208 return values, mask
~/repos/pandas/pandas/core/arrays/integer.py in safe_cast(values, dtype, copy)
106 return casted
107
--> 108 raise TypeError(
109 f"cannot safely cast non-equivalent {values.dtype} to {np.dtype(dtype)}"
110 ) from err
TypeError: cannot safely cast non-equivalent float64 to uint64
```
author:
url:https://github.com/arw2019
type:Person
name:arw2019
datePublished:2020-12-30T06:22:36.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/38798/pandas/issues/38798
Person:
url:https://github.com/arw2019
name:arw2019
url:https://github.com/arw2019
name:arw2019
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:5
interactionType:https://schema.org/CommentAction
userInteractionCount:5
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net