https://github.com/arturogonzalezm/temperature_predictions
This repository contains the solution to the HackerRank challenge "Temperature Predictions".
https://github.com/arturogonzalezm/temperature_predictions
predictive-analytics python3 python311 statistical-analysis
Last synced: 2 months ago
JSON representation
This repository contains the solution to the HackerRank challenge "Temperature Predictions".
- Host: GitHub
- URL: https://github.com/arturogonzalezm/temperature_predictions
- Owner: arturogonzalezm
- License: mit
- Created: 2024-05-01T08:04:21.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-01T09:37:33.000Z (about 1 year ago)
- Last Synced: 2025-01-02T08:14:39.960Z (4 months ago)
- Topics: predictive-analytics, python3, python311, statistical-analysis
- Language: Python
- Homepage:
- Size: 266 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/arturogonzalezm/temperature_predictions)
[](https://github.com/arturogonzalezm/temperature_predictions/blob/master/LICENSE)
[](https://github.com/arturogonzalezm/temperature_predictions/blob/master/docs/temperature-predictions-English.pdf)
[](https://github.com/psf/black)# Temperature Predictions - HackerRank Challenge
This repository contains the solution to the HackerRank challenge "Temperature Predictions".
The challenge consists of predicting the temperature of a given day based on the temperatures of the previous days.
The solution is implemented in Python and the code is documented in the file `temperature_predictions.py`.
The documentation of the code is available in the file `temperature-predictions-English.pdf`.## Overview
This Python script reads climate data from standard input, processes this data to interpolate missing values, and prints the interpolated values. It's designed for use directly from the command line and is built to handle tabular data effectively.## Installation
### Prerequisites
- Python (3.x recommended)
- Pandas libraryTo install Pandas, you can use pip:
```bash
pip intsall -r requirements.txt
```# Climate Data Processor Flow
This diagram illustrates the sequence of operations in the Climate Data Processor script:
```mermaid
flowchart TD
A[Start] --> B[Create Instance]
B --> C{Singleton Check}
C -- "If None" --> D[Create New Instance]
C -- "If Exists" --> E[Use Existing Instance]
D --> F[Initialize Data]
E --> F
F --> G[Read Input]
G --> H[Process Data]
H --> I[Print Interpolated Values]
I --> J[End]classDef className fill:#f9f,stroke:#333,stroke-width:2px;
class B,C,D,E,F,G,H,I className;
```