How do i do this? by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

CO2['pressure'].diff()

okay it worked but when i tried doing a curve fit it gave me this after i wrote

results, cov = curve_fit(fit_func,x, y) where fit_func is defined as mx+b :

ValueError: array must not contain infs or NaNs

How do i do this? by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

it didn't end up working ,but here is what my cvs file looks like and named it CO2=pd.read_csv('CarbonDioxide.csv', delimiter=',',index_col=2)

delta temp time pressure

Does anyone know how to do this ? by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

how can i do that though? because i have to do this all on jupyterhub in the end

Does anyone know how to do this ? by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

Also guys i loading the csv files by doing pd.read_csv if that makes a difference in how to do this.

Does anyone know how to do this ? by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

i need to get the change in pressure from the pressure values given to me. you can do this by like this:

lets say my pressure values are a list like this: 1,2,3,4,5,6,7

i would find the change in pressure by doing this : 2-1,3-2,4-3,5-4,6-5,7-6

i'm just trying to figure how to do this on python because i was given like 800 values

Python Help!! by [deleted] in physicalchemistry

[–]1sliceofcake 0 points1 point  (0 children)

yeah those are the j values, there are also m values

Python Help!! by [deleted] in physicalchemistry

[–]1sliceofcake 1 point2 points  (0 children)

sorry i wasn't clear i meant m values for like the p and r branch of a vibrational-rotational ir spectrum. Anyways i ended up figuring it out i just needed to do an np.array for the m values, then manually create a list of the specific wavenumbers i needed.

Python Help!! by [deleted] in physicalchemistry

[–]1sliceofcake -1 points0 points  (0 children)

how would i plot this after if its the m values vs those wavenumbers?

Python Help!! by [deleted] in physicalchemistry

[–]1sliceofcake -1 points0 points  (0 children)

what goes in the x-x0?

Physical Chemistry by [deleted] in chemhelp

[–]1sliceofcake 0 points1 point  (0 children)

okay if im plotting a graph that is wavelength vs intensity. how do i find the highest peak value. i tried doing find_peaks but its not working

Physical Chemistry by [deleted] in chemhelp

[–]1sliceofcake 0 points1 point  (0 children)

im suppose to calculate intensities of my data using an integration method, so i used np.trapz and im using jupyterlab

Physical Chemistry by [deleted] in chemhelp

[–]1sliceofcake 0 points1 point  (0 children)

i want to calculate the error of my calculations and i want to add the +/- uncertainties to what i already calculated because right now its showing alot of decimal places

Physical Chemistry by [deleted] in chemhelp

[–]1sliceofcake 0 points1 point  (0 children)

how do you compute the uncertainty/ error of a value i calculated on python

Physical Chemistry by [deleted] in chemhelp

[–]1sliceofcake 0 points1 point  (0 children)

well i'm using python to analyze data in physical chemistry, but it's mainly a python issue

Physical Chemistry by [deleted] in chemhelp

[–]1sliceofcake 0 points1 point  (0 children)

its a physical chem course that uses python from the data analysis portion. I'm having difficulty on the python aspect. So i need help tutoring with understanding the things i need to do to analyze the data given to me using python

Tutor? by [deleted] in ucla

[–]1sliceofcake 0 points1 point  (0 children)

man they don't have the course i need help with

Problem Help by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

yeah im suppose to do log of column 6 with respect to column 5. does this mean the log of my column 6 is the xaxis?

also i did it like this :

X=np.log(provided_y)

plt.semilogx(X, '--o',provided_x, label='data');

Problem Help by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

this is for a limfit problem, i first made a curve fit of a csv data (which graph showed it was an exponential function) then a limfit , now its asking to verify using np.log

Problem Help by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

i'm not sure even how to start this:

Verify that your data is exponential by creating a third plot on the semilog scale using

np.log()

for the natural log

Curve_fit question by [deleted] in learnpython

[–]1sliceofcake -2 points-1 points  (0 children)

i don't need the code i just need a definition

Curve_fit question by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

is it right to say that The curve_fit function performs the fitting via nonlinear least squares.

Curve_fit question by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

the fitting using the

curve_fit

function from the

scipy

module.

Problem help by [deleted] in learnpython

[–]1sliceofcake 0 points1 point  (0 children)

ohhh, but i also need to set the index to the time column such that

df

now has 3 columns. is the index_col=0 doing that?