乙肝表面抗原高是什么意思| 互为表里是什么意思| 肝主疏泄是什么意思| 白鸭是什么鸭| 监督是什么意思| 大枕大池有什么危害| 酒后吃什么解酒最快| 梦见玉米是什么意思| 阴虚火旺吃什么食物| 挂号信什么意思| 玉米什么的什么的| dr是什么意思| 1946年中国发生了什么| 为什么会排卵期出血| 看痣挂什么科| super是什么意思| 牵牛花什么时候开| 手指起倒刺是什么原因| 减肥应该吃什么主食| 赤道2什么时候上映| 三克油是什么意思| 咳血鲜红是什么病呢| 澳大利亚有什么动物| 姹紫嫣红是什么意思| 荨麻疹能吃什么| 什么样的羽毛| 海兔是什么动物| 沙僧是什么动物| 酸枣仁配什么治疗失眠| 痔疮是什么样子的图片大全| 增强免疫力打什么针| 口腔溃疡缺什么维生素| 十二指肠球部溃疡a1期是什么意思| 175是什么尺码| 牙齿发麻是什么原因| 电灯泡是什么意思| 常务副县长是什么级别| 做梦吃酒席什么预兆| 肺大泡用什么药| 143是什么意思| 6月17号是什么星座| 鲔鱼是什么鱼| 什么叫偏财| 为什么喜欢你| 感情洁癖什么意思| 长期吃面条对身体有什么影响| 为什么医院不开金刚藤| 狂躁症是什么| 生蚝不能和什么一起吃| 斋醮什么意思| 缩量十字星意味着什么| 腿硬邦邦的是什么原因| 12年属什么生肖| 钢琴十级什么水平| 切除痣挂什么科| 烧伤病人吃什么恢复快| 1月25日是什么星座| 容颜是什么意思| 菊花和枸杞泡水喝有什么功效| 平菇不能和什么一起吃| 跑路什么意思| 亚裔人是什么意思| 屈原是什么诗人| b型阳性血是什么意思| 脑瘤有什么症状| 有何特长一般填什么好| elaine是什么意思| 摆渡人什么意思| 牛黄是什么东西| 酸笋炒什么好吃| 格局小是什么意思| 佟丽娅是什么民族| 血压高查什么项目| 鸣字五行属什么| 肺阳虚吃什么中成药| 咳嗽恶心干呕是什么原因引起的| 什么叫补充公积金| 眩晕症是什么原因造成的| 湖北有什么山| 结账是什么意思| 什么叫地包天| 烧仙草是什么做的| 前列腺炎吃什么食物好| 流产期间吃什么好| 常吃南瓜有什么好处和坏处| o是什么| 中暑有什么症状| 什么是甲状腺结节病| 办健康证在什么地方办| 姨妈发黑量少什么原因| 尿道感染有什么症状| 健脾祛湿吃什么药效果最好| 封神是什么意思| 为什么会有灰指甲| 梅毒是什么| 相与是什么意思| 叶五行属什么| 心脏支架不能吃什么| 叶酸在什么食物里最多| 射手座是什么星象| 女真人是什么民族| 倒挂金钩是什么意思| 县副局长是什么级别| 胆囊炎有什么症状| 梦见自己怀孕大肚子是什么预兆| 吃西瓜有什么坏处| 上海玉佛寺求什么最灵验| 现在什么年| 饭后胃胀是什么原因导致的| 交媾是什么意思| 芪明颗粒主治什么病| 活泼开朗是什么意思| 168红包代表什么意思| 近视什么意思| mark是什么牌子| 肾上腺彩超是检查什么| 龙鱼吃什么| 籍贯是填什么| 尿急尿痛吃什么药| 属马的贵人属相是什么| 什么是眼底病| 麦粒肿是什么原因引起的| 男大三后面一句是什么| 什么算高危性行为| 肾阴虚吃什么食物最好| 口臭胃火大吃什么药好| 收缩压和舒张压是什么意思| 绦是什么意思| 阴血是什么| pa代表什么意思| 1970年属什么生肖| 黄鳝吃什么食物| 丹田是什么意思| 辰字属于五行属什么| 手指甲变黑是什么原因| rag是什么意思| 什么是生僻字| 老被蚊子咬是什么原因| 三三两两是什么生肖| 霉菌性阴道炎用什么药效果好| 窦性心律过缓是什么意思| 孩子呕吐吃什么药| 林五行属什么| 临床诊断是什么意思| 1998年属什么生肖| 结扎对男人有什么伤害| 移车打什么电话| 嘴苦口臭是什么原因造成的| 尾牙宴是什么意思| 芊芊是什么意思| 姊是什么意思| 名列前茅是什么生肖| 长期腹泻是什么病| 享受低保需要什么条件| 二十不惑什么意思| asus是什么牌子| mint什么颜色| 梦见别人给自己剪头发是什么意思| #NAME?| 什么头什么节| 痛风什么原因引起| 烟雾病是什么原因引起的| 甲鱼吃什么东西| 大腿痛挂什么科| 甲状腺癌有什么症状| 狐臭用什么药最好| 正月十八是什么星座| dvt是什么意思| 望尘莫及是什么意思| 醉氧是什么意思| 胖大海和什么搭配最好| 舌头发白有齿痕是什么原因| 防弹衣为什么能防弹| 6月23日什么星座| 甲状腺结节看什么科室最好| 梦见牙齿掉光了是什么征兆| 西安有什么美食| 猫字五行属什么| 尿道炎是什么原因引起的| 被褥是什么意思| 海参吃什么| 出入是什么意思| 爱吐口水是什么原因| 吃什么减肥最快| 天德是什么意思| 什么叫批次线| 子宫内膜脱落是什么意思| 喝什么可以排便通畅| 尿酸高是什么原因| 脑供血不足挂什么科室| yellow是什么颜色| 南浦大桥什么时候建成| 笃笃是什么意思| 梦见屎是什么预兆| 煲什么汤含蛋白质高| 便秘什么意思| 他克莫司软膏治疗什么| 风湿属于什么科| 嘴唇发紫黑是什么原因| 女孩当兵需要什么条件| 白事的礼金叫什么| 三个又是什么字| 三候是什么意思| 解说是什么意思| 下午一点是什么时辰| 昆仑雪菊有什么作用| 双侧苍白球钙化是什么意思| 什么影院| 胃肠造影主要检查什么| 8月1日是什么星座| nbp是什么意思| 什么是三好学生| 月柱金舆是什么意思| 唐僧取经取的是什么经| 血管瘤长什么样子图片| 骨折吃什么药好得快| pbm是什么意思| cc是什么意思啊| 什么是脑白质病变| 腾云驾雾是什么生肖| 四大神兽是什么动物| 镇党委副书记是什么级别| 丁卡是什么药| 脊髓炎吃什么药| 冷暴力是什么| 红加绿是什么颜色| 氢氧化钙是什么东西| 手掌很红是什么原因| 腋下疣是什么原因造成的| 什么症状吃柏子养心丸| 合成革是什么材质| 63岁属什么| 甲辰是什么意思| 牙神经挑了为什么还疼| 似乎的近义词是什么| 长脸型适合什么样的发型| 肛裂出血和痔疮出血有什么区别| 腿疼去医院挂什么科| 血糖高吃什么蔬菜| 晚上咳嗽什么原因| 约会去什么地方比较好| 青字五行属什么| 鸡眼用什么药| 女人手脚发热吃什么药| 咳嗽有痰吃什么药效果好| 绿树成荫是什么季节| 什么泡酒让性功能最强| 血管堵塞有什么办法可以疏通| 孕妇吃什么会流产| 爱在西元前什么意思| 孔雀鱼吃什么食物| 什么榴莲好吃| 狗和什么属相最配| nt什么货币| 7月24号是什么星座| 爸爸的姥姥叫什么| 孕妇宫缩是什么症状| 减肥吃什么| 多愁善感的动物是什么生肖| 右手大拇指抖动是什么原因| 临床试验是什么意思| 有什么水能代替美瞳水| 梦见吃老鼠肉是什么意思啊| 肾积水有什么症状表现| 百度Jump to content

