I'm using pandas lineSer.value_counts() to make a frequency table but it doesn't display all my items. I have over 100 pieces of data and I need to see all of them
def freqTable():
fileIn = open('data.txt','r')
fileOut = open('dataOut.txt', 'w')
lines = [line.strip() for line in fileIn if line.strip() and not line.startswith('com')
lineSer = pd.Series(lines)
freq = str(lineSer.value_counts())
for line in freq:
fileOut.write(line)
this is the code I'm using and I need to get rid of the '...' in the results and see all the data points. What can I do different?
Madding. 57
Crowning. 47
My. 8
And. 8
Thy. 7
Thou. 7
The. 5
To. 5
For. 5
I. 4
That. 4
In. 4
Love. 4
Is. 3
Not. 3
...
Did. 1
Shadows. 1
Of. 1
Mind,. 1
O'erlook. 1
Sometime. 1
Fairer. 1
Monsters,. 1
23. 1
Defect,. 1
Show,. 1
What's. 1
Wood. 1
So. 1
Lov'st,. 1
Length: 133, dtype: int64