You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting index_col=0 means that the first column will be read in as the index, and in BIDS datasets that first column would generally be the "onset" column. Later, however, the "onset" column is directly referenced, but it won't be available since it'll be the index (see below).
I think the solution is to drop index_col=0 and header=0 from all read_csv calls targeting events files. Also, switching to read_table will let you drop sep="\t", so it would just be df = pd.read_table(events_file).
The text was updated successfully, but these errors were encountered:
In a few places within the package, events files are read in using
pandas.read_csv
, as below:IDConn/idconn/connectivity/build_networks.py
Line 86 in 5e9bc32
Setting
index_col=0
means that the first column will be read in as the index, and in BIDS datasets that first column would generally be the "onset" column. Later, however, the "onset" column is directly referenced, but it won't be available since it'll be the index (see below).IDConn/idconn/connectivity/build_networks.py
Line 132 in 5e9bc32
I think the solution is to drop
index_col=0
andheader=0
from allread_csv
calls targeting events files. Also, switching toread_table
will let you dropsep="\t"
, so it would just bedf = pd.read_table(events_file)
.The text was updated successfully, but these errors were encountered: