“Pandas unbenannt: 0” Code-Antworten

pandas read_csv ignorieren unbenannte Spalten

pd.read_csv(file_name, index_col=0)
Magnificent Moth

Pandas las CSV Unbenannt: o


pd.read_csv(file_name, index_col=0)
Fancy Flatworm

Drop Unbenannte Spalten in Pandas fallen

df = df.loc[:, ~df.columns.str.contains('^Unnamed')]

In [162]: df
Out[162]:
   colA  ColB  colC  colD  colE  colF  colG
0    44    45    26    26    40    26    46
1    47    16    38    47    48    22    37
2    19    28    36    18    40    18    46
3    50    14    12    33    12    44    23
4    39    47    16    42    33    48    38
Homely Hornet

Pandas Unbenannt Null

#Reading in csv
df.read_csv('file.csv', index_col=0)

#Writing to csv
df.to_csv(index=False)
Active Programmer

Unbenannt 0 Pandas

# credit to Stack Overflow user in source link

import pandas as pd
pd.read_csv(path_to_csv, index_col=0)
wolf-like_hunter

Pandas unbenannt: 0

df.to_csv(path, index=False)
Worrisome Whale

Ähnliche Antworten wie “Pandas unbenannt: 0”

Fragen ähnlich wie “Pandas unbenannt: 0”

Weitere verwandte Antworten zu “Pandas unbenannt: 0” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen