Sampling with meter
🎲 Sampling settings
💡 Instructions for use
- Sampling by line number is suitable for "sampling a fixed number of samples"; sampling by proportion is suitable for "sampling a certain proportion of samples", and the proportion is calculated based on the number of sampled rows.
- The shuffle mode retains all rows and only randomly rearranges the order. It is used for preparation before random sorting and random grouping.
- When repetition is prohibited, each row can be sampled at most once, and the result can be used directly as a list; when repetition is allowed, it is equivalent to sampling with replacement, and duplicate rows may appear.
- When retaining the table header, the first row will not participate in sampling, and the results will still start with the table header, making it easy to paste directly back to the spreadsheet software.
- The result area will provide the number of rows, sampling ratio and selected row number to facilitate one-by-one verification with the original data.
- The data is only processed in the browser and is not uploaded or saved; if you need to keep the file, please copy or download the results.
Fix the table header to the first row and do not participate in random extraction. The result is still a table with a complete structure.
What will happen if the header participates in sampling?
If the table header is also used as a data row to participate in the extraction, it may be extracted, and a row of "field names" will appear in the result mixed with the data.
A more common problem is: when the table header is not selected, the extracted samples lose their column names, and the viewer does not know what each column is.
Therefore, for tables with headers, you must explicitly select "The first row is the header" and let the tool output the header in a fixed manner.
Choice of two calibers
Caliber 1: Meter fixed output. Sample = table header + randomly selected data rows, the most commonly used, the results can be used directly.
Caliber 2: The meter header does not output. Only the data rows are output, which is suitable for splicing or further processing of the results.
The extraction quantities of both calibers are only for data rows and do not include headers, which is easily overlooked.
Note
Confirm that the first row is indeed the header: in some tables, the first row is data (no header), so do not check this option at this time.
When there are merged cells or grouped subtitles in the table, they need to be cleaned up into neat rows.
Verify
Verification method: Check whether the first row of the result is the header, and whether the number of data rows is consistent with the setting.
Confirm again that the number of columns is the same as the original table, and there are no concatenations or misalignments.
The extracted quantity is only for data rows, excluding headers; confirm that the first row is indeed the header and then check this option.
📖 Glossary
- random sampling
- Select a part of the data as a sample according to random rules, and use the sample to reflect the overall situation.
- sample size
- The number of rows extracted. The larger the sample size, the closer it is to the whole, but the processing cost is also higher.
- Sampling proportion
- The sample size is a percentage of the number of rows that can be sampled, often used to draw at a fixed ratio.
- Sampling with replacement
- The row is put back after each draw, so the same row may be drawn repeatedly.
- Sampling without replacement
- The extracted rows will no longer participate in subsequent extraction, and each row will appear at most once in the results.
- sampling bias
- Systematic errors occur when the sample does not represent the whole, for example, only data from a certain time period is taken.
- stratified sampling
- First group the samples by category, and then sample each group separately so that each category is represented in the sample.
- shuffle randomly
- It only rearranges the order of rows without deleting any rows. It is often used in preparation before random sorting and grouping.
- Winning bank number
- The serial number of the selected row in the data is used to check with the original data one by one.
- Reproducibility
- The property of obtaining the same result under the same conditions. Random sampling is not available by default, and the output needs to be saved to reproduce.
🔗 All keywords and tutorials
❓ FAQ
- Will the header be drawn??
- It will not work after selecting "The first row is the header", it will be fixedly output.
- Does the extracted quantity include a header??
- Not included. Quantities are for data rows only.