Relative Content

Tag Archive for pythondataframe

Issues with dataframe shapes in creating a seismogram using Python

I have been trying to create a seismogram for quite a while but keep running into bugs. I was successful in creating a seismogram for a set of small data, but am now working with a larger set and seem to be running into issues with keeping time consistent with data (dropping NaNs while moving through data) and ignoring shapes of dataframes… the goal is to have this code be usable for different sizes of dataframes.

how to get value from polars DataFrame

from sum(), I need value of sum().I could get it by this, but more better way?
1: make dataframe column to series,
2: change it to list,
3: get value from list