Menu

Using the entries of a pandas.Dataframe row as different parameters in a function.

Reading 0:00
15s threshold

*Short version:* Is it possible to use all the entries of a row in a pandas DataFrame as parameters in a given function?

Hello,

I have (finally) encountered a problem that wasn't solvable by going through documentation or looking it up online on sites like stackoverflow or another person's Reddit post. So this is my first post here.

I am currently evaluating some scientific data from a physics experiment. I read and import the .csv files with pandas.

For a certain calculation, I need to put in several parameters into a function, of which five are measured and change over time. The function itself works and was provided by the person supervising the experiment.

I arranged all my parameters into a Dataframe. Each Column is one parameter. Is it possible to extract the entries in the rows as the parameters for the function?

submitted by /u/Henkotron
[link] [comments]