腰腿疼痛吃什么药效果好

From Wikipedia, the free encyclopedia
(Redirected from CSV (file format))
Comma-separated values
A simple CSV file listing three people and the companies they work for
Filename extension.csv
Internet media typetext/csv[1]
Uniform Type Identifier (UTI)public.comma-separated-values-text[2]
UTI conformationpublic.delimited-values-text[2]
Type of formatmulti-platform, serial data streams
Container fordatabase information organized as field separated lists
StandardRFC 4180
百度 法院认为,司法解释规定,公民个人信息是指以电子或者其他方式记录的能够单独或者与其他信息结合识别特定自然人身份或者反映特定自然人活动情况的各种信息,包括姓名、身份证件号码、通信通讯联系方式、住址、账号密码、财产状况、行踪轨迹等,其最根本的特征在于能够识别个人身份或者体现个人活动。

Comma-separated values (CSV) is a text data format that uses commas to separate values, and newlines to separate records. CSV data stores tabular data (numbers and text) in plain text, where each line typically represents one data record. Each record consists of the same number of fields, and these are separated by commas. If the field delimiter itself may appear within a field, fields can be surrounded with quotation marks.[3]

CSV is a more specific variant of delimiter-separated values (DSV),[4] but the two are often conflated. CSV data is often stored in a file with a .csv extension, but sometimes the same extension is used for data delimited by a character other than comma. Also, software that consumes or produce CSV data may allow an alternative delimiter in order to more broadly support DSV.[5]

The lack of adherence to the CSV standard RFC 4180 necessitates the support for a variety of CSV formats in data input software. Despite this drawback, CSV remains widespread in data applications and is widely supported by a variety of software, including common spreadsheet applications such as Microsoft Excel.[6] Benefits cited in favor of CSV include human readability and the simplicity of the format.[7]

Applications

[edit]

CSV is a common data exchange format that is widely supported by consumer, business, and scientific applications. Among its most common uses is moving tabular data[8][9] between programs that natively operate on incompatible (often proprietary or undocumented) formats.[1] For example, a user may need to transfer information from a database program that stores data in a proprietary format, to a spreadsheet that uses a completely different format. Most database programs can export data as CSV. Most spreadsheet programs can read CSV data, allowing CSV to be used as an intermediate format when transferring data from a database to a spreadsheet. Every major ecommerce platform provides support for exporting data as a CSV file.[10]

CSV is also used for storing data. Common data science tools such as Pandas include the option to export data to CSV for long-term storage.[11] Benefits of CSV for data storage include the simplicity of CSV makes parsing and creating CSV files easy to implement and fast compared to other data formats, human readability making editing or fixing data simpler,[12] and high compressibility leading to smaller data files.[13] Alternatively, CSV does not support more complex data relations and makes no distinction between null and empty values, and in applications where these features are needed other formats are preferred.

More than 200 local, regional, and national data portals, such as those of the UK government and the European Commission, use CSV files with standardized data catalogs.[14]

Specification

[edit]

RFC 4180 proposes a specification for the CSV format; however, actual practice often does not follow the RFC and the term "CSV" might refer to any file that:[1][15]

  1. is plain text using a character encoding such as ASCII, various Unicode character encodings (e.g. UTF-8), EBCDIC, or Shift JIS,
  2. consists of records (typically one record per line),
  3. with the records divided into fields separated by a comma,
  4. where every record has the same sequence of fields.

Within these general constraints, many variations are in use. Therefore, without additional information (such as whether RFC 4180 is honored), a file claimed simply to be in "CSV" format is not fully specified.

History

[edit]

Comma-separated values is a data format that predates personal computers by more than a decade: the IBM Fortran (level H extended) compiler under OS/360 supported CSV in 1972.[16] List-directed ("free form") input/output was defined in FORTRAN 77, approved in 1978. List-directed input used commas or spaces for delimiters, so unquoted character strings could not contain commas or spaces.[17]

The term "comma-separated value" and the "CSV" abbreviation were in use by 1983.[18] The manual for the Osborne Executive computer, which bundled the SuperCalc spreadsheet, documents the CSV quoting convention that allows strings to contain embedded commas, but the manual does not specify a convention for embedding quotation marks within quoted strings.[19]

Comma-separated value lists are easier to type (for example into punched cards) than fixed-column-aligned data, and they were less prone to producing incorrect results if a value was punched one column off from its intended location.

