Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/plot filtered data #62

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

infingardi
Copy link

What was changed

Added function filter_and_plot_data in _bibmon_tools.py

Objective

Filters a dataset by optionaly removing columns with only NaN or zero values and excludes specified tags. It then visualizes the remaining data by plotting each column as a separate subplot in a time series, using a shared X-axis for easy comparison.

Importance

Enhances the data visualization process by:

  • Data Cleaning: It removes irrelevant columns (NaNs and zeros), ensuring focus on significant data points.
  • Customization: Users can exclude specific tags, tailoring the visualization to highlight relevant variables.
  • Enhanced Visualization: It provides clear, separate subplots for each variable, facilitating comparative analysis and trend observation.
  • User-Friendly: The function simplifies data preparation with intuitive parameters, making it accessible for users.
  • Time Series Analysis: It effectively supports time-based analysis by using timestamps on the X-axis, crucial for understanding temporal patterns.

How to use

not_wanted_tags = ['ESTADO-M1', 'ESTADO-SDV-P', 'ESTADO-W1', 'P-PDG', 'QGL']

data = filter_and_plot_data(file, 'k', 'Poço 6', not_wanted_tags = not_wanted_tags)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant