Closed

Store analysis Python/Jython

It’s Python/Jython project.

he code itself is very simple and it has two parts to achieve it:

1. Initial input file has a store location, latitude @ longitude

NAME OF STORE LATITUDE LONGITUDE

A ---- ----

B ----- ----

C ----- ------

The objective is to determine a sorted list of the stores closer to a given one. For that purpose, the Appendix below contains the subroutine to do it.

The output is then that for each store that I call by its name a list with the names of the rest of the stores can be given ordered in closest way.

2. The second part of the code is that I have an original input file that contains a number of inspections (health, food and acustic for example. The thing is that they are the same for all the stores) for each store and the results.

NAME OF STORE Inspection Grade (A,B,C,D ..) Punctuation Average

A health B 3.8 2.0

A food C 1.8 1.04

A acustic D 2.1 2.1

B health A 3.4 2.0

B food C 1.2 1.04

B acustic D 2.09 2.1

Etc ….

GOAL:

I’m gonna call an increasing number N 3,4,5,6,7 … such that when I call 3, I want see the 2 closest stores to the selected storeX and the test those. An output file like the following will be then generated parsed containing:

Store X Store A Store C

Grade Punctuation Average Grade Punctuation Average Grade Punctuation Average

Store X health A 2.1 3.5 C 3.2 2.1 A 2.3 4.2

Store X food A 2.1 3.5 C 3.2 2.3 C 2.3 4.2

Store X acustic A 2.1 4.5 C 3.2 2.3 C 2.3 4.2

So for when N=3 then the Store X will have an output containing in that format the values of the grade, punctuation and average for itself and for the 3 closest stores for each kind of inspection type. Hence another 3 columns in this case will be added.

It’s basically a problem of parsing the values of the original table to create a determined output file in that specific format based on the Store selected and how many closer stores to have the data for.

I don’t want to use any pandas or anything like that, but just parsing it and loop statements. The reason is that I want it to be done in Jython and not having to call any library or something like that. So the python code can’t have those.

I believe that it’s very simple programming exercise for someone having deep knowledge of the parsing through list of objects, ….

Anexo 1:

Script to calculate distance

from math import sin, cos, sqrt, atan2, radians

# approximate radius of earth in km

R = 6373.0

lat1 = radians(52.2296756)

lon1 = radians(21.0122287)

lat2 = radians(52.406374)

lon2 = radians(16.9251681)

dlon = lon2 - lon1

dlat = lat2 - lat1

a = sin(dlat / 2)**2 + cos(lat1) * cos(lat2) * sin(dlon / 2)**2

c = 2 * atan2(sqrt(a), sqrt(1 - a))

distance = R * c

print("Result:", distance)

print("Should be:", 278.546, "km")

Skills: Python

See more: python store html email database, online store python, store html data mysql python, jython usage, how to import jython, imagej jython, jython python compatibility, jython manual, jython vs python, jython cookbook imagej, jython example java, python parse email store mysql, python data analysis html graph, python data analysis chart, analysis performance store procedure mysql, gps library python telit gps modules, wrapper library python matlab, convert library python, freelancer rebirth 7.6, freelancer rebirth 7.6 карта

About the Employer:
( 0 reviews ) Houston, United States

Project ID: #21138733

29 freelancers are bidding on average $107 for this job

susanna2018

Hi, Client!! @$@$@$PLEASE CONTACT ME. I CAN DO IT WONDERFULLY.$@$@$@ ##% Your idea is attracted me to your world.%## I am Python expert. i have various skills. @@PLEASE GIVE ME CHANCE TO PROVE MY SKILLS@@ :-):-):-) More

$140 USD in 7 days
(42 Reviews)
5.9
Mickelson

Hi Nice to meet you. I have enough experience in python script. Below the libraries are I used in past project. selenium, pandas, matplotlib, lxml, beautifulsoup, scipy, and other useful libraries. I have written some More

$100 USD in 1 day
(55 Reviews)
6.1
skfaroo123

Pro Python/Math/Algorithm/ Machine Learning/AI Expert! Dear employer Once saw a your project, it was very attracted my mind because I am very interested in your project and also, have rich experiences and high skills More