Comma separated files are used for the interchange of database information between machines of two different architectures. The plain-text character of CSV files largely avoids incompatibilities such as byte-order and word size. The files are largely human-readable, so it is easier to deal with them in the absence of perfect documentation or communication.[20]

The main standardization initiative—transforming "de facto fuzzy definition" into a more precise and de jure one—was in 2005, with RFC 4180, defining CSV as a MIME Content Type.[21] Later, in 2013, some of RFC 4180's deficiencies were tackled by a W3C recommendation.[22]

In 2014 IETF published RFC 7111 describing the application of URI fragments to CSV documents. RFC 7111 specifies how row, column, and cell ranges can be selected from a CSV document using position indexes.[23]

In 2015 W3C, in an attempt to enhance CSV with formal semantics, publicized the first drafts of recommendations for CSV metadata standards, which began as recommendations in December of the same year.[24]

General functionality

[edit]

CSV formats are best used to represent sets or sequences of records in which each record has an identical list of fields. This corresponds to a single relation in a relational database, or to data (though not calculations) in a typical spreadsheet.

The format dates back to the early days of business computing and is widely used to pass data between computers with different internal word sizes, data formatting needs, and so forth. For this reason, CSV files are common on all computer platforms.

CSV is a delimited text file that uses a comma to separate values (many implementations of CSV import/export tools allow other separators to be used; for example, the use of a "Sep=^" row as the first row in the *.csv file will cause Excel to open the file expecting caret "^" to be the separator instead of comma ","). Simple CSV implementations may prohibit field values that contain a comma or other special characters such as newlines. More sophisticated CSV implementations permit them, often by requiring " (double quote) characters around values that contain reserved characters (such as commas, double quotes, or less commonly, newlines). Embedded double quote characters may then be represented by a pair of consecutive double quotes,[25] or by prefixing a double quote with an escape character such as a backslash (for example in Sybase Central).

CSV formats are not limited to a particular character set.[1] They work just as well with Unicode character sets (such as UTF-8 or UTF-16) as with ASCII (although particular programs that support CSV may have their own limitations). CSV files normally will even survive na?ve translation from one character set to another (unlike nearly all proprietary data formats). CSV does not, however, provide any way to indicate what character set is in use, so that must be communicated separately, or determined at the receiving end (if possible).

Databases that include multiple relations cannot be exported as a single CSV file[citation needed]. Similarly, CSV cannot naturally represent hierarchical or object-oriented data. This is because every CSV record is expected to have the same structure. CSV is therefore rarely appropriate for documents created with HTML, XML, or other markup or word-processing technologies.

Statistical databases in various fields often have a generally relation-like structure, but with some repeatable groups of fields. For example, health databases such as the Demographic and Health Survey typically repeat some questions for each child of a given parent (perhaps up to a fixed maximum number of children). Statistical analysis systems often include utilities that can "rotate" such data; for example, a "parent" record that includes information about five children can be split into five separate records, each containing (a) the information on one child, and (b) a copy of all the non-child-specific information. CSV can represent either the "vertical" or "horizontal" form of such data.

In a relational database, similar issues are readily handled by creating a separate relation for each such group, and connecting "child" records to the related "parent" records using a foreign key (such as an ID number or name for the parent). In markup languages such as XML, such groups are typically enclosed within a parent element and repeated as necessary (for example, multiple <child> nodes within a single <parent> node). With CSV there is no widely accepted single-file solution.

Standardization

[edit]

The name "CSV" indicates the use of the comma to separate data fields. Nevertheless, the term "CSV" is widely used to refer to a large family of formats that differ in many ways. Some implementations allow or require single or double quotation marks around some or all fields; and some reserve the first record as a header containing a list of field names. The character set being used is undefined: some applications require a Unicode byte order mark (BOM) to enforce Unicode interpretation (sometimes even a UTF-8 BOM).[1] Files that use the tab character instead of comma can be more precisely referred to as "TSV" for tab-separated values.

Other implementation differences include the handling of more commonplace field separators (such as space or semicolon) and newline characters inside text fields. One more subtlety is the interpretation of a blank line: it can equally be the result of writing a record of zero fields, or a record of one field of zero length; thus decoding it is ambiguous.

