2017-07-01から1ヶ月間の記事一覧

Error: 2.1 - 0.0: JOIN cannot be applied directly to a table union or to a table wildcard function. Consider wrapping the table union or table wildcard function in a subquery (e.g., SELECT *).

bigquery のエラー。standard sqlから始めたのでなんのこっちゃ?だったのですが、 table wildcard function = table_date_range関数のことだったのですね。 (e.g., SELECT *) のワイルドカードとも勘違いした。。 table_date_range 使ってるテーブルをサブ…

pandasで時系列カラムの欠損行を埋める

ログデータから計測時間を元にgroupbyして集約データにするときに、 広告のクリックのように滅多に計測できないものの場合は その時間帯の行が無いことがある。 具体的にはこんな内容のデータ。 click created_at 1 1 2017-07-01 01:00:00 2 1 2017-07-01 02…