question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC: `is_float_dtype` meant to be an internal function??

See original GitHub issue

Seems like there is no function for public API to check the dtype of an array-like object. Either the documentation needs to be changed or a public function should be provided and treat this one as an internal one by adding underscore at the beginning of it.

P.S. To keep the consistency between “int” and “float” dtype functions, it’s better to add another function like is_float64_dtype and keep the current one and triage the documentation.

https://github.com/pandas-dev/pandas/blob/e8093ba372f9adfe79439d90fe74b0b5b6dea9d6/pandas/core/dtypes/common.py#L1244

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
phoflcommented, Aug 19, 2022

@MRyderOC Could you open a dedicated issue, if you think having a function if_float64_dtype is necessary/a good idea? Also adding a use case where this is helpful would be great. float32 is not very well supported within pandas, this might be a reason why the function does not exist.

0reactions
MRyderOCcommented, Aug 19, 2022

@mroeschke any updates on this? Should we just clean the docs or should we implement the is_float64_dtype?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Different behavior of arithmetics on dtype float 'object' and 'float'
With object dtype arrays, numpy delegates the calculation to the elements (sort of like a list comprehension). The result is that some ...
Read more >
Built-in Functions — Python 3.11.1 documentation
The Python interpreter has a number of functions and types built into it that are ... The argument may be an integer, a...
Read more >
float - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The float CSS property places an element on the left or right side of its container, allowing text and inline elements to wrap...
Read more >
Image data types and what they mean — skimage v0.19.2 docs
Functions in skimage are designed so that they accept any of these dtypes, but, ... Convert to floating point (integer types become 64-bit...
Read more >
pandas.to_numeric — pandas 1.5.2 documentation
The default return dtype is float64 or int64 depending on the data supplied. Use the downcast parameter to obtain other dtypes. Please note...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found