RFC 4180 and MIME standards

[edit]

The 2005 technical standard RFC 4180 formalizes the CSV file format and defines the MIME type "text/csv" for the handling of text-based fields. However, the interpretation of the text of each field is still application-specific. Files that follow the RFC 4180 standard can simplify CSV exchange and should be widely portable. Among its requirements:

  • MS-DOS-style lines that end with (CR/LF) characters (optional for the last line).
  • An optional header record (there is no sure way to detect whether it is present, so care is required when importing).
  • Each record should contain the same number of comma-separated fields.
  • Any field may be quoted (with double quotes).
  • Fields containing a line-break, double-quote or commas should be quoted. (If they are not, the file will likely be impossible to process correctly.)
  • If double-quotes are used to enclose fields, then a double-quote in a field must be represented by two double-quote characters.

The format can be processed by most programs that claim to read CSV files. The exceptions are (a) programs may not support line-breaks within quoted fields, (b) programs may confuse the optional header with data or interpret the first data line as an optional header, and (c) double-quotes in a field may not be parsed correctly automatically.

OKF frictionless tabular data package

[edit]

In 2011 Open Knowledge Foundation (OKF) and various partners created a data protocols working group, which later evolved into the Frictionless Data initiative. One of the main formats they released was the Tabular Data Package. Tabular Data package was heavily based on CSV, using it as the main data transport format and adding basic type and schema metadata (CSV lacks any type information to distinguish the string "1" from the number 1).[26]

The Frictionless Data Initiative has also provided a standard CSV Dialect Description Format for describing different dialects of CSV, for example specifying the field separator or quoting rules.[27]

W3C tabular data standard

[edit]

In 2013 the W3C "CSV on the Web" working group began to specify technologies providing higher interoperability for web applications using CSV or similar formats.[28] The working group completed its work in February 2016 and is officially closed in March 2016 with the release of a set of documents and W3C recommendations[29] for modeling "Tabular Data",[24] and enhancing CSV with metadata and semantics.

While the well-formedness of CSV data can readily checked, testing validity and canonical form is less well developed, relative to more precise data formats, such as XML and SQL, which offer richer types and rules-based validation.[30]

Basic rules

[edit]

Many informal documents exist that describe "CSV" formats. IETF RFC 4180 (summarized above) defines the format for the "text/csv" MIME type registered with the IANA.

Rules typical of these and other "CSV" specifications and implementations are as follows:

  • CSV is a delimited data format that has fields/columns separated by the comma character and records/rows terminated by newlines.
  • A CSV file does not require a specific character encoding, byte order, or line terminator format (some software do not support all line-end variations).
  • A record ends at a line terminator. However, line terminators can be embedded as data within fields, so software must recognize quoted line-separators (see below) in order to correctly assemble an entire record from perhaps multiple lines.
  • All records should have the same number of fields, in the same order.
  • Data within fields is interpreted as a sequence of characters, not as a sequence of bits or bytes (see RFC 2046, section 4.1). For example, the numeric quantity 65535 may be represented as the 5 ASCII characters "65535" (or perhaps other forms such as "0xFFFF", "000065535.000E+00", etc.); but not as a sequence of 2 bytes intended to be treated as a single binary integer rather than as two characters (e.g. the numbers 11264–11519 have a comma as their high order byte: ord(',')*256..ord(',')*256+255). If this "plain text" convention is not followed, then the CSV file no longer contains sufficient information to interpret it correctly, the CSV file will not likely survive transmission across differing computer architectures, and will not conform to the text/csv MIME type.
  • Adjacent fields must be separated by a single comma. However, "CSV" formats vary greatly in this choice of separator character. In particular, in locales where the comma is used as a decimal separator, a semicolon, tab character, or other character is used instead.
    1997,Ford,E350
  • Any field may be quoted (that is, enclosed within double-quote characters), while some fields must be quoted, as specified in the following rules and examples:
    "1997","Ford","E350"
  • Fields with embedded commas or double-quote characters must be quoted.
    1997,Ford,E350,"Super, luxurious truck"
  • Each of the embedded double-quote characters must be represented by a pair of double-quote characters.
    1997,Ford,E350,"Super, ""luxurious"" truck"
  • Fields with embedded line breaks must be quoted (however, many CSV implementations do not support embedded line breaks).
    1997,Ford,E350,"Go get one now
    they are going fast"
    
  • In some CSV implementations[which?], leading and trailing spaces and tabs are trimmed (ignored). Such trimming is forbidden by RFC 4180, which states "Spaces are considered part of a field and should not be ignored."
    1997, Ford, E350
    not same as
    1997,Ford,E350
    
  • According to RFC 4180, spaces outside quotes in a field are not allowed[failed verification]; however, the RFC also says that "Spaces are considered part of a field and should not be ignored." and "Implementers should 'be conservative in what you do, be liberal in what you accept from others' (RFC 793, section 2.10) when processing CSV files."
    1997, "Ford" ,E350
  • In CSV implementations that do trim leading or trailing spaces, fields with such spaces as meaningful data must be quoted.
    1997,Ford,E350," Super luxurious truck "
  • Double quote processing need only apply if the field starts with a double quote. Note, however, that double quotes are not allowed in unquoted fields according to RFC 4180.
    Los Angeles,34°03′N,118°15′W
    New York City,40°42′46″N,74°00′21″W
    Paris,48°51′24″N,2°21′03″E
    
  • The first record may be a "header", which contains column names in each of the fields (there is no reliable way to tell whether a file does this or not; however, it is uncommon to use characters other than letters, digits, and underscores in such column names).
    Year,Make,Model
    1997,Ford,E350
    2000,Mercury,Cougar
    

