Skip to content

Conversation

@infingardi
Copy link
Contributor

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