Why do I get this error with ggbetweenstats? - ggplot2

I am trying to label outliers in a boxplot via ggbetweenstats, but I get this error:
enter image description here
My data is from here: https://travelsmartcampaign.org/wp-content/uploads/Travel-Smart-Ranking-2022.xlsx-Travel-Smart-Ranking-2022-8May.pdf. (I have added "_" to the variables Total Score and Company Name)
My code is:
enter image description here

Related

Test Data not showing in All Steps page in Cluecumber report plugin

I am generating the cluecumber report. When ever the report is generated , in the All Steps page the test data is not getting populated rather the steps are showing empty angular brackets like {}.
The test case is written as -
#Regression
Scenario: Create a new Modifiers
Given item image is clicked
When modifiers option is selected
And modifier is created as **"ModifierName"**
And enter modifier option and modifier price as **"Mod"** and **"3.50"** respectively
And hit save
Then verify modifier is created as **"ModifierName"**
**
See the below image for how it is generating now.**
enter image description here
pom file looks like this-
enter image description here
enter image description here
I wish test data passed in feature file to appear in steps while report is generated in All Steps Page and no {} empty brackets.
The all steps page shows which step implementations are used in which scenarios. This is independent of parameter values.
In the scenario details you see the data you need since here the steps are used with concrete values.

How to read or copy data from second email in Yopmail

I'm trying to read or switch frame to second email content in yopmail but I'm not able to switch frame, I used switch frame with Index, Id, and xpath getting no such frames found, and when I tried to print frame size getting 0, but in inspect element I'm seeing 3 frames. Can some one please help me to get out of this problem. When I'm trying to select second email content it's giving no such element found error and to second email content also I'm not able to switch.
I'm expecting to select second email content using Java
You can use this email address - Secondemail1234#yopmail.com
Step 1 - Open yopmail and enter email address
Step 2 - Click second email
Step 3 - get text from second email body

'DataFrame' object has no attribute 'label',how can I add label?

I created a .csv which shows below, and when I try to use the label it told me"'DataFrame' object has no attribute 'label'",the code is as follows
why my columns "cd,cs,cf" is not labels?enter image description here
I wish I input "aiya.label" it could turns out cd,cs,cf

Data in legend doesnt match the displayed data

I have code that plot tabular data I have . The code choose everytime different row (observation) to plot and display the data and the legend with the name of the observations.
My problem is that that even if I change the displayed data using the iloc (e.g changing the rows to be displayed) , I still get the same legend .
for example:
If I use this code, that suppose to display rows 0-10:
SavitzkyGolay(db_plants.iloc[:10,5:],25,2).T.plot(title='25/06/2019 17:00',figsize=(17,10))
plt.legend(db_plants['plant'])
The result I get is this :
But when I change the iloc:
SavitzkyGolay(db_plants.iloc[12:22,5:],25,2).T.plot(title='25/06/2019 17:00',figsize=(17,10))
plt.legend(db_plants['plant'])
I get the same legend:
*I can't share the original dataframe
*The observations names are different for sure
My end goal: to have the correct observations displayed in the legend
EDIT: I have used the iloc :
SavitzkyGolay(db_plants.iloc[12:22,5:],25,2).T.plot(title='25/06/201917:00',figsize=(17,10))
plt.legend(db_plants['plant'].iloc[12:22,5:])
But I still gett error:
IndexingError: Too many indexers

TypeError: setCurrentWindow(): 1st arg can't be coerced to ij.gui.ImageWindow

Hi I am a very novice when it comes to scripting. I am trying to write a Jython script that will take an image that is not at the front, in imageJ, and bring it to the front. I have tried using the WindowManager but routinely run into a similar error.
TypeError: setCurrentWindow(): 1st arg can't be coerced to
ij.gui.ImageWindow
or some other form of this error. It seems as though activating an image that is not at the front shouldn't be too difficult.
Here is the code I'm using:
from ij import IJ
from ij import WindowManager as WM
titles = WM.getIDList()
WM.setCurrentWindow(titles[:1])
The WindowManager.setCurrentWindow method takes an ImageWindow object, not an int image ID. But you can look up the ImageWindow for a given ID as follows:
WM.getImage(imageID).getWindow()
Here is a working version of your code:
from ij import IJ
from ij import WindowManager as WM
print("[BEFORE] Active image is: " + IJ.getImage().toString())
ids = WM.getIDList()
win = WM.getImage(ids[-1]).getWindow()
WM.setCurrentWindow(win)
win.toFront()
print("[AFTER] Active image is: " + IJ.getImage().toString())
Notes
I renamed your titles variable to ids because the method WindowManager.getIDList() returns a list of int image IDs, not a list of String image titles.
The WM.getImage(int imageID) method needs an int, not a list. So I used ids[-1], which is the last element of the ids list, not ids[:1], which is a subarray. Of course, you could pass whichever image ID you wish.
I added the call win.toFront(), which actually brings the window to the front. Calling WM.setCurrentWindow(win) is important in that it tells ImageJ that that image is now the active image... but it will not actually raise the window, which is what it seems like you want here.