Search
Search titles only
By:
Search titles only
By:
Menu
Forums
New posts
Search forums
Home
What's new
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Home
Education
Academic
How to reduce the size of a Dataframe in Python - Weddo
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="v32457_p" data-source="post: 527" data-attributes="member: 5"><p>How to reduce the size of a Dataframe in Python </p><p></p><p>Hello ! I have a dataframe in Python that has a column called "animal" with rows that contain the name of 4 animals: some rows with "bird", some with "dolphin", some with "dog" and finally some rows with "Others". I check the number of rows corresponding to each one of these with:</p><p></p><p>Code:</p><p></p><p>from collections import Counter</p><p></p><p>cnt = Counter(data.animal)</p><p>print(cnt)</p><p>and I obtain:</p><p>Code:</p><p></p><p>Counter({'Others': 1366, 'dog': 922, 'bird': 133, 'dolphin': 10})</p><p>I would like to reduce the size...</p><p></p><p><a href="https://www.go4expert.com/forums/reduce-size-dataframe-python-t35468/" target="_blank">How to reduce the size of a Dataframe in Python</a></p></blockquote><p></p>
[QUOTE="v32457_p, post: 527, member: 5"] How to reduce the size of a Dataframe in Python Hello ! I have a dataframe in Python that has a column called "animal" with rows that contain the name of 4 animals: some rows with "bird", some with "dolphin", some with "dog" and finally some rows with "Others". I check the number of rows corresponding to each one of these with: Code: from collections import Counter cnt = Counter(data.animal) print(cnt) and I obtain: Code: Counter({'Others': 1366, 'dog': 922, 'bird': 133, 'dolphin': 10}) I would like to reduce the size... [URL='https://www.go4expert.com/forums/reduce-size-dataframe-python-t35468/']How to reduce the size of a Dataframe in Python[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Education
Academic
How to reduce the size of a Dataframe in Python - Weddo
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…