How to get a p-value for a scatter plot? [closed] - python

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 days ago.
Improve this question
I have created this scatter graph but want to get the p-value for it: enter image description here
I tried looking at other answers but they all seemed overcomplicated.

Related

How to select the specific row in Python [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I want to select the rows where the revenue is NaN. So, row 7 and row 43 should be selected. I tried the code (In[117]) shown in the screenshot but it doesn't work for me.
You can use isna
NaN_table[NaN_table.Revenue.isna()]
Just use isnull:
NaN_table[NaN_table['Revenue'].isnull()]

How to Encode to German in Python? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have an issue where I cannot encode values to proper text.
Couple of examples in array. These are should be Greek language as result:
['ΦλογηÏ\x84Ï\x8eν', 'Σοα ΣÏ\x84αικίδη', 'Î\xa0Ï\x81οκοÏ\x80ίοÏ\x85']
Python approach will be prefer, but any other approaches also will helpful.
Try this:
[i.encode('latin').decode('utf8') for i in l]
will give:
['Φλογητών', 'Σοα Σταικίδη', 'Προκοπίου']
Here we first encode it to a proper encoding and then decode it back.

Why am i getting this error? need help please [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am getting this error.. code not submitting
need help thanks in advance
I believe your error is in finding the midpoint.
In python, if we use len(lst)/2 it will return float value.
The Index of list cannot be a floating point value.
Change your line to:
midpoint = len(lst)//2
This will return an Integer value as output.

pandas DataFrame cut [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
i want to cut all the columns of Data Frame. When I print the result it show good result, but when I want to assign those values in new data frame it returns NaNs.example of code
You need to paste your code here for understanding proper solution of problem.
you can try to add one line of code:
slc=slc.reset_index(drop=True)

Random order generator using filtering and recursion [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I am trying to create a random order generator. I have a list of ten names and want to write a program that returns the same list in a random order.
Here is my code which I'm told has invalid syntax in line 11
.
I am trying to complete the problem using filtering and recursion to further my understanding of these tools.
random.shuffle() is what you are looking for.

Categories