我正在研究自动填充应用程序
<form novalidate [formGroup] ="formG">
<input type="text" placeholder="enter"
formGroupName="formCont" class="searchBox"
(click)="showDrop()" id="search">
<input type="text">
</form>
<div class="seracDropDown" *ngIf = "showDropDown"></div>
,代码部分是:
import { Component, HostListener } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
@Component({
selector : "app-root",
templateUrl : './app.component.html',
styleUrls : ['./app.component.css']
})
export class AppComponent {
showDropDown : boolean = false;
formG = new FormGroup({
formCont : new FormControl()
})
showDrop (){
this.showDropDown = !this.showDropDown;
}
@HostListener('click',['$ev.target'])
onClickCalled(target) {
if(target.id =="search") {
console.log("S");
}
}
但是会引发错误:
无法读取未定义的属性“目标”
有人可以帮助我吗?
答案 0 :(得分:0)
只需将timedelta64[ns]
更改为---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-41-7df28b306c1e> in <module>()
3 step=10,
4 dtype='timedelta64[ms]')
----> 5 }).to_parquet('test.parquet', engine='pyarrow', compression='gzip')
~/miniconda3/envs/myenv/lib/python3.6/site-packages/pandas/core/frame.py in to_parquet(self, fname, engine, compression, **kwargs)
1940 from pandas.io.parquet import to_parquet
1941 to_parquet(self, fname, engine,
-> 1942 compression=compression, **kwargs)
1943
1944 @Substitution(header='Write out the column names. If a list of strings '
~/miniconda3/envs/myenv/lib/python3.6/site-packages/pandas/io/parquet.py in to_parquet(df, path, engine, compression, **kwargs)
255 """
256 impl = get_engine(engine)
--> 257 return impl.write(df, path, compression=compression, **kwargs)
258
259
~/miniconda3/envs/myenv/lib/python3.6/site-packages/pandas/io/parquet.py in write(self, df, path, compression, coerce_timestamps, **kwargs)
116
117 else:
--> 118 table = self.api.Table.from_pandas(df)
119 self.api.parquet.write_table(
120 table, path, compression=compression,
table.pxi in pyarrow.lib.Table.from_pandas()
~/miniconda3/envs/myenv/lib/python3.6/site-packages/pyarrow/pandas_compat.py in dataframe_to_arrays(df, schema, preserve_index, nthreads)
369 arrays = [convert_column(c, t)
370 for c, t in zip(columns_to_convert,
--> 371 convert_types)]
372 else:
373 from concurrent import futures
~/miniconda3/envs/myenv/lib/python3.6/site-packages/pyarrow/pandas_compat.py in <listcomp>(.0)
368 if nthreads == 1:
369 arrays = [convert_column(c, t)
--> 370 for c, t in zip(columns_to_convert,
371 convert_types)]
372 else:
~/miniconda3/envs/myenv/lib/python3.6/site-packages/pyarrow/pandas_compat.py in convert_column(col, ty)
364
365 def convert_column(col, ty):
--> 366 return pa.array(col, from_pandas=True, type=ty)
367
368 if nthreads == 1:
array.pxi in pyarrow.lib.array()
array.pxi in pyarrow.lib._ndarray_to_array()
error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported numpy type 22
require_once 'EventPersister.class.php';
$eventPersister = new EventPersister(EventPersister::GOOGLE_WEBHOOKS);
$eventPersister->Persist($_POST);