Package: a-pandas-ex-csv-plus
When pd.read_csv(csvstring, sep='\s+') doesn't work ...pipinstalla-pandas-ex-csv-plusfroma_pandas_ex_csv_plusimportpd_add_convert_to_dfpd_add_convert_to_df()importpandasaspdxaxa='''2020-09-1022-30-03.mp4   2020-10-08 18-54-44.mp4   2020-10-14 19-46-34.mp42020-09-1022-30-10.mp4   2020-10-08 18-56-39.mp4   2020-10-17 12-11-54.mp42020-09-1022-30-13.mp4                            2020-10-17 13-23-56.mp42020-09-1022-30-33.mp42020-09-1022-30-38.mp42020-09-1022-30-41.mp4                            2020-10-17 13-30-27.mp42020-09-1022-31-03.mp4   2020-10-1115-49-19.mp4   2020-10-17 13-30-28.mp42020-09-1022-31-36.mp4   2020-10-1116-10-45.mp4   2020-10-17 13-30-41.mp42020-10-11 16-34-20.mp4   acesseoscursos.mp42020-10-1116-48-08.mp4    acesseoscursoscelular.mp42020-10-11 19-00-47.mp4    reaberturatrailer.mp42020-10-1119-08-19.mp4   rexmega.mp42020-10-0818-54-37.mp4  2020-10-1119-17-33.mp4'''## Pure Pandas - probably not what you want:print(pd.read_csv(StringIO(xaxa),sep=r'\s+',on_bad_lines='skip').to_string())2020-09-1022-30-03.mp42020-10-0818-54-44.mp42020-10-1419-46-34.mp402020-09-1022-30-10.mp42020-10-0818-56-39.mp42020-10-1712-11-54.mp412020-09-1022-30-13.mp42020-10-1713-23-56.mp4NaNNaN22020-09-1022-30-33.mp4NaNNaNNaNNaN32020-09-1022-30-38.mp4NaNNaNNaNNaN42020-09-1022-30-41.mp42020-10-1713-30-27.mp4NaNNaN52020-09-1022-31-03.mp42020-10-1115-49-19.mp42020-10-1713-30-28.mp4NaN62020-09-1022-31-36.mp42020-10-1116-10-45.mp42020-10-1713-30-41.mp4NaN72020-10-1116-34-20.mp4acesseoscursos.mp4NaNNaN82020-10-1116-48-08.mp4acesseoscursoscelular.mp4NaNNaNNaN92020-10-1119-00-47.mp4reaberturatrailer.mp4NaNNaN102020-10-1119-08-19.mp4rexmega.mp4NaNNaNNaN112020-10-0818-54-37.mp42020-10-1119-17-33.mp4NaNNaNNaNdf=pd.Q_convert_to_df(string_table=xaxa,regex_sep=r"\s+",tolerance=1)print(df.to_string())02302020-09-1022-30-03.mp42020-10-0818-54-44.mp42020-10-1419-46-34.mp412020-09-1022-30-10.mp42020-10-0818-56-39.mp42020-10-1712-11-54.mp422020-09-1022-30-13.mp42020-10-1713-23-56.mp432020-09-1022-30-33.mp442020-09-1022-30-38.mp452020-09-1022-30-41.mp42020-10-1713-30-27.mp462020-09-1022-31-03.mp42020-10-1115-49-19.mp42020-10-1713-30-28.mp472020-09-1022-31-36.mp42020-10-1116-10-45.mp42020-10-1713-30-41.mp482020-10-1116-34-20.mp4acesseoscursos.mp492020-10-1116-48-08.mp4acesseoscursoscelular.mp4102020-10-1119-00-47.mp4reaberturatrailer.mp4112020-10-1119-08-19.mp4rexmega.mp4122020-10-0818-54-37.mp42020-10-1119-17-33.mp4xaxa2="""com.blues  2003     system  mem   unknown                                         /dev/ashmem/dalvik-LinearAlloc (deleted)com.blues  2003     system  mem       CHR              10,60                 7622 /dev/bindercom.blues  2003     system  mem   unknown                                         /dev/ashmem/dalvik-indirect ref table (deleted)com.blues  2003     system  mem   unknown                                         /dev/ashmem/dalvik-allocspace zygote / non moving space live-bitmap 0 (deleted)com.blues  2003     system  mem       REG                8,1   8774704     263011 /system/lib/libart.socom.blues  2003     system  mem       REG                8,1     29176     263435 /system/fonts/NotoSansLao-Bold.ttfcom.blues  2003     system  mem       REG                8,1    411120     262703 /system/lib/libinputflinger.socom.andro 19725     u0_a54  cwd       DIR                0,2       820          2 /com.andro 19725     u0_a54  rtd       DIR                0,2       820          2 /com.andro 19725     u0_a54  txt       REG                8,1     17948     262260 /system/bin/app_process32com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-main space (deleted)com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-main space 1 (deleted)com.andro 19725     u0_a54  mem       REG               8,17   2125824    2228227 /data/dalvik-cache/x86/system@framework@boot.artcom.andro 19725     u0_a54  mem       REG               8,17   1167360    2228229 /data/dalvik-cache/x86/system@framework@boot-core-libart.artcom.andro 19725     u0_a54  mem       REG                8,1      5142     263912 /system/usr/hyphen-data/hyph-mn-cyrl.hybcom.andro 19725     u0_a54  mem       REG                8,1     35913     263879 /system/usr/hyphen-data/hyph-cy.hybcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem       REG                8,1     67076     262937 /system/lib/libkeymaster_messages.socom.andro 19725     u0_a54  mem       REG                8,1    202252     262648 /system/lib/libkeymaster1.socom.andro 19725     u0_a54  mem       REG                8,1    160904     262967 /system/lib/libsoftkeymasterdevice.socom.andro 19725     u0_a54  mem       REG                8,1    156172     262657 /system/lib/libjavacrypto.socom.andro 19725     u0_a54  mem       REG                8,1    124456     263004 /system/lib/libkeystore_binder.socom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem       REG               0,15    131072       6346 /dev/__properties__/u:object_r:logd_prop:s0com.andro 19725     u0_a54  mem       REG               0,15    131072       6339 /dev/__properties__/u:object_r:default_prop:s0com.andro 19725     u0_a54  mem       REG                8,1      8165     263886 /system/usr/hyphen-data/hyph-fr.hybcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem       REG                8,1       607     263890 /system/usr/hyphen-data/hyph-pa.hybcom.andro 19725     u0_a54  mem       REG                8,1      9716     262949 /system/lib/libkeystore-engine.socom.andro 19725     u0_a54  mem       REG                8,1       647     263924 /system/usr/hyphen-data/hyph-or.hybcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem       REG                8,1    518036     262595 /system/lib/libmedia_jni.socom.andro 19725     u0_a54  mem       REG                8,1    202168     263023 /system/lib/libexif.socom.andro 19725     u0_a54  mem       REG                8,1    136632     262593 /system/lib/libmtp.socom.andro 19725     u0_a54  mem       REG                8,1     71116     263050 /system/lib/libstagefright_amrnb_common.socom.andro 19725     u0_a54  mem       REG                8,1       687     263891 /system/usr/hyphen-data/hyph-mr.hybcom.andro 19725     u0_a54  mem       REG               0,15    131072       6352 /dev/__properties__/u:object_r:log_prop:s0com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem       REG                8,1    504430     263754 /system/usr/share/zoneinfo/tzdatacom.andro 19725     u0_a54  mem       REG                8,1  18677700     263362 /system/fonts/NotoSansCJK-Regular.ttccom.andro 19725     u0_a54  mem       REG                8,1      6967     263882 /system/usr/hyphen-data/hyph-da.hybcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-large object space allocation (deleted)com.andro 19725     u0_a54  mem       REG                8,1     40308     263449 /system/fonts/CarroisGothicSC-Regular.ttfcom.andro 19725     u0_a54  mem       REG                8,1  22201456     263865 /system/usr/icu/icudt56l.datcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-LinearAlloc (deleted)com.andro 19725     u0_a54  mem       REG               8,17   1663816    2228313 /data/dalvik-cache/x86/system@app@PrintSpooler@PrintSpooler.apk@classes.dexcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-indirect ref table (deleted)com.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-indirect ref table (deleted)com.andro 19725     u0_a54  mem       REG                8,1   4912800     262602 /system/lib/libart-compiler.socom.andro 19725     u0_a54  mem       REG                8,1   1232260     262969 /system/lib/libvixl.socom.andro 19725     u0_a54  mem       REG                8,1  22201456     263865 /system/usr/icu/icudt56l.datcom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-Jit thread pool worker thread 0 (deleted)com.andro 19725     u0_a54  mem       CHR              10,60                 7622 /dev/bindercom.andro 19725     u0_a54  mem   unknown                                         /dev/ashmem/dalvik-allocspace zygote / non moving space live-bitmap 0 (deleted)com.andro 19725     u0_a54  mem       REG                8,1   8774704     263011 /system/lib/libart.socom.andro 19725     u0_a54  mem       REG                8,1     29176     263435 /system/fonts/NotoSansLao-Bold.ttfcom.andro 19725     u0_a54  mem       REG                8,1    411120     262703 /system/lib/libinputflinger.socom.andro 19725     u0_a54  mem       REG                8,1     42532     262665 /system/lib/libnativeloader.socom.andro 19725     u0_a54  mem       REG                8,1     30228     262758 /system/lib/libhardware_legacy.socom.andro 19725     u0_a54  mem       REG                8,1     46512     263059 /system/lib/libRS.so"""# Pure Pandas - probably not what you want:print(pd.read_csv(StringIO(xaxa2),sep=r'\s+',on_bad_lines='skip').to_string())com.blues2003systemmemunknown/dev/ashmem/dalvik-LinearAlloc(deleted)com.blues2003systemmemCHR10,607622/dev/bindercom.andro19725u0_a54memunknown/dev/ashmem/dalvik-mainspace(deleted)com.andro19725u0_a54memunknown/dev/ashmem/dalvik-LinearAlloc(deleted)NaNcom.andro19725u0_a54memCHR10,607622/dev/binderdf2=pd.Q_convert_to_df(string_table=xaxa2,regex_sep=r"\s+",tolerance=1)print(df2.to_string())016811252731320com.blues2003systemmemunknown/dev/ashmem/dalvik-LinearAlloc(deleted)1com.blues2003systemmemCHR10,607622/dev/binder2com.blues2003systemmemunknown/dev/ashmem/dalvik-indirectreftable(deleted)3com.blues2003systemmemunknown/dev/ashmem/dalvik-allocspacezygote/nonmovingspacelive-bitmap0(deleted)4com.blues2003systemmemREG8,18774704263011/system/lib/libart.so5com.blues2003systemmemREG8,129176263435/system/fonts/NotoSansLao-Bold.ttf6com.blues2003systemmemREG8,1411120262703/system/lib/libinputflinger.so7com.andro19725u0_a54cwdDIR0,28202/8com.andro19725u0_a54rtdDIR0,28202/9com.andro19725u0_a54txtREG8,117948262260/system/bin/app_process3210com.andro19725u0_a54memunknown/dev/ashmem/dalvik-mainspace(deleted)11com.andro19725u0_a54memunknown/dev/ashmem/dalvik-mainspace1(deleted)12com.andro19725u0_a54memREG8,1721258242228227/data/dalvik-cache/x86/system@framework@boot.art13com.andro19725u0_a54memREG8,1711673602228229/data/dalvik-cache/x86/system@framework@boot-core-libart.art14com.andro19725u0_a54memREG8,15142263912/system/usr/hyphen-data/hyph-mn-cyrl.hyb15com.andro19725u0_a54memREG8,135913263879/system/usr/hyphen-data/hyph-cy.hyb16com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)17com.andro19725u0_a54memREG8,167076262937/system/lib/libkeymaster_messages.so18com.andro19725u0_a54memREG8,1202252262648/system/lib/libkeymaster1.so19com.andro19725u0_a54memREG8,1160904262967/system/lib/libsoftkeymasterdevice.so20com.andro19725u0_a54memREG8,1156172262657/system/lib/libjavacrypto.so21com.andro19725u0_a54memREG8,1124456263004/system/lib/libkeystore_binder.so22com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)23com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)24com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)25com.andro19725u0_a54memREG0,151310726346/dev/__properties__/u:object_r:logd_prop:s026com.andro19725u0_a54memREG0,151310726339/dev/__properties__/u:object_r:default_prop:s027com.andro19725u0_a54memREG8,18165263886/system/usr/hyphen-data/hyph-fr.hyb28com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)29com.andro19725u0_a54memREG8,1607263890/system/usr/hyphen-data/hyph-pa.hyb30com.andro19725u0_a54memREG8,19716262949/system/lib/libkeystore-engine.so31com.andro19725u0_a54memREG8,1647263924/system/usr/hyphen-data/hyph-or.hyb32com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)33com.andro19725u0_a54memREG8,1518036262595/system/lib/libmedia_jni.so34com.andro19725u0_a54memREG8,1202168263023/system/lib/libexif.so35com.andro19725u0_a54memREG8,1136632262593/system/lib/libmtp.so36com.andro19725u0_a54memREG8,171116263050/system/lib/libstagefright_amrnb_common.so37com.andro19725u0_a54memREG8,1687263891/system/usr/hyphen-data/hyph-mr.hyb38com.andro19725u0_a54memREG0,151310726352/dev/__properties__/u:object_r:log_prop:s039com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)40com.andro19725u0_a54memREG8,1504430263754/system/usr/share/zoneinfo/tzdata41com.andro19725u0_a54memREG8,118677700263362/system/fonts/NotoSansCJK-Regular.ttc42com.andro19725u0_a54memREG8,16967263882/system/usr/hyphen-data/hyph-da.hyb43com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)44com.andro19725u0_a54memunknown/dev/ashmem/dalvik-largeobjectspaceallocation(deleted)45com.andro19725u0_a54memREG8,140308263449/system/fonts/CarroisGothicSC-Regular.ttf46com.andro19725u0_a54memREG8,122201456263865/system/usr/icu/icudt56l.dat47com.andro19725u0_a54memunknown/dev/ashmem/dalvik-LinearAlloc(deleted)48com.andro19725u0_a54memREG8,1716638162228313/data/dalvik-cache/x86/system@app@PrintSpooler@PrintSpooler.apk@classes.dex49com.andro19725u0_a54memunknown/dev/ashmem/dalvik-indirectreftable(deleted)50com.andro19725u0_a54memunknown/dev/ashmem/dalvik-indirectreftable(deleted)51com.andro19725u0_a54memREG8,14912800262602/system/lib/libart-compiler.so52com.andro19725u0_a54memREG8,11232260262969/system/lib/libvixl.so53com.andro19725u0_a54memREG8,122201456263865/system/usr/icu/icudt56l.dat54com.andro19725u0_a54memunknown/dev/ashmem/dalvik-Jitthreadpoolworkerthread0(deleted)55com.andro19725u0_a54memCHR10,607622/dev/binder56com.andro19725u0_a54memunknown/dev/ashmem/dalvik-allocspacezygote/nonmovingspacelive-bitmap0(deleted)57com.andro19725u0_a54memREG8,18774704263011/system/lib/libart.so58com.andro19725u0_a54memREG8,129176263435/system/fonts/NotoSansLao-Bold.ttf59com.andro19725u0_a54memREG8,1411120262703/system/lib/libinputflinger.so60com.andro19725u0_a54memREG8,142532262665/system/lib/libnativeloader.so61com.andro19725u0_a54memREG8,130228262758/system/lib/libhardware_legacy.so62com.andro19725u0_a54memREG8,146512263059/system/lib/libRS.so