Example Analysis of INF value in python
This article mainly shows you the "example analysis of INF value in python", which is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "sample analysis of INF value in python".
1. Infinity stands for infinity, which belongs to floating point type, np.inf stands for infinity, and-np.inf stands for infinity.
Generally speaking, when the divisor is 0, it is infinite. For example, 2AGO.
2. Often make judgment statements (indicating conditional statements that must be run) and inequality judgments.
Example
# inf positive and negative infinity is set to nandf.replace ([np.inf,-np.inf], np.nan) # Null value is set to 0df = df.fillna (0) # Null value is set above 0 is all the contents of the article "sample Analysis of INF values in python". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!