import_csv方法
内容
[
隐藏
]import_csv
将 CSV 文件导入到单元格中。
def import_csv(self, file_name, options, first_row, first_column):
...
范围 | 类型 | 描述 |
---|---|---|
file_name | str | CSV 文件名。 |
options | TxtLoadOptions | 读取文本文件的加载选项 |
first_row | int | 要导入的第一个单元格的行号。 |
first_column | int | 要导入的第一个单元格的列号。 |
import_csv
将 CSV 文件导入到单元格中。
def import_csv(self, stream, options, first_row, first_column):
...
范围 | 类型 | 描述 |
---|---|---|
stream | io.RawIOBase | CSV 文件流。 |
options | TxtLoadOptions | 读取文本文件的加载选项 |
first_row | int | 要导入的第一个单元格的行号。 |
first_column | int | 要导入的第一个单元格的列号。 |
import_csv
将 CSV 文件导入到单元格中。
def import_csv(self, file_name, splitter, convert_numeric_data, first_row, first_column):
...
范围 | 类型 | 描述 |
---|---|---|
file_name | str | CSV 文件名。 |
splitter | str | 分离器 |
convert_numeric_data | bool | 文本文件中的字符串是否转换为数值数据。 |
first_row | int | 要导入的第一个单元格的行号。 |
first_column | int | 要导入的第一个单元格的列号。 |
import_csv
将 CSV 文件导入到单元格中。
def import_csv(self, stream, splitter, convert_numeric_data, first_row, first_column):
...
范围 | 类型 | 描述 |
---|---|---|
stream | io.RawIOBase | CSV 文件流。 |
splitter | str | 分离器 |
convert_numeric_data | bool | 文本文件中的字符串是否转换为数值数据。 |
first_row | int | 要导入的第一个单元格的行号。 |
first_column | int | 要导入的第一个单元格的列号。 |