LogADEmpirical icon indicating copy to clipboard operation
LogADEmpirical copied to clipboard

ValueError: 6 columns passed, passed data had 5 columns

Open X-zhihao opened this issue 3 years ago • 13 comments

I follow README.md demo shell script,and I got this error. Please tell me how to change the parameter to avoid this problem.

X-zhihao avatar Nov 28 '22 08:11 X-zhihao

Traceback (most recent call last): File "/data_disk/logAdSum/main_run.py", line 213, in main() File "/data_disk/logAdSum/main_run.py", line 171, in main train_size=args.train_size, random_sample=args.random_sample, session_type=args.session_level) File "/data_disk/logAdSum/logadempirical/dataset/data_process.py", line 127, in process_dataset "step_size": step_size}).to_dict("records") File "/data_disk/logAdSum/logadempirical/logdeep/dataset/session.py", line 133, in sliding_window pd.DataFrame(new_data, columns=raw_data.columns) File "/data_disk/anaconda3/envs/tranad/lib/python3.7/site-packages/pandas/core/frame.py", line 570, in init arrays, columns = to_arrays(data, columns, dtype=dtype) File "/data_disk/anaconda3/envs/tranad/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 528, in to_arrays return _list_to_arrays(data, columns, coerce_float=coerce_float, dtype=dtype) File "/data_disk/anaconda3/envs/tranad/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 571, in _list_to_arrays raise ValueError(e) from e ValueError: 6 columns passed, passed data had 5 columns

Process finished with exit code 1

X-zhihao avatar Nov 28 '22 08:11 X-zhihao

hello , We can communicate as follows, my WeChat ID is 18211741109

benpaobamingliang1 avatar Nov 29 '22 10:11 benpaobamingliang1

I have the same problem, just in different place, what is the solution? Looks like something weird is going on with data here, as you pass column Content but dont fill it in sliding_window(raw_data, para).

image

I tried filling it with data, and preprocessing finishes correctly, but then I get another error.

image

mateuszkochanek avatar Jan 13 '23 12:01 mateuszkochanek

@mateuszkochanek @X-zhihao were you able to resolve this issue ? I am having the same error.

souravs17031999 avatar Jan 21 '23 18:01 souravs17031999

@souravs17031999 Not yet, I had other work to do this past week, but I'm coming back to this at Tuesday. If you find anything please share.

mateuszkochanek avatar Jan 22 '23 14:01 mateuszkochanek

hi,have you find the way to solve this issue?I meet the same problem now.

pupuu555 avatar Apr 17 '23 07:04 pupuu555

same problems for me. Have you solved this?

sailormoon-c avatar Apr 21 '23 11:04 sailormoon-c

I also encountered the same problem and it has not been resolved.

znagzanglong avatar Jun 17 '23 02:06 znagzanglong

I have same problem. How to fix it?

louki-vn avatar Jul 19 '23 13:07 louki-vn

I think this is not a complete and correct code. Fixing it might be a waste of time since it won't run at all.

X-zhihao avatar Jul 20 '23 06:07 X-zhihao

I have same problem. How to fix it?

This repo is under extension. Plz refer to the dev branch, which is up-to-date.

vanhoanglepsa avatar Jul 20 '23 06:07 vanhoanglepsa

Maybe it's because the parameters of your command are incorrect, you'd better check them.

MingYueManQianShan avatar Nov 04 '23 02:11 MingYueManQianShan

Maybe it's because the parameters of your command are incorrect, you'd better check them.

I don't know if you run through this code, if you run through can ask for communication

yi-sa-sa avatar Nov 09 '23 01:11 yi-sa-sa