Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Header above a list in Panda
Post: RE: Header above a list in Panda

(Aug-11-2018, 11:41 PM)scidam Wrote: values_count returns a Series, but you can convert it to a DataFrame object,e.g. x = df['hour'].value_counts() x_df = pd.DataFrame(x)Finally, you can rename ind...
sweet_swiss General Coding Help 3 2,999 Aug-12-2018, 08:01 AM
    Thread: Header above a list in Panda
Post: Header above a list in Panda

I had just started with notebooks and Python. When I print my list will I just the list and then number how often they occur. I would like to if I could get hour as a header and count as a header ,se...
sweet_swiss General Coding Help 3 2,999 Aug-11-2018, 04:34 PM
    Thread: How to find unique and common words per line from a txt file?
Post: RE: How to find unique and common words per line f...

Thanks a lot.
sweet_swiss General Coding Help 6 4,318 Aug-11-2018, 12:59 PM
    Thread: How to find unique and common words per line from a txt file?
Post: RE: How to find unique and common words per line f...

Thanks a lot. Right now it is like this evens, odds = set(), set() with open('shakespeare.txt') as f: for index, row in enumerate(f): if index %2 : evens.update(row.split()) ...
sweet_swiss General Coding Help 6 4,318 Aug-11-2018, 11:55 AM
    Thread: How to find unique and common words per line from a txt file?
Post: RE: How to find unique and common words per line f...

Did some progress I think and added the split and sorted function. evens, odds = set(), set() with open('textfile.txt') as f: for index, row in enumerate(f): if index % 2 == 0: ...
sweet_swiss General Coding Help 6 4,318 Aug-11-2018, 10:28 AM
    Thread: How to find unique and common words per line from a txt file?
Post: How to find unique and common words per line from ...

I had just started with Python and run into this task: 1.Find words that exists on both even and odd lines. 2.Words that only exists on even lines 3.Words that only exists on odd lines All punctuati...
sweet_swiss General Coding Help 6 4,318 Aug-11-2018, 09:19 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020