GithubHelp home page GithubHelp logo

readme's Introduction

Complete political twitter analysis

It is a political analysis consisting of various modules:

  • Thematic text analysis
  • Versatility in political party
  • Sentiment analysis of tweets along with charts/interactive plots.

Installation

Use the package manager pip to install required libraries.

pip install numpy # To perform linear algebra functions 
pip install pandas # data processing, CSV file I/O e.g. pd.read_csv 
pip install matplotlib.pyplot # create plot  graphs
pip install seaborn # data visualization purposes
pip install spacy # advanced Natural Language Processing in Python
pip install networkx # network analysis library
pip install datetime # for using date and time
pip install os # 
pip install nltk # stopwords, tokenizer, stemmer
pip install textblob #spell correction, lemmatization
pip install plotly.express
pip install scikit

Usage

import numpy as np 
import pandas as pd 
import matplotlib.pyplot as plt
import seaborn as sns
import spacy
import networkx as nx      
import datetime
import os
import nltk
import plotly.express as px
import scikit as sklearn

df = pd.read_csv("../Datasets/uspoliticians.csv") #pd is used to read csv file from dataset and create data frame
nx.draw(strong_G, node_size=20, edge_color='gray',node_color='red') # networkx for drawing network
plt.plot([1, 2, 3, 4], [1, 4, 9, 16]) # usage of plt for ploting graph

Datasets

Download all datasets present in dataset folder and change directory path for the read csv file functions Alternatively Datasets are also available at Drive Link

Authors

  • Nishant Patel
  • Apurva Mhatre
  • Anmol Nailesh Shah
  • Sampada Talwar
  • Smitha ithal Sadashiv

readme's People

Contributors

anmol-shah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.