$100 USD in 2 days
(21 Reviews)
5.8
schoudhary1553

Hello, I have gone through your job posting and become very much interested to work with you. I am an expert in this field. I have already completed several projects like this. For evidence you can see my profile. Pl More

$250 USD in 5 days
(24 Reviews)
5.6
dinhfreedom

Dear sir. Your project attracted my attention at first glance, because I've extensive experience in Python Programming. I'm really confident about your project, and very eager to join your project. If we have a chance More

$200 USD in 7 days
(35 Reviews)
5.8
dungforever

Hello sir! (24 hours is enough to complete this task to me.) Your project excites me very much. I am convinced that my python skills are sufficient to complete this task successfully. As you can see in my review, I hav More

$60 USD in 1 day
(49 Reviews)
5.5
vano101

Hello I have almost 3 years of experience with Python programming I have checked requirements and it looks pretty easy to complete

$50 USD in 2 days
(113 Reviews)
5.4
mananraja

hey, I have read your details. I can make this script in PYTHON without any libraries like pandas as you said. Lets talk more in chat.

$40 USD in 1 day
(43 Reviews)
5.2
wangbeizou

Dear, sir! I am glad to put my bid on your project. I have read your project carefully and I can done this perfectly. I have a lots of experience and very good knowledge of Data structures, Algorithm Design using Pytho More

$80 USD in 1 day
(43 Reviews)
5.3
AlexanderPGR

Hi, there I have read your description and your post is attractive to me. I have high Python skill and can do this work as you want. Please contact me and discuss more, Thanks.

$122 USD in 2 days
(14 Reviews)
4.7
IMdaystar

Hello, Dear How are you? Thank you for your contacting. I have read your project description and am very interested in your project. I have experienced in Python for 7 years. I will work very hard and best for you. Bes More

$150 USD in 7 days
(7 Reviews)
4.9
ironstar20311

Hi ⭐ I can finish python jupyter notebook project in time, I am confidence I have read your requirement very carefully. So I am really confidence your project. Python is my highest skill so I have rich experiences wit More

$80 USD in 1 day
(34 Reviews)
4.6
junaidlodhi6

Greetings there... i can do these question in python... it is no problem... looking forward to hearing from you... thanks!

$140 USD in 7 days
(26 Reviews)
4.8
TopDesigner315

Hi, nice to meet you. I am data analytics expert in IT company. Especially I am python expert. I can implement your project within 1 day. I know your project need Python Pandas and Numpy. My Skill is Python Pandas, Num More

$40 USD in 1 day
(12 Reviews)
4.6
Dream20172017

Hello sir. I'm excited about your project, because I've really rich experience in Python Programming. I've developed many projects similar to yours and excellent skills. If you award me, I'll provide wonderful result o More

$140 USD in 7 days
(7 Reviews)
4.1
drohanyadav

Hi, I'm a python programmer and I exactly understand what you require. This can easily be done by using the help of pandas module on python which allows us to do all sorts of manipulation on a CSV/excel file. Please c More

$80 USD in 3 days
(8 Reviews)
3.6
MohammedSulhi

Hi , I am an machine learning engineer and data scientist . Machine learning , data science , artificial intelligence , nlp are the major field of me . and also finished many specializations .I have finished many proj More

$50 USD in 2 days
(13 Reviews)
3.7
RushService

Feel fee to contact me for Store analysis Python/Jython .Shoot me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment only More

$150 USD in 3 days
(13 Reviews)
4.3
topexpert713

Hi bro. I have read your description and I am so interested in your project. I am confident in your project and I can finish it clearly on time. I am well experienced and skillful Python, Jython programmer. I have man More

$140 USD in 7 days
(4 Reviews)
3.2
uzairnaseer920

JUST DO YOUR WORK IN CHEAP RATE. WILL DO LESS THAN BID I hold a degree in Computer Engineering. I minored in Programming with a focus in following skills: Java programming with GUI (JAVA, JAVAFX) Python Programming ( P More

$30 USD in 1 day
(12 Reviews)
2.9