Skip to content

Commit

Permalink
added analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingflexer committed Jun 29, 2022
1 parent 950e3c3 commit 6b23bbd
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import seaborn as sns; sns.set()
import csv
import pandas as pd
from upload import *


def translator(text):
translator= Translator(from_lang="hindi",to_lang="english")
Expand All @@ -22,7 +24,7 @@ def translator(text):

def pandas_profiling(file_path):
data1 = pd.read_csv(file_path).head(100)

data1 = add_date_time(data1)
file_name = os.path.splitext(file_path)[0]
print(file_name)
profile = ProfileReport (data1, title='Report - Crime Analysis', explorative=True)
Expand Down
Loading

0 comments on commit 6b23bbd

Please sign in to comment.