Trouble analysing spreadsheet using pandas python [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Im trying to find a way to compare what students performed consistantly in their InternalAssessment_Performance to their FinalExam_Performance. Essentially i need to find what students have the same answer in both those columns.
How is it possible to compare the values in both commons and have them returned if they are the same?
Any help no matter how small would be great.

If the columns are aligned you can do something like this:
df[df['InternalAssessment_Performance'] == df['FinalExam_Performance']]

Related

Alternatives to Write isnull().sum()? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 19 hours ago.
Improve this question
import pandas as pd
Data = pd.open_csv('file name')
Data = isnull().sum()
I know that here we are testing each cell if it were empty or not; then, return the summation of empty ones.
Is there any other ways to re-write the statement?
Can we store the True results in a data structure, add them using a loop, and return the result?

How to make for loop with pandas DataFrame? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 months ago.
Improve this question
I want to make for loop formation with dataframe but i couldn't find grammar rule with this situation. Below is an overview of the functions I want to implement.
With Detail, i want to make new column named [df] which is calculated with column[f_adj]'s value.
Image of Excel
How to I fix this code?
df1['df'] = 0
for i in range(1,len(df1)-1):
df1['df'[i]] = df1['f_adj'[i+1]] - df1['f_adj'[i-1]]
Thank you in Advance
You should used iloc or loc in your code.

Calculate the 3 sigma value using python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have one data frame in python. How can I calculate the 3sigma value for each column of my data frame using python? please help me with this.
The command you're looking for is df.std() * 3

Write a python code to merge two list with the following condition [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
If two list is having same number, then the final list should not have the number
If your lists contains unique elements, consider using sets instead.
https://docs.python.org/2/library/sets.html
Check this code:
ls=[1,2,3,4,5,5]
ls1=[1,2,3,4,5,7,8,9]
common_elements=set(ls).intersection(set(ls1))
for i in common_elements:
if ls.__contains__(i):
ls.remove(i)
if ls1.__contains__(i):
ls1.remove(i)
final_ls=ls+ls1
print(final_ls)

How can I digitalize graph using Python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to convert an image of a graph (plot) to corresponding data. Is there any python library to do this or maybe some sample code to learn from?
If not, then how do i approach this problem?
You can also use a digitizing software application, to convert graph images to data, that is to numbers. im2graph is free and available for both Linux and Windows. See http://www.im2graph.co.il.

Categories

Resources