Example

[edit]
Year Make Model Description Price
1997 Ford E350 ac, abs, moon 3000.00
1999 Chevy Venture "Extended Edition" 4900.00
1999 Chevy Venture "Extended Edition, Very Large" 5000.00
1996 Jeep Grand Cherokee MUST SELL!
air, moon roof, loaded
4799.00

The above table of data may be represented in CSV format as follows:

Year,Make,Model,Description,Price
1997,Ford,E350,"ac, abs, moon",3000.00
1999,Chevy,"Venture ""Extended Edition""","",4900.00
1999,Chevy,"Venture ""Extended Edition, Very Large""","",5000.00
1996,Jeep,Grand Cherokee,"MUST SELL!
air, moon roof, loaded",4799.00

Example of a USA/UK CSV file (where the decimal separator is a period/full stop and the value separator is a comma):

Year,Make,Model,Length
1997,Ford,E350,2.35
2000,Mercury,Cougar,2.38

Example of an analogous European CSV/DSV file (where the decimal separator is a comma and the value separator is a semicolon):

Year;Make;Model;Length
1997;Ford;E350;2,35
2000;Mercury;Cougar;2,38

The latter format is not RFC 4180 compliant.[31] Compliance could be achieved by the use of a comma instead of a semicolon as a separator and by quoting all numbers that have a decimal mark.

Application support

[edit]

Some applications use CSV as a data interchange format to enhance its interoperability, exporting and importing CSV. Others use CSV as an internal format.

As a data interchange format: the CSV file format is supported by almost all spreadsheets and database management systems,

  • Spreadsheets including Apple Numbers, LibreOffice Calc, and Apache OpenOffice Calc. Microsoft Excel also supports a dialect of CSV with restrictions in comparison to other spreadsheet software (e.g., as of 2019 Excel still cannot export CSV files in the commonly used UTF-8 character encoding, and separator is not enforced to be the comma). LibreOffice Calc CSV importer is actually a more generic delimited text importer, supporting multiple separators at the same time as well as field trimming.
  • Various Relational databases support saving query results to a CSV file. PostgreSQL provides the COPY command, which allows for both saving and loading data to and from a file. COPY (SELECT * FROM articles) TO '/home/wikipedia/file.csv' (FORMAT csv) saves the content of a table articles to a file called /home/wikipedia/file.csv.[32]
  • Many utility programs on Unix-style systems (such as cut, paste, join, sort, uniq, awk) can split files on a comma delimiter, and can therefore process simple CSV files. However, this method does not correctly handle commas or new lines within quoted strings, hence it is better to use tools like csvkit or Miller.

