Skip to content

Instantly share code, notes, and snippets.

@saimadhu-polamuri
Last active July 18, 2020 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saimadhu-polamuri/b26f00c317988fc749db12b4ac94e48e to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/b26f00c317988fc749db12b4ac94e48e to your computer and use it in GitHub Desktop.
######## Main method ########
def main():
# Load dataset
data = pd.read_csv(data_path)
observations = len(data.index)
print("Dataset Size: {}".format(observations))
print(data['label'].value_counts())
print(data['label'].value_counts() / len(data.index) * 100.0)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment