Change data format in Mathematica - list

I'm new to Mathematica. I'n using the online trial version12.1. I have got a sample data like
result =Import["/wolframcloud/userfiles/../data/data.csv"]
>> {{1,1,0,0,1,1,0,0,0,0,1}}
But I want data format like {1,1,0,0,1,1,0,0,0,0,1} because I need to do transpose later. So how can I achieve this? What is the difference between {{}} and {}? Thanks so much!

Related

Having issues with Google Sheets formula combing ArrayFormula with IF

This works the way I want it to but I want to use the ArrayFormula to add the formula to the whole column starting at Cell J2:
=IF(E2:E="Closed","",MINUS(TODAY(),I2))
This doesn't work:
=ARRAYFORMULA(IF(E2:E="Closed","",,J2:J), MINUS(TODAY(),I2))
I have tried multiple ways to add the ArrayFormula into it and reorganized it multiple ways but it failed.
Any ideas where I am going wrong?
Any help appreciated!
Please use the following formula
=ArrayFormula(IF(I2:I<>"", IF(E2:E="Closed","CL",MINUS(TODAY(),I2:I)),""))
(where today is May 20th. Adjust ranges and notifications to your liking)

Check many cells for data and report data if found

I'm trying to get a formula that can search through many cells for data and report the data of that cell back
eks: J2() M2(Cake) R2() X2()
Is there an easy way to "loop" or search through these and to check if there is data?
Kinda like =If(J2,M2,R2,X2, print value) would be 'Cake'
try something simple:
=TRIM(J2&M2&R2&X2)

Scipy Minimize: minimize a function over a set of data

I am a very new student to both machine learning and python. I got a question when I was trying to minimize my Expected Improvement function. The purpose of minimize EI function is to predict next best X. How can I make it to choose the X in my data set?
For example, x-axis of my data set looks like (0,1,0.2,0.4,0.8,..2.4,2.6), for now my code will predict X at any point in a range such as 0.382727 which I don't have in my data set and don't have a y-value for it.
What should I do in my case? Is it possible to use constraints scipy.minimize to fix this problem or do you have any other suggestion for me?
Thank you so much!

Is there a way to let Chart.js to round up decimals?

Is there a way to let Chart.js to round up decimals?
Sure, i can do it in PHP where i get the numbers.
But maby there is an option in Chart.js to do this?
I have tried nothing, but google search.
What i want is: 2733.33
ChartJS expects the data to be in the format you need when it is fed in; as you mention you'll need to do it in PHP prior to putting it into the data array.

Use proc glimmix for binomial response-Model statement

Usually we use the following statement
model y/n = block variety / dist=binomial solution;
However, if I have already calculate proprtion=y/n by EXCEL and directly use "proportion" into SAS. i.e
model proportion = block variety /dist=binomial solution;
I get the same result.
However, is there anything wrong with my second code?
You are suppose to get the same result as you have said too. So it is not clear what went wrong with your code!