mapup-data-assessment-f's People
Forkers
mohankholia anjanikumar21 9398151083 shwetadhame swathisri13 thanugowd saarahaag dheerajkumar0 sahisri999 potnuruakshaya kmvijaylakshmi swe0611 komal-pixel-c shilpahosur anandunofficial aayushipandey16 ahimavanth shubhamkhaskel dheerajnaik2818 rimihazra venkatesh-7-lab alexsebastin1998 bukkenagamani sauryaritesh navsony38 pranavi1909 abhiii1603 bhaskarthupakula aaisha-rani agatsaya001 sadhana1799 praxton74 sarandeepsingh17 bhavnamane shivam-kr935 raghava1525 vaishali1120 pavan53ac pranjalbandwal saisruthi12 dixitrajat123 ganesh12330 guptahimanshu15 gayatri5425 uzmanayab ibtesamsaher misubham prateek271 isha-c amit-ghoslya sudheer495 shreya3319 ilakkiya48 kaviya-star sanjay0905 yogesh-narasimha vlsravani7 akanksha1042 lipika-27 ranikuncham jadhavvaish sugandh-singhal saaherabanu prajalshete kiranpardeshi iftekhar14 mahesh4134 salim-786 kanakashireesha sharonrayapureddy maxxx2000 karunya2002 j-om-kumar meetdave01 sonal457 praveenrathi4 mayankjain0807 shivangicub abirami6 yash-a-art tushartri riteshm15 agraharihihai laxmikalmath arnabsangamdata mdaliraza sujatham11 optimusx1 coolsyntax abuzarkhan234 swetha19999 poornachandra02 vasanthvzz shitalksagar sherylfdo archanakaklij chunchusireesha 99ishant surajsasane yogisha3mapup-data-assessment-f's Issues
Excel Assessment_Anjali Mahajan
Excel Assessment of Anjali Mahajan
C:\Users\hp\Desktop\Excel Assessment of Anjali Mahajan.xlsm
excel-assessment.xlsm and data sets 2 & 3
Dear Sir,
Files are not opening. Unable to see excel assessment questions. Also for data sets 2 and 3 data sets not opening.
Kindly resolve the issues.
Regards,
Priya G
Bus count index retrieval
class Solution {
public:
int numBusesToDestination(vector<vector>& routes, int source,
int target) {
if (source == target)
return 0;
unordered_map<int, vector<int>> graph; // {route: [buses]}
unordered_set<int> usedBuses;
for (int i = 0; i < routes.size(); ++i)
for (const int route : routes[i])
graph[route].push_back(i);
int ans = 0;
queue<int> q{{source}};
while (!q.empty()) {
++ans;
for (int sz = q.size(); sz > 0; --sz) {
const int route = q.front();
q.pop();
for (const int bus : graph[route])
if (usedBuses.insert(bus).second)
for (const int nextRoute : routes[bus]) {
if (nextRoute == target)
return ans;
q.push(nextRoute);
}
}
}
return -1;
}
};
Submission
.
Python Task 1, Question 1: Car Matrix Generation
The dataset "dataset-1.csv" should have 342 rows, and currently only has 341.
Would you like us to update the missing value as 0, or something else?
why every one is forking ?
why every person is forking this repo
instead of cloning/copy/download the repo
they said in the form that you need to create a clone (which is not fork) and make it private (and add contributors). then add your submission into this clone, rather than forking it and committing it !
im i wrong or am i right?
Guideline to Upload the assignment
Here is the step by step procedure:
- Create the repo and make it private
- Go to that repo and you can find an option called "import code" (found in bottom)
- Now paste the link "https://github.com/mapup/MapUp-Data-Assessment-F" and import the code
- Go to repo and there will be a option Add file click it and drag and drop your folder
- Don't forgot add collaborators (which can be found under settings)
Car Matrix solution
weights_h = [[random.random() for e in range(len(inputs[0]))] for e in range(hiden_neurons)]
Python part 2 - Question 1 - Distance Matrix Calculation
Question 1: Distance Matrix Calculation
Create a function named calculate_distance_matrix that takes the dataset-3.csv as input and generates a DataFrame representing distances between IDs.
The resulting DataFrame should have cumulative distances along known routes, with diagonal values set to 0. If distances between toll locations A to B and B to C are known, then the distance from A to C should be the sum of these distances. Ensure the matrix is symmetric, accounting for bidirectional distances between toll locations (i.e. A to B is equal to B to A).
Since one of the element in the dataset-3.csv is missing that is 1001400 id_end and that is the reason why the matrices formed is not symmetrical.
submission
I have completed it and how to submit it.
Matrix value
0
array = []
matrix = []
x = 0
while(x < 3):
array.append(".")
x += 1
x = 0
while(x < 3):
matrix.append(array)
x += 1
mapup
Rout filtering
def check(letter):
list_of_vowels = ['a', 'e', 'i', 'o', 'u']
if letter in list_of_vowels:
return True
else:
return False
letters = ['u', 'a', 'q', 'c', 'i', 'd', 'z', 'p', 'e']
filtered_object = filter(check, letters)
print("The type of returned object is: ", type(filtered_object))
filtered_list = list(filtered_object)
print("The list of vowels is: ", filtered_list)
Query in task 2 question number 5
As you defined in the question we have to create four new columns ('start_day','start_time','end_day','end_time') . For these new columns how we can assign values in them , because we have to take the data from question4 and the output is using these four columns to make output
@Venkatesh1618,@saransh-mapup
Clarification on DataFrame Transformation in Python Task 1, Question 1
Dear MapUp Team,
I hope this message finds you well. I am currently working through the Python Task 1 of the assessment and have encountered a point of uncertainty that I would like to clarify regarding Question 1, titled "Car Matrix Generation".
The instructions specify that we are to create a new DataFrame with id_2
values as columns, id_1
values as indices, and car
column values populating the matrix. However, I am seeking further guidance on how to handle instances where multiple car
values may correspond to the same (id_1
, id_2
) pair. Could you please advise on the expected behaviour in such a scenario? Should we sum the values, take the average, or perhaps keep the first or last occurrence?
Additionally, I would appreciate if you could confirm whether the diagonal values of the matrix should be set to 0 before or after any aggregation is performed, should such a situation arise.
Understanding the intended approach to these cases will ensure that I adhere to the assessment criteria and that my submission aligns with your expectations.
Thank you for your assistance in this matter. I look forward to your guidance.
Best regards,
yihong1120
Yoo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.