Skip to main content

Package to analyse Motorcycle EV swap related issues

Project description

Motoevsentiment

A package for analysing swap related messages.

wsentiment subpackage

This subpackage analyses WhatsApp related messages for sentiment.

Using wsentiment

import by using

from motoevsentiment.wsentiment import wsentiment_score

wsentiment_score takes only string inputs.

  • example
wsentiment_score('kofi has lights out')
>> -2

wdataframe

This subpackage changes WhatsApp text export file (.txt) into a dataframe

Using wdataframe

import using

from motoevsentiment.wsentiment import wdataframe
  • example
# Suppose you have a text file with data
test_file = "sample.txt"

# Read the text file into a Pandas DataFrame
df = read_text_to_df(test_file)

# Display the DataFrame
print(df)

              datetime       sender     message
0  2023-09-29 07:49:00    John Doe          ok
1  2023-09-29 08:15:00    Jane Doe  swapped battery

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evmotosentiment-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evmotosentiment-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file evmotosentiment-0.1.0.tar.gz.

File metadata

  • Download URL: evmotosentiment-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for evmotosentiment-0.1.0.tar.gz
Algorithm Hash digest
SHA256 33954b707b0fbc49661c26f1e8fa2d62ba85160547906ceef7049e3a56e5c980
MD5 f948179ee235dd86dba9bd32f33087c4
BLAKE2b-256 a08aa0afe52e3f08a287619454fafc15fa64ebc2b24ed6b88584e7bed04308e7

See more details on using hashes here.

File details

Details for the file evmotosentiment-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for evmotosentiment-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05e489da910675447b1b99be6539cb0d5694a9220e27830a411ca1e9245fdf6a
MD5 98f9894b4f648f26fb7c2057fbbb75cc
BLAKE2b-256 e3172a73794e4f336355c7c0cc91b1b4c4ae62c5a0ed2bbdebe7ea3b2c9d682d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page