maxframe.dataframe.read_clipboard#
- maxframe.dataframe.read_clipboard(sep=None, **kwargs)[source]#
Read text from clipboard and pass to
read_csv().Parses clipboard contents similar to how CSV files are parsed using
read_csv().- Parameters:
sep (str, default 's+') – A string or regex delimiter. The default of
'\s+'denotes one or more whitespace characters.**kwargs – See
read_csv()for the full argument list.
- Returns:
A parsed
DataFrameobject.- Return type:
See also
DataFrame.to_clipboardCopy object to the system clipboard.
read_csvRead a comma-separated values (csv) file into DataFrame.
read_fwfRead a table of fixed-width formatted lines into DataFrame.
Examples
>>> import maxframe.dataframe as md >>> df = md.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['A', 'B', 'C']) >>> df.to_clipboard() >>> md.read_clipboard() A B C 0 1 2 3 1 4 5 6