As (main or optional) internal representation. Can be native or foreign, but differ from interchange format ("export/import only") because it is not necessary to create a copy in another format:

  • Some Spreadsheets including LibreOffice Calc offers this option, without enforcing user to adopt another format.
  • Some relational databases, when using standard SQL, offer foreign-data wrapper (FDW). For example, PostgreSQL offers the CREATE FOREIGN TABLE[33] and CREATE EXTENSION file_fdw[34] commands to configure any variant of CSV.
  • Databases like Apache Hive offer the option to express CSV or .csv.gz as an internal table format.
  • The emacs editor can operate on CSV files using csv-nav mode.[35]

CSV format is supported by libraries available for many programming languages. Most provide some way to specify the field delimiter, decimal separator, character encoding, quoting conventions, date format, etc.

Software and row limits

[edit]

Programs that work with CSV may have limits on the maximum number of rows CSV files can have. Below is a list of common software and its limitations:[36]

  • Microsoft Excel: 1,048,576 row limit;
  • Microsoft PowerShell, no row or cell limit. (Memory Limited)
  • Apple Numbers: 1,000,000 row limit;
  • Google Sheets: 10,000,000 cell limit (the product of columns and rows);
  • OpenOffice and LibreOffice: 1,048,576 row limit;
  • Sourcetable:[37] no row limit. (Spreadsheet-database hybrid);
  • Text Editors (such as WordPad, TextEdit, Vim, etc.): no row or cell limit;
  • Databases (COPY command and FDW): no row or cell limit.

See also

[edit]

References

[edit]
  1. ^ a b c d e Shafranovich, Y. (October 2005). Common Format and MIME Type for CSV Files. IETF. p. 1. doi:10.17487/RFC4180. RFC 4180.
  2. ^ a b "commaSeparatedText". Apple Developer Documentation: Uniform Type Identifiers. Apple Inc. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  3. ^ "CSV Comma Separated Value File Format - How To - Creativyst - Explored,Designed,Delivered.(sm)". Creativyst Software. Archived from the original on 1 April 2021. Retrieved 22 August 2023.
  4. ^ IBM DB2 Administration Guide. IBM. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  5. ^ "Which are the available formats". Eurostat. Archived from the original on 26 July 2023. Retrieved 22 August 2023.
  6. ^ "Import or export text (.txt or .csv) files". Microsoft Support. Retrieved 2025-08-07.
  7. ^ "What is a CSV file: A comprehensive guide". flatfile.com. Retrieved 2025-08-07.
  8. ^ "CSV - Comma Separated Values". Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  9. ^ "CSV Files". Archived from the original on April 30, 2021. Retrieved June 4, 2014.
  10. ^ "CSV Supported Ecommerce Platforms". RFM Calc. Retrieved 2025-08-07.
  11. ^ "pandas.DataFrame.to_csv — pandas 2.0.3 documentation". pandas.pydata.org. Retrieved 2025-08-07.
  12. ^ "CSV Format: History, Advantages and Why It Is Still Popular". ByteScout. 2025-08-07. Retrieved 2025-08-07.
  13. ^ "Comparison of different file formats in Big Data". www.adaltas.com. 2025-08-07. Retrieved 2025-08-07.
  14. ^ Mahmud, S M Hasan; Hossin, Md Altab; Jahan, Hosney; Noori, Sheak Rashed Haider; Bhuiyan, Touhid (2018). "CSV-ANNOTATE: Generate annotated tables from CSV file". 2018 International Conference on Artificial Intelligence and Big Data (ICAIBD). IEEE. pp. 71–75. doi:10.1109/ICAIBD.2018.8396169. ISBN 978-1-5386-6987-7.
  15. ^ "Comma Separated Values (CSV) Standard File Format". Edoceo, Inc. Archived from the original on July 14, 2020. Retrieved June 4, 2014.
  16. ^ IBM FORTRAN Program Products for OS and the CMS Component of VM/370 General Information (PDF) (first ed.), July 1972, p. 17, GC28-6884-0, archived (PDF) from the original on March 4, 2016, retrieved February 5, 2016, For users familiar with the predecessor FORTRAN IV G and H processors, these are the major new language capabilities
  17. ^ "List-Directed I/O", Fortran 77 Language Reference, Oracle, archived from the original on 2025-08-07, retrieved 2025-08-07
  18. ^ "SuperCalc2, spreadsheet package for IBM, CP/M". Retrieved December 11, 2017.
  19. ^ "Comma-Separated-Value Format File Structure". 1983. Retrieved December 11, 2017.
  20. ^ "CSV, Comma Separated Values (RFC 4180)". Retrieved June 4, 2014.
  21. ^ Common Format and MIME Type for Comma-Separated Values (CSV) Files. doi:10.17487/RFC4180. RFC 4180. Retrieved December 22, 2020.
  22. ^ See sparql11-results-csv-tsv, the first W3C recommendation scoped in CSV and filling some of RFC 4180's deficiencies.
  23. ^ URI Fragment Identifiers for the text/csv Media Type. doi:10.17487/RFC7111. RFC 7111. Retrieved December 22, 2020.
  24. ^ a b "Model for Tabular Data and Metadata on the Web". 17 December 2015. Retrieved March 23, 2016. (W3C Recommendation)
  25. ^ *Creativyst (2010), How To: The Comma Separated Value (CSV) File Format, creativyst.com, archived from the original on April 4, 2021, retrieved May 24, 2010
  26. ^ "Tabular Data Package". Frictionless Data Specs.
  27. ^ "CSV Dialect". Frictionless Data Specs.
  28. ^ "CSV on the Web Working Group". W3C CSV WG. 2013. Retrieved 2025-08-07.
  29. ^ "CSV on the Web Repository". (on GitHub)
  30. ^ "Rules Or Schemas". CsvPath Project. 2024. Retrieved 2025-08-07.
  31. ^ Shafranovich (2005) states, "Within the header and each record, there may be one or more fields, separated by commas."
  32. ^ "Documentation: 14: COPY". PostgreSQL. Retrieved 2025-08-07.
  33. ^ "Documentation: 14: F.35. postgres_fdw". PostgreSQL. 2025-08-07. Retrieved 2025-08-07.
  34. ^ "Documentation: 14: F.14. file_fdw". PostgreSQL. 2025-08-07. Retrieved 2025-08-07.
  35. ^ "EmacsWiki: Csv Nav". www.emacswiki.org.
  36. ^ "Understanding CSV and row limits". Archived from the original on January 15, 2021. Retrieved Feb 28, 2021.
  37. ^ "large data spreadsheet". Sourcetable Inc. 2024. Retrieved 2025-08-07.

