You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new dataframe format has the data qualifiers adjacent to the data, so that different columns have different types of data placed together. Now when you try to plot using: my_dataframe.plot() it generates an error.
What I Did
import hydrofunctions as hf
%matplotlib inline
sites = ['01581830', '01589330']
data = hf.NWIS(sites, start_date='2002-01-01', end_date='2005-01-01').get_data()
data.ok
data.df().plot()
-error-
Pandas has no way of converting what is in the column into something it can plot.
Proposed Solution:
Create different functions for creating different kinds of dataframe layout. There is more than one way to organize the data into a dataframe. Create a method for outputting a dataframe that can be plotted automatically.
Perhaps put the qualifiers into an identical dataframe that matches cell for cell with the data.
The text was updated successfully, but these errors were encountered:
Description
The new dataframe format has the data qualifiers adjacent to the data, so that different columns have different types of data placed together. Now when you try to plot using:
my_dataframe.plot()
it generates an error.What I Did
Pandas has no way of converting what is in the column into something it can plot.
Proposed Solution:
Create different functions for creating different kinds of dataframe layout. There is more than one way to organize the data into a dataframe. Create a method for outputting a dataframe that can be plotted automatically.
Perhaps put the qualifiers into an identical dataframe that matches cell for cell with the data.
The text was updated successfully, but these errors were encountered: