This assignment involves calculating the cost of package deliveries based on provided data and a cost grid. The task is to write a Python script that calculates the delivery cost for each package and then share the code and the output file.
The assignment involves working as a data analyst at a firm that deals with the delivery of goods and packages. You are provided with a dataset representing packages with attributes such as weight, distance, and delivery type. You are also given a cost grid that specifies the cost calculation parameters for different delivery types. The task is to calculate the cost of each package delivery using this data.
To run the Python script for calculating package delivery costs, you'll need the following:
- Python installed on your system.
- Access to a Python environment, such as Jupyter Notebook or Google Colab (recommended).
-
Open a Python environment, such as Jupyter Notebook or Google Colab.
-
Copy the Python script provided in the assignment and paste it into a code cell.
-
Run the code cell to execute the script.
The Python script will calculate the cost of each package delivery based on the provided data and the cost grid. It will then save the calculated costs in an output file named 'package_costs.csv'.
You can access the output file to view the calculated costs for each package.
To run the provided Python script in Google Colab, follow these steps:
-
Open Google Colab at colab.research.google.com.
-
Create a new notebook or open an existing one.
-
Create a new code cell in the Colab notebook.
-
Paste the Python script into the code cell.
-
Run the code cell to execute the script.
The output file 'package_costs.csv' will be saved in your Google Colab environment, and you can download it as needed.
This project is licensed under the MIT License - see the LICENSE file for details.