Further reading

[edit]
家门是什么意思 mrv是什么检查 不管事是什么意思 处女座的幸运色是什么颜色 治便秘吃什么
儿童鼻炎挂什么科 狼图腾是什么意思 温开水冲服是什么意思 tommy什么牌子 鸡爪煲汤放什么材料
寒风吹起细雨迷离是什么歌 殁送是什么意思 为什么想到一个人会心痛 家和万事兴是什么意思 为什么小腿肌肉酸痛
edv是什么意思 夏天吃什么 粗茶淡饭下一句是什么 头皮毛囊炎用什么洗发水 生育证是什么
什么是大三阳和小三阳hebeidezhi.com aut0是什么意思0735v.com 响是什么意思hcv9jop1ns6r.cn 广州五行属什么hcv9jop2ns4r.cn 8朵玫瑰花代表什么意思hcv7jop7ns2r.cn
头疼发烧吃什么药0735v.com 失眠是什么意思hcv8jop7ns9r.cn 骨质疏松吃什么药好hcv9jop5ns0r.cn 探囊取物是什么意思sanhestory.com 感冒发烧吃什么好hcv8jop8ns9r.cn
薄情是什么意思hcv8jop5ns7r.cn 梦见好多蛇是什么意思hcv9jop6ns1r.cn 水杯用什么材质的好hcv7jop9ns3r.cn 感谢老师送什么花hcv9jop3ns8r.cn 刷屏是什么意思hcv8jop5ns5r.cn
99足银是什么意思hcv8jop9ns2r.cn 农田种什么最赚钱hcv8jop7ns1r.cn 四个火念什么hcv9jop6ns5r.cn 幽门螺杆菌挂什么科xianpinbao.com psv医学是什么意思hcv8jop3ns0r.cn
百度