Skip to content

ferdlestier/dataparsing

Repository files navigation

dataparsing

The idea of this script is to run a showcase on how to parse a csv file, with data from my portfolio using only pandas.

Error Handling and Logging Practices

To ensure the robustness and reliability of the parser.py script, error handling and logging have been significantly improved. These enhancements aim to catch potential errors during data parsing or file operations and provide a structured approach to monitoring and debugging the script's execution.

Viewing and Interpreting Logs

The parser.py script now generates logs that can be found in the parser.log file. These logs include timestamps, log levels, and messages that describe the script's execution flow and any errors encountered. To view the logs, simply open the parser.log file with a text editor or a log viewer tool.

By analyzing the logs, users can gain insights into the script's behavior, identify any issues that occurred during execution, and understand the context in which these issues happened. This information is invaluable for debugging purposes and for improving the script's performance and reliability.

Running Tests

To run the tests for this repository, you can use the following command:

pytest

This will execute all the test cases defined in the tests directory and provide a summary of the test results.

Viewing Logs

The parser.py script generates logs that can be found in the parser.log file. These logs include timestamps, log levels, and messages that describe the script's execution flow and any errors encountered. To view the logs, simply open the parser.log file with a text editor or a log viewer tool.

Interpreting Logs

By analyzing the logs, users can gain insights into the script's behavior, identify any issues that occurred during execution, and understand the context in which these issues happened. This information is invaluable for debugging purposes and for improving the script's performance and reliability.

Updating Dependencies

To update the dependencies for this repository, you can use the following command:

pip install --upgrade -r requirements.txt

This will upgrade all the dependencies listed in the requirements.txt file to their latest versions.

Contributing

If you would like to contribute to this repository, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature or bugfix
  3. Make your changes and commit them with descriptive messages
  4. Push your changes to your fork
  5. Create a pull request to the main repository

Please ensure that your code follows the existing coding style and includes appropriate tests.

About

Parsing large dataframes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages