-
Notifications
You must be signed in to change notification settings - Fork 4.3k
added nbytes.md #7836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added nbytes.md #7836
Conversation
Updated the description and parameters for the .nbytes attribute in the NumPy documentation. Improved clarity and consistency in examples.
Updated the description of the `.nbytes` attribute to include a link to the NumPy array documentation.
mamtawardhani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for a second review! 🚀
avdhoottt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent entry, LGTM!!
|
👋 @Ananya44444 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/numpy/ndarray/nbytes Please note it may take a little while for changes to become visible. |
Description
This PR adds a new entry for the
.nbytesattribute of a NumPyndarray.The new file is located at
content/numpy/concepts/ndarray/terms/nbytes/nbytes.md.It explains:
.nbytesattribute represents (total bytes consumed by array elements).np.arangeto show its calculation (size * itemsize).dtype(float32).Issue Solved
Issue #7825
Type of Change
Checklist
mainbranch.Issues Solvedsection.