id int64 0 25.6k | text stringlengths 0 4.59k |
|---|---|
6,300 | other_book pyexcel book(other_book bookdict book_dict print(other_book plainsheet sheet sheet you can set via 'xlsattribute too another_book pyexcel book(another_book xls other_book xls print(another_book mediawikisheet {class="wikitablestyle="text-alignleft;||align="right" |align="right" |align="right" |align="right" ... |
6,301 | (continued from previous pagesheet +---+---+--- +---+---+--- +---+---+--- +---+---+---sheet +---+---+--- +---+---+--- +---+---+--- +---+---+---sheet +---+---+--- +---+---+--- +---+---+--- +---+---+---getters and setters you can pass on source specific parameters to getter and setter functions content "\nsheet pyexcel s... |
6,302 | 'pyexcel-xls' (xlrd)'pyexcel-xlsx' (openpyxl)'pyexcel-ods' (odfpyand 'pyexcel-ods ' (pyexcel-ezodfwill read all data into memory because xlsxlsx and ods file are effective zipped folderall four will unzip the folder and read the content in xml format in fullso as to make sense of all details henceduring the partial dat... |
6,303 | pe get_sheet(file_name="your_file csv"start_row= row_limit= start_column= column_limit= your_file csv+----+---- +----+---- +----+---- +----+----the pagination support is available across all pyexcel plugins noteno column pagination support for query sets as data source formatting while transcoding big data file if you ... |
6,304 | (continued from previous page +---+----+----sheetdata access iterate csv file here is the way to read the csv file and iterate through each rowsheet pyexcel get_sheet(file_name='tutorial csv'for row in sheetprint("% % (row[ ]row[ ])nameage chu chu mo mo often people wanted to use csv dict reader to read it because it h... |
6,305 | (continued from previous page++---+---+--- ++---+---+--- ++---+---+--- ++---+---+---print(sheet[ ] print(sheet[" "] sheet[ print(sheet[ ] notein order to set value to cellplease use sheet[row_indexcolumn_indexnew_value random access to rows and columns continue with previous excel fileyou can access row and column sepa... |
6,306 | to access the same cellwe can use this linesheet row[" "][ for the same reasonthe row index has been reduced by since we have named columns and rowsit is possible to access the same cell like thisprint(sheet[" "" "] sheet[" "" " print(sheet[" "" "] notewhen you have named your rows and columnsin order to set value to c... |
6,307 | read the sheet as dictionary suppose you have csvxlsxlsx file as the followingthe following code will give you data series in dictionary"example xls","example xlsx","example xlsmsheet pyexcel get_sheet(file_name="example_series xls"name_columns_by_row= sheet to_dict(ordereddict([('column '[ ])('column '[ ])('column '[ ... |
6,308 | testcode:array [[ ][ ][ ]"output xls"output xlsx"output ods"output xlsmsheet pyexcel sheet(arraysheet save_as("output csv"suppose you have dictionary as the followingthe following code will write it as an excel file of your choiceexample_dict {"column "[ ]"column "[ ]"column "[ '- ]"output xls"output xlsx"output ods"ou... |
6,309 | (continued from previous pagesheet sheet work with data series in single sheet suppose you have the following data in any of the supported excel formats againsheet pyexcel get_sheet(file_name="example_series xls"name_columns_by_row= play with data you can get headersprint(list(sheet colnames)['column ''column ''column ... |
6,310 | sheetdata manipulation the data in sheet is represented by sheet which maintains the data as list of lists you can regard sheet as two dimensional array with additional iterators random access to individual column and row is exposed by column and row column manipulation suppose have one data file as the followingsheet ... |
6,311 | (continued from previous page ++ ++ ++append more columns to data file continue from previous example suppose you want add two more columns to the data file column column here is the example code to append two extra columnsextra_data ["column ""column "][ ][ ][ sheet pyexcel sheet(extra_datasheet column +sheet sheet co... |
6,312 | (continued from previous pagesheet pyexcel sheet(dataname_columns_by_row= sheet pyexcel sheet+---+---+---+---+---+---+---+--- +===+===+===+===+===+===+===+=== +---+---+---+---+---+---+---+---and you want to remove columns named as' '' ' ''hthis is how you do itdel sheet column[' '' '' '' 'sheet pyexcel sheet+---+---+--... |
6,313 | sheet pyexcel sheet+---+---+---+ row +---+---+---+ row +---+---+---+ row +---+---+---+you can name your rows by column index at sheet name_rows_by_column( sheet pyexcel sheet++---+---+---row ++---+---+---row ++---+---+---row ++---+---+---then you can access rows by its namesheet row["row "[' '' '' 'sheetdata filtering ... |
6,314 | filter out some data you may want to filter odd rows and print them in an array of dictionariessheet filter(row_indices=[ ]sheet content +++column column column +==========+==========+========== +++let' try to further filter out even columnssheet filter(column_indices=[ ]sheet content ++column column +==========+======... |
6,315 | (continued from previous page +---+---+--- +---+---+---sheetformatting previous section has assumed the data is in the format that you want in realityyou have to manipulate the data types bit to suit your needs henceformatters comes into the scene use format(to apply formatter immediately noteintfloat and datetime valu... |
6,316 | (continued from previous pagev release versions eda +++ v useful updates    freud +++now try to create custom cleanse functioncode-block:python def cleanse_func( ) replace(" """ rstrip(strip(return then let' create sheetformatter and apply itcode-block:python sheet map(cleanse_funcso in the ... |
6,317 | (continued from previous page+---+---+--- +---+---+--- +---+---+--- +---+---+---merge excel books suppose you have two excel books and each had three sheets you can merge them and get new bookyou also can merge individual sheetsbook pyexcel get_book(file_name="book xls"book pyexcel get_book(file_name="book xlsx"merged_... |
6,318 | content 'sheet '[ ][ ][ ]'sheet '[' '' '' '][ ][ ]'sheet '[' '' '' '][ ][ book pyexcel book(contentbook save_as("myfile csv"you will end up with three csv filesimport glob outputfiles glob glob("myfile_csv"for file in sorted(outputfiles)print(filemyfile__sheet __ csv myfile__sheet __ csv myfile__sheet __ csv and their ... |
6,319 | (continued from previous pagesheet +++ +++ +++ +++sheet +++ +++ +++ +++ cook book recipes warningthe pyexcel does not consider fontsstyles and charts at all in the resulting excel filesfontsstyles and charts will not be transferred these recipes give one-stop utility functions for known use cases similar functionality ... |
6,320 | column column column update one row of data file suppose you have the same data fileexample xls row row row and you want to update the second row with these data[ here is the codefrom pyexcel cookbook import update_rows custom_row {"row ":[ ]update_rows("example xls"custom_row"output xls"pyexcel get_sheet(file_name="ou... |
6,321 | from pyexcel cookbook import merge_two_files merge_two_files("example csv""example xls""output xls"the output xls would have the following datacolumn column column column column select candidate columns of two files and form new one suppose you have these two filesexample ods column column column column column column c... |
6,322 | from pyexcel cookbook import merge_two_readers sheet pyexcel get_sheet(file_name="example csv"name_columns_by_row= sheet pyexcel get_sheet(file_name="example xls"name_columns_by_row= del sheet column[ del sheet column[ merge_two_readers(sheet sheet "output xls"merge two files into book where each file become sheet supp... |
6,323 | example ods as sheet name and inside the sheetyou havecolumn column merge all excel files in directory into book where each file become sheet the following code will merge every excel files into one filesay "output xls"from pyexcel cookbook import merge_all_to_a_book import glob merge_all_to_a_book(glob glob("your_csv_... |
6,324 | (continued from previous pagesheet _output xls exists for the output fileyou can specify any of the supported formats loading from other sources get back into pyexcel list import pyexcel as two_dimensional_list [ ][ ][ ]sheet get_sheet(array=two_dimensional_listsheet pyexcel_sheet +---+----+----+---- +---+----+----+---... |
6,325 | (continued from previous page+++column column column +++ +++ +++ +++ +++records a_list_of_dictionaries "name"'adam'"age" }"name"'beatrice'"age" }"name"'ceri'"age" }"name"'dean'"age" sheet get_sheet(records=a_list_of_dictionariessheet pyexcel_sheet ++age name ++ adam ++ beatrice ++ ceri ++ dean ++book dict a_dictionary_... |
6,326 | (continued from previous page[ ][ ][ ]'sheet '[' '' '' '][ ][ ]'sheet '[' '' '' '][ ][ book get_book(bookdict=a_dictionary_of_two_dimensional_arraysbook sheet +++ +++ +++ +++sheet +++ +++ +++ +++sheet +++ +++ +++ +++how to load sheet from url suppose you have excel file somewhere hostedsheet pe get_sheet(url=sheet csv+... |
6,327 | for sheet get content another_sheet sheet(another_sheet url "'-basics/multiple-sheets-example xlsanother_sheet content +---+---+--- +---+---+--- +---+---+--- +---+---+---for book how about setting content via urlanother_book book(another_book url "'-multiple-sheets-example xlsanother_book sheet +---+---+--- +---+---+--... |
6,328 | real world cases questions and answers python flask writing to csv file and reading it pyqtimport xls file and populate qtablewidget how do write data to csv file in columns and rows from list in python how to write dictionary values to csv file using python python convert csv to xlsx how to read data from excel and se... |
6,329 | need the code for insert pyexcel solution if you could insert an id field to act as the primary keyit can be mapped using sqlalchemy' ormsqlite /tmp/stack db sqlitecreate table allproteins id intprotein_id char( )protein_key intvalue_of_key int )here is the data mapping script vis sqlalchemymapping your database via sq... |
6,330 | (continued from previous pagesheet get_sheet(array=resultssheet colnames ['protein_id''protein_key''value_of_key'print(sheet pyexcel_sheet +++protein_id protein_key value_of_key +============+=============+============== +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++sheet save_to_database(session=session()table=protei... |
6,331 | api documentation api reference this is intended for users of pyexcel signature functions obtaining data from excel file get_array(**keywordsget_dict([name_columns_by_row]get_records([name_columns_by_row]get_book_dict(**keywordsget_book(**keywordsget_sheet(**keywordsiget_book(**keywordsiget_array(**keywordsiget_records... |
6,332 | file_type the file type in file_content or file_stream session database session table database table modela django model adicta dictionary of one dimensional arrays url download http url for your excel file with_keys load with previous dictionary' keysdefault is true records list of dictionaries that have the same keys... |
6,333 | encodingcsv specific specify the file encoding the csv file for exampleencoding='latin especiallyencoding='utf- -sigwould add utf bom header if used in rendereror would parse csv with utf brom header used in parser escapechar one-character string used by the writer to escape the delimiter if quoting is set to quote_non... |
6,334 | (continued from previous page[ ][ ][ ][ ][ pe save_as(array=datadest_file_name="your_file csv"and let' pretend to read partial datape get_sheet(file_name="your_file csv"start_row= row_limit= your_file csv+---+----+---- +---+----+---- +---+----+---- +---+----+----and you could as well do the same for columnspe get_sheet... |
6,335 | formatting while transcoding big data file if you are transcoding big data setconventional formatting method would not help unless on-demand free ram is available howeverthere is way to minimize the memory footprint of pyexcel while the formatting is performed let' continue from previous example suppose we want to tran... |
6,336 | file_name file with supported file extension file_content the file content file_stream the file stream file_type the file type in file_content or file_stream session database session table database table modela django model adicta dictionary of one dimensional arrays url download http url for your excel file with_keys ... |
6,337 | delimiter field separator lineterminator line terminator encodingcsv specific specify the file encoding the csv file for exampleencoding='latin especiallyencoding='utf- -sigwould add utf bom header if used in rendereror would parse csv with utf brom header used in parser escapechar one-character string used by the writ... |
6,338 | import datetime import pyexcel as pe data [ ][ ][ ][ ][ ][ pe save_as(array=datadest_file_name="your_file csv"and let' pretend to read partial datape get_sheet(file_name="your_file csv"start_row= row_limit= your_file csv+---+----+---- +---+----+---- +---+----+---- +---+----+----and you could as well do the same for col... |
6,339 | noteno column pagination support for query sets as data source formatting while transcoding big data file if you are transcoding big data setconventional formatting method would not help unless on-demand free ram is available howeverthere is way to minimize the memory footprint of pyexcel while the formatting is perfor... |
6,340 | source loading from file loading from string loading from stream loading from sql loading from sql in django loading from query sets loading from dictionary loading from records loading from array loading from an url parameters file_namesheet_namekeywords file_contentfile_typesheet_namekeywords file_streamfile_typeshee... |
6,341 | auto_detect_float defaults to true auto_detect_int defaults to true auto_detect_datetime defaults to true ignore_infinity defaults to true library choose specific pyexcel-io plugin for reading source_library choose specific data source plugin for reading parser_library choose pyexcel parser plugin for reading skip_hidd... |
6,342 | pyexcel get_book_dict pyexcel get_book_dict(**keywordsobtain dictionary of two dimensional arrays it accepts the same parameters as get_book(but return dictionary instead here is table of parameterssource loading from file loading from string loading from stream loading from sql loading from django models loading from ... |
6,343 | lineterminator line terminator encodingcsv specific specify the file encoding the csv file for exampleencoding='latin especiallyencoding='utf- -sigwould add utf bom header if used in rendereror would parse csv with utf brom header used in parser escapechar one-character string used by the writer to escape the delimiter... |
6,344 | auto_detect_int defaults to true auto_detect_datetime defaults to true ignore_infinity defaults to true library choose specific pyexcel-io plugin for reading source_library choose specific data source plugin for reading parser_library choose pyexcel parser plugin for reading skip_hidden_sheetsdefault is true please tog... |
6,345 | pe get_sheet(file_name="your_file csv"start_row= row_limit= your_file csv+---+----+---- +---+----+---- +---+----+---- +---+----+----and you could as well do the same for columnspe get_sheet(file_name="your_file csv"start_column= column_limit= your_file csv+----+---- +----+---- +----+---- +----+---- +----+---- +----+---... |
6,346 | def increment_by_one(row)for element in rowyield element then pass it onto save_as function using row_rendererpe isave_as(file_name="your_file csv"row_renderer=increment_by_onedest_file_name="your_file xlsx"noteif the data content is from generatorisave_as has to be used we can verify if it was done correctlype get_she... |
6,347 | table database table modela django model adicta dictionary of one dimensional arrays url download http url for your excel file with_keys load with previous dictionary' keysdefault is true records list of dictionaries that have the same keys array two dimensional arraya list of lists sheet_name sheet name if sheet_name ... |
6,348 | escapechar one-character string used by the writer to escape the delimiter if quoting is set to quote_none and the quotechar if doublequote is false quotechar one-character string used to quote fields containing special characterssuch as the delimiter or quotecharor which contain new-line characters it defaults to '"qu... |
6,349 | file_stream the file stream file_type the file type in file_content or file_stream session database session tables list of database table models list of django models bookdict dictionary of two dimensional arrays url download http url for your excel file sheetsa list of mixed sheet names and sheet indices to be read th... |
6,350 | pyexcel iget_array pyexcel iget_array(**keywordsobtain generator of an two dimensional array from an excel source it is similiar to pyexcel get_array(but it has less memory footprint not all parameters are needed here is table source loading from file loading from string loading from stream loading from sql loading fro... |
6,351 | skip_column_funcit allows you to write your own column skipping functions the protocol is to return pyexcel_io constants skip_data if skipping datapyexcel_io constants take_data to read datapyexcel_io constants stop_iteration to exit the reading procedure skip_empty_rowsbool defaults to false toggle it to true if the r... |
6,352 | formatting_infothe default is falsewhich saves memory when trueformatting information will be read from the spreadsheet file this provides all cellsincluding empty and blank cells formatting information is available for each cell ragged_rowsthe default of false means all rows are padded out with empty cells so that all... |
6,353 | pe get_sheet(file_name="your_file csv"start_column= column_limit= your_file csv+----+---- +----+---- +----+---- +----+---- +----+---- +----+---- +----+----obviousyou could do both at the same timepe get_sheet(file_name="your_file csv"start_row= row_limit= start_column= column_limit= your_file csv+----+---- +----+---- +... |
6,354 | noteif the data content is from generatorisave_as has to be used we can verify if it was done correctlype get_sheet(file_name="your_file xlsx"your_file csv+---+----+---- +---+----+---- +---+----+---- +---+----+---- +---+----+---- +---+----+---- +---+----+----not all parameters are needed here is table source loading fr... |
6,355 | sheet_name sheet name if sheet_name is not giventhe default sheet at index is loaded start_row [intdefaults to it allows you to skip rows at the begginning row_limitint defaults to - meaning till the end of the whole sheet it allows you to skip the tailing rows start_column [intdefaults to it allows you to skip columns... |
6,356 | parameters related to xls file formatplease note the following parameters apply to pyexcel-xls more details can be found in xlrd open_workbook(logfilean open file to which messages and diagnostics are written verbosityincreases the volume of trace material written to the logfile use_mmapwhether to use the mmap module i... |
6,357 | saving to source file memory sql django model parameters dest_file_namedest_sheet_name,dest_force_file_type keywords with prefix 'destdest_file_typedest_contentdest_sheet_namekeywords with prefix 'destdest_sessiondest_tabledest_initializerdest_mapdict dest_modeldest_initializerdest_mapdictdest_batch_size examples on st... |
6,358 | (continued from previous pagestart_column= column_limit= your_file csv+----+---- +----+---- +----+---- +----+----the pagination support is available across all pyexcel plugins noteno column pagination support for query sets as data source formatting while transcoding big data file if you are transcoding big data setcon... |
6,359 | not all parameters are needed here is table source loading from file loading from string loading from stream loading from sql loading from sql in django loading from query sets loading from dictionary loading from records loading from array loading from an url parameters file_namesheet_namekeywords file_contentfile_typ... |
6,360 | row_rendereryou could choose to write custom row renderer when the data is being read auto_detect_float defaults to true auto_detect_int defaults to true auto_detect_datetime defaults to true ignore_infinity defaults to true library choose specific pyexcel-io plugin for reading source_library choose specific data sourc... |
6,361 | dest_file_typethis is needed if you want to save to memory dest_sessionthe target database session dest_tablethe target destination table dest_modelthe target django model dest_mapdicta mapping dictionary see pyexcel sheet save_to_memory(dest_initializera custom initializer function for table or model dest_mapdictnomin... |
6,362 | (continued from previous pagepe save_as(array=datadest_file_name="your_file csv"and let' pretend to read partial datape get_sheet(file_name="your_file csv"start_row= row_limit= your_file csv+---+----+---- +---+----+---- +---+----+---- +---+----+----and you could as well do the same for columnspe get_sheet(file_name="yo... |
6,363 | let' continue from previous example suppose we want to transcode "your_file csvto "your_file xlsbut increase each element by what we can do is to define row renderer function as the followingdef increment_by_one(row)for element in rowyield element then pass it onto save_as function using row_rendererpe isave_as(file_na... |
6,364 | file_type the file type in file_content or file_stream session database session table database table modela django model adicta dictionary of one dimensional arrays url download http url for your excel file with_keys load with previous dictionary' keysdefault is true records list of dictionaries that have the same keys... |
6,365 | encodingcsv specific specify the file encoding the csv file for exampleencoding='latin especiallyencoding='utf- -sigwould add utf bom header if used in rendereror would parse csv with utf brom header used in parser escapechar one-character string used by the writer to escape the delimiter if quoting is set to quote_non... |
6,366 | in additionthis function use pyexcel sheet to render the data which could have performance penalty in exchangeparameters for pyexcel sheet can be passed one name_columns_by_row when you use this function to work on physical filesthis function will leave its file handle open when you finish the operation on its datayou ... |
6,367 | source_library choose specific data source plugin for reading parser_library choose pyexcel parser plugin for reading skip_hidden_sheetsdefault is true please toggle it to read hidden sheets parameters related to csv file format for csvfmtparams are accepted delimiter field separator lineterminator line terminator enco... |
6,368 | here is table of parameterssource loading from file loading from string loading from stream loading from sql loading from django models loading from dictionary loading from an url parameters file_namekeywords file_contentfile_typekeywords file_streamfile_typekeywords sessiontables models bookdict url where the dictiona... |
6,369 | escapechar one-character string used by the writer to escape the delimiter if quoting is set to quote_none and the quotechar if doublequote is false quotechar one-character string used to quote fields containing special characterssuch as the delimiter or quotecharor which contain new-line characters it defaults to '"qu... |
6,370 | auto_detect_datetime automatically convert text to python datetime if possible this applies only pyexcel-io where csvtsvcsvz and tsvz formats are supported by defaultit does the detection setting it to false will turn on this behavior library name pyexcel plugin to handle file format in the situation where multiple plu... |
6,371 | outfilename (strsave the sheets with file suffix pyexcel extract_a_sheet_from_a_book pyexcel extract_a_sheet_from_a_book(file_namesheetnameoutfilename=noneextract sheet from excel book parameters file_name (stran accessible file name sheetname (stra valid sheet name outfilename (strsave the sheet as book here' the enti... |
6,372 | pyexcel book class pyexcel book(sheets=nonefilename='memory'path=noneread an excel book that has one or more sheets for csv filethere will be just one sheet __init__(sheets=nonefilename='memory'path=nonebook constructor selecting specific book according to filename extension parameters sheets dictionary of data filenam... |
6,373 | table continued from previous page get data in xlsx format indpendent function so that it could be called multiple times load_from_sheets(sheetsload content from existing sheets number_of_sheets(return the number of sheets plot([file_type]visualize the data register_input(file_type*[]partial(func*args**keywordsnew func... |
6,374 | table continued from previous page sheet_by_index(indexget the sheet with the specified index sheet_by_name(nameget the sheet with the specified name sheet_names(return all sheet names sort_sheets([keyreverse]to_dict(convert the book to dictionary attributes array bookdict csv csvz dict fods book grid handsontable hand... |
6,375 | pyexcel book number_of_sheets book number_of_sheets(return the number of sheets pyexcel book sheet_names book sheet_names(return all sheet names conversions book bookdict book url book csv book tsv book csvz book tsvz book xls book xlsm book xlsx book ods book stream get/set data in/from bookdict format set data in url... |
6,376 | book url if you need to pass on more parametersyou could usebook set_url(the_io_stream_in_url_format**keywordspyexcel book csv book csv get/set data in/from csv format you could obtain content in csv format by dot notationbook csv and you could as well set content by dot notationbook csv the_io_stream_in_csv_format if ... |
6,377 | book csvz the_io_stream_in_csvz_format if you need to pass on more parametersyou could usebook get_csvz(**keywordsbook set_csvz(the_io_stream_in_csvz_format**keywordspyexcel book tsvz book tsvz get/set data in/from tsvz format you could obtain content in tsvz format by dot notationbook tsvz and you could as well set co... |
6,378 | book xlsm the_io_stream_in_xlsm_format if you need to pass on more parametersyou could usebook get_xlsm(**keywordsbook set_xlsm(the_io_stream_in_xlsm_format**keywordspyexcel book xlsx book xlsx get/set data in/from xlsx format you could obtain content in xlsx format by dot notationbook xlsx and you could as well set co... |
6,379 | import pyexcel as get_book(bookdict={" "[[ ]]}csv_stream stream texttable print(csv_stream getvalue() +--- +---where stream xls getvalue(is equivalent to xls in some situation stream xls is prefered than xls sheet examplesimport pyexcel as sheet([[ ]]' 'csv_stream stream texttable print(csv_stream getvalue() +--- +---w... |
6,380 | header used in parser escapechar one-character string used by the writer to escape the delimiter if quoting is set to quote_none and the quotechar if doublequote is false quotechar one-character string used to quote fields containing special characterssuch as the delimiter or quotecharor which contain new-line characte... |
6,381 | initializers list of intialization functions for your tables and the sequence should match tablesmapdicts custom map dictionary for your data columns and the sequence should match tables optional parameters:param batch_sizedjango bulk_create batch size :param bulk_savewhether to use bulk_create or to use single save pe... |
6,382 | (continued from previous pageb+--- +---__init__(sheet=nonename='pyexcel sheet'name_columns_by_row=- name_rows_by_column= colnames=nonerownames=nonetranspose_before=falsetranspose_after=falseconstructor parameters sheet two dimensional array name this becomes the sheet name name_columns_by_row use row to name all column... |
6,383 | table continued from previous page get_handsontable(**keywordsget data in handsontable format get_handsontable_html(**keywordsget data in handsontable html format get_html(**__html getter is not defined get_internal_array(present internal array sheet get_json sheet get_latex sheet get_latex_booktabs sheet get_mediawiki... |
6,384 | table continued from previous page register_presentation(file_type[]partial(func*args**keywordsnew function with partial application of the given arguments and keywords reverse(opposite to enumerate row_at(indexgets the data at the specified row row_range(utility function to get row range rows(returns top to bottom row... |
6,385 | table continued from previous page set_xlsx(content**keywordsset data in xlsx format to_array(returns an array after filtering to_dict([row]returns dictionary to_records([custom_headers]make an array of dictionaries top([lines]preview top most rows top_left([rowscolumns]preview top corner transpose(rotate the data tabl... |
6,386 | attributes sheet content sheet number_of_rows(sheet number_of_columns(sheet row_range(sheet column_range(plain representation without headers the number of rows the number of columns utility function to get row range utility function to get column range pyexcel sheet content sheet content plain representation without h... |
6,387 | column (intcolumn index which starts from new_value (anynew value if this is to set the value pyexcel sheet __getitem__ sheet __getitem__(asetby defaultthis class recognize from top to bottom from left to right row access sheet row_at(indexsheet set_row_at(row_indexdata_arraysheet delete_rows(row_indicessheet extend_ro... |
6,388 | table continued from previous page sheet extend_columns(columnstake ordereddict to extend named columns pyexcel sheet column_at sheet column_at(indexgets the data at the specified column pyexcel sheet set_column_at sheet set_column_at(column_indexdata_arraystarting= updates column data range it works like this if the c... |
6,389 | sheet name_columns_by_row(row_indexsheet rownames sheet named_column_at(namesheet set_named_column_at(nameumn_arraysheet delete_named_column_at(namecoluse the elements of specified row to represent individual columns return row names if any get column by its name take the first row as column names works only after you ... |
6,390 | table continued from previous page sheet set_named_row_at(namerow_arraytake the first column as row names sheet delete_named_row_at(nametake the first column as row names pyexcel sheet name_rows_by_column sheet name_rows_by_column(column_indexuse the elements of specified column to represent individual rows the specifi... |
6,391 | sheet xlsx sheet ods sheet stream table continued from previous page get/set data in/from xlsx format get/set data in/from ods format return stream in which the content is properly encoded pyexcel sheet array sheet array get/set data in/from array format you could obtain content in array format by dot notationsheet arr... |
6,392 | sheet dict the_io_stream_in_dict_format if you need to pass on more parametersyou could usesheet get_dict(**keywordssheet set_dict(the_io_stream_in_dict_format**keywordspyexcel sheet url sheet url set data in url format you could set content in url format by dot notationsheet url if you need to pass on more parametersy... |
6,393 | sheet get_tsv(**keywordssheet set_tsv(the_io_stream_in_tsv_format**keywordspyexcel sheet csvz sheet csvz get/set data in/from csvz format you could obtain content in csvz format by dot notationsheet csvz and you could as well set content by dot notationsheet csvz the_io_stream_in_csvz_format if you need to pass on more... |
6,394 | sheet get_xls(**keywordssheet set_xls(the_io_stream_in_xls_format**keywordspyexcel sheet xlsm sheet xlsm get/set data in/from xlsm format you could obtain content in xlsm format by dot notationsheet xlsm and you could as well set content by dot notationsheet xlsm the_io_stream_in_xlsm_format if you need to pass on more... |
6,395 | sheet get_ods(**keywordssheet set_ods(the_io_stream_in_ods_format**keywordspyexcel sheet stream sheet stream return stream in which the content is properly encoded exampleimport pyexcel as get_book(bookdict={" "[[ ]]}csv_stream stream texttable print(csv_stream getvalue() +--- +---where stream xls getvalue(is equivalen... |
6,396 | (continued from previous page" "[ '',sheet pe get_sheet(adict=datasheet row[ [ sheet format(strsheet row[ [' '' '' '' 'sheet format(intsheet row[ [ filtering sheet filter([column_indicesrow_indices]apply the filter with immediate effect pyexcel sheet filter sheet filter(column_indices=nonerow_indices=noneapply the filt... |
6,397 | (continued from previous page+++ +=====+=====+===== +++ +++ +++sheet project([" "" "]pyexcel sheet++ +=====+===== ++ ++ ++sheet project([" "" "]exclusion=truepyexcel sheet+ +===== + + +pyexcel sheet transpose sheet transpose(rotate the data table by degrees reference transpose(pyexcel sheet map sheet map(custom_functio... |
6,398 | (continued from previous pagesheet pe get_sheet(adict=datasheet row[ [ inc lambda value(float(valueif value !'else )+ sheet map(incsheet row[ [ pyexcel sheet region sheet region(topleft_cornerbottomright_cornerget rectangle shaped data out parameters topleft_corner (slicethe top left corner of the rectangle bottomright... |
6,399 | (continued from previous page+----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+----+----+---- +----+----+----+----+----+----+----+... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.