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


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 ….


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

26 freelancers are bidding on average $109 for this job


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
(55 Reviews)

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
(43 Reviews)

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
(66 Reviews)

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
(54 Reviews)

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
(123 Reviews)

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
(52 Reviews)

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
(36 Reviews)

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
(30 Reviews)

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
(71 Reviews)

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)

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
(20 Reviews)

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
(44 Reviews)

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
(30 Reviews)

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
(15 Reviews)

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
(22 Reviews)

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
(17 Reviews)

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)

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
(9 Reviews)

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
(14 Reviews)

Hi, I am working as a software engineer in a multinational advertisement firm and I do python data analysis for them. I am experience in dealing with data using python language. Please message me details so I may get s More

$115 USD in 6 days
(1 Review)