x axis is the width of curtain
y axis is the height of curtain
55,65,75,85 are the price value in $(dollar)
can anyone guide me step by step to import excel into MySQL database with fields
You can take a look onto this package
https://laravel-excel.com/
I use this in all my excel-related projects and it works very well.
check
https://docs.laravel-excel.com/3.1/getting-started/installation.html
use with heading for easy import
Related
How can I add the numbers of observations per group to a boxplot with altair?
I am looking for something like this:
But I am also open to other solutions (as long as the information is visible).
For instance, how would I add this information to the example plot from here?
import altair as alt
from vega_datasets import data
source = data.population.url
alt.Chart(source).mark_boxplot(extent='min-max').encode(
x='age:O',
y='people:Q'
)
Thank you so much for your help!
You cannot dynamically modify titles in Altair/Vega-Lite, so you would need to add a text mark with this information. Something like this (just a proof of principal, you would likely add some explanatory text and make it prettier):
import altair as alt
from vega_datasets import data
source = data.population.url
boxes = alt.Chart(source).mark_boxplot(extent='min-max').encode(
x='age:O',
y='people:Q'
)
boxes + boxes.mark_text().encode(
y=alt.datum(11_500_000),
text='count()'
)
Two other options are to make the sizes of the boxes correspond to the count or add it as the tooltip.
I have an excel sheet with over 1000 columns and 11000 rows - all with numeric data. Within the data, there are missing values represented with '*'.
I would like to replace all of the '*' values with the average of the column that it is in.
Doing this manually would take a long time, so is there a formula that would achieve this?
Thanks so much in advanced for any help.
I can give you a three sheet solution Sam?:
Sheet 2:
Cell A1=
=AVERAGE(Sheet1!A:A)
Paste that along the top row for each of 1000 columns in sheet 2.
Sheet 3:
Cell A1=
=IF(Sheet1!A1="*",Sheet2!A$1,Sheet1!A1)
Copy that and then paste it into the entire worksheet 3 (i.e., that top left corner symbol that allows you to do that). It's gonna take a while to update but will deliver what you want!
As you have mentioned machine learning I thought I would introduce you to how you could do this with Azure Machine Learning Studio (AML) using a free account.
By using AML you gain access to a number of methods for replacing missing values which are extremely quick. AML has a Clean Missing Data module which exposes methods of replacement such as Multivariate Imputation using Chained Equation, Mean, Median and several others. The great thing here is you can visualize the dataset columns by right clicking on the dataset and see which columns have skew. You can then select on a column by column basis which replacement method to use. If you have heavily skewed columns you might use median instead for instance. This also offers great opportunities for data normalization (scale and reduce). You also gain access to using Python and R with your dataset.
I don't know if there is a method for directly treating "*" as missing values, I am trying to find that out, but if you do a little processing in advance of load then all is fine. The step before loading requires:
Export the sheet as a CSV and save it.
Use Ctrl+ F to bring up the find and replace dialog and enter "~*" for Find and leave Replace blank
Then login into AML and click the + New at the bottom of the screen
Select New > DATASET > FROM LOCAL FILE and select your file
When selecting type ensure to select CSV with no header if you data has no header row or with header if it does:
Your dataset will start uploading as shown by progress bar at bottom of screen and then appear in the SAVED DATASETS collection.
Click the + New button again and select EXPERIMENT > BLANK EXPERIMENT
Drag and drop your saved dataset onto the canvas on the right:
In the Search experiment items box on the right, type: Clean Missing Data
then drag the module that appears onto the canvas
Join the 2 boxes by clicking the dot at the bottom of the top box and dragging to the other box
Select the bottom box and then input the following parameters on the right (here is where you can choose which method to apply for missing values e.g. replace missing with mean, or perhaps median if your column data is skewed.
Right click the bottom module and select Run selected
Right click again and select Cleaned dataset > Save as Dataset
The progress bar at the bottom will inform you when complete
Type in the Search experiment items box again: convert to csv and drag that onto the canvas and connect the left hand side bottom of the second module to the top of the newly added third:
Select the bottom module and right click > Run selected
Wait for the progress bar to complete.
Right-click the bottom module and hit Download. Done.
I'm looking to rotate a 3D model (.STL) that I loaded into excel using vba code. The end goal is to have a button that rotates in X axis by a specific amount of degrees, another in Y axis and another one in Z axis.
So far I've tried
Selection.ShapeRange.Model3D.RotationX = 303.7414166667
and
Model3D.ThreeD.RotationY = 10
that I got from other websites but neither of those seems to work...
You didn't give a lot of background for this, but try to download the sample file from the link below and see if it helps you get going in the right direction.
http://www.mediafire.com/file/ued1rjexrd2by23/3d_Rotate.xls/file
screenshot
The x axis on the table is not showing the x-values I in my data.
I want the corresponding date for each point directly below it.
Excel (2007) has just added random dates.
Any idea how I can get the correct dates to be shown?
Under your chart tools, go "Layout -> Data Labels" and choose the one you're happy with. The option's right up there with your chart title, Axis, Legend options etc.
{sorry, just added a picture of the first thing open on my computer}
Enjoy...
I am experiencing the following issue in Microsoft Excel for Mac 2016. When using the From Text data import function and clicking through the first two steps (selecting "Delimited" and defining delimiter), Step 3 allows for changing the column data format. By default, column 1 is selected and I can click to select any other column that fits into the window, as shown in the screenshot below. However, it seems that it is not possible to select columns that are to the right of those visible in the window. In my example below, there are about four more columns to the right. Scrolling and arrow-keys seem to not work in the Mac version.
Is there a keyboard shortcut, or some other workaround, that I am missing?
Perform a two-finger touch (not a complete tap), more like a contact. A slider bar will appear at the bottom of the columns. Now is your chance to grab it with one-finger click. If you begin with the pointer in the bottom part of the columns, it is much easier to grab the slider as it should be under the pointer. This probably works on other such windows.