To write a python program for getting the word count from a text.
PC Anaconda - Python 3.7
Import numpy as np
Enter the input values
Write python program for getting the word count from the contents of a file using command line arguments
Run the program
Input the values
End the program
#To write a python program for reading content from a CSV file.
#Developed by: LAVANYA S
#Register Number: 212223230112
import pandas as pd
df = pd.read_csv('nba.csv')
print(df.head(10))
print(df.tail())
print("Number of rows:",len(df.axes[0]))
print("Number of columns:",len(df.axes[1]))
Thus the program is written to find the word count from a text.