which encoding technique shall I apply for this data frame? - machine-learning

Data frame
I created a dummy variable but problem was that in the phase of feature selection it didn't select my dummy columns.

Related

Copying Conditional Formatting without adding to the data set

I have an inventory and ordering management Sheet where I use color coding via Sheets Conditional Formatting to make some cells quickly visible as having outstanding orders. In my particular case, I am using conditional formatting based on a neighboring cell.
The sheet I built utilizes several columns for ordering cycles with our suppliers. When I am ready to move on to the next ordering cycle, I copy and paste a set of columns to create the new cycle.
The problem that I encounter is this: the new column's Conditional Formatting gets added to the old, both in terms of adding a new column to format, but also referencing the cell from which the copied columns use to decide whether to format.
Original Order Block
In this second image, I have pasted a new order block from Columns AD-AL to Columns AM -AU.
Pasted Order Block
There are two things that I am trying to solve:
I would expect the custom formula to update to =$AR5<>"", but it holds on to the Original Order Block's formula, thus applying the formatting from cells that are in the Original Order Block.
I would expect the range to update to only the new range of AQ5:AQ397, rather than add the additional range to the original order block range.
Each order block needs the conditional formatting to be independent from the one which it was copied.
Thanks in advance.
In this case, you can just remove the "$" from your custom formula and it will move just fine
Your ranges are going to be together as you shown, but will look at the cell at its right

How to calculate Dimensions from a Text String in a single cell?

I am need to calculate the dimensions from cell values that are entered as strings into a single cell vs. 3 separate cells and I do not want to break the dimensions into Length (L) x Width (W) x Height (H) Columns.. instead I am hoping there is a relatively simple function that would allow me to calculate the total cubic dimensions from that single cell.
I am aware of this tutorial that can take a string and be used to break it into 3 separate cells.. but that defeats the point of what I am trying to do.
My data looks like this:
Dimensions
Cub/In.
CF
70x13x13
11830
6.85
24*18*13
5616
3.25
24x16x12
16x24x10
Right now the data is entered as either "LxWxH" or "L*W*H" in that text formant and the columns that have values like the 5616 above are me manually re-entering "=24*18*13".. literally one character difference.
I did try a CONCATENATE to just append an "=" to the beginning but got errors on all in Google Sheets (for comparison) or a Literal string into processed as a formula in Excel.
=CONCATENATE(“=”,B1)
Looking for a simple way to do this calculation in a single column and being able to have to enter the data once or utilize the existing data. I don't mind doing a single bulk replace of "x" to "*" on the input column to standardize the source column but don't want to have to do a series of bulk replaces every time I want to run through the data.
Thoughts?
Use SUBSTITUTE to get them all to the same, then use SPLIT and wrap in PRODUCT:
=PRODUCT(SPLIT(SUBSTITUTE(A2,"*","x"),"x"))
Or shorter Version shown by #JvdV:
=PRODUCT(SPLIT(A2,"*x"))

FileMaker Pro TextColor as a calculation for a field in a table

I have a list of colors that we use and I am creating an app where I am storing the RGB values of those colors in 3 fields R, G & B. Then I have another text field in which I used this ██████ Unicode block of text and used a script to SET FIELD and then calculated the TEXT COLOR of this field to display the correct color as per RGB values by using script trigger whenever the RGB values are modified. Everything works well.
Now what I want to do it display all the color names and the correct color in a portal. The problem is all the RGB values are taken from the current record and so my portal shows different color names but the Unicode block of text is always in the same color. Any ideas on how can I correctly incorporate this? I tried Googling and even skimmed through the documentation of FileMaker but could not figure out a workaround.
Thanks!
It is difficult to understand your structure. If you have "a list of colors" then you should have a table of Colors, with fields for R, G, B and a calculation field for displaying the swatch - all in the same table.
A portal to such table will show one row per record - and each row will show the fields from the corresponding record, including the swatch field.
There should be no need to use any scripts or script triggers for this.

How to conditionally re-position crystal reports XI objects

I am using Crystal Reports XI as a Stand alone and not using Visual Studio. I have text box objects which dynamically grow in size according to the data. If the text box grows and has 2 lines of data instead of 1, I want the text box below it to be automatically re-positioned down. Is there a way to do use conditional programming to achieve this.
At the moment I have a formula that counts how many characters are in the text box objects so I can use this in my conditional statement but am wondering about how to code the object properties and methods such as the X position of the object.
Thanks.

Editing labels of series in Google Spreadsheets

I have data listed in columns as below and by highlighting it all including the names and the units and then clicking Insert -> Diagram..., I can easily make the following graph:
The labels are correct LabelA, Labelb, and LabelC in this case.
But if the label names are not in the same column as the data, then I cannot make this graph. In the data structure below where names and data are in different columns, I again highlight all data cells as well as their units and names (by holding down the ctrl button and clicking all the cells with the cursor):
It is clear that the software does not know that it should assign the names as labels. Is there a method to make the graph show the correct labeling as in the first scenario but with the second scenario's data structure?
you could combine the data in another place with formula:
={{A1,C1,E1};{B4:B6,D4:D6,F4:F6}}
and then plot the diagram as usual.

Resources