Skip to content

Commit 2137d41

Browse files
committed
fix: pandas dot notation does not add a column
pandas-dev/pandas#7175
1 parent e863fcb commit 2137d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/client/gro_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def add_points_to_df(self, index, data_series, data_points, *args):
907907
# get_data_points response doesn't include the
908908
# source_id. We add it as a column, in case we have
909909
# several selections series which differ only by source id.
910-
tmp.source_id = data_series["source_id"]
910+
tmp["source_id"] = data_series["source_id"]
911911
# tmp should always have end_date/start_date/reporting_date as columns if not empty
912912
tmp.end_date = pandas.to_datetime(tmp.end_date)
913913
tmp.start_date = pandas.to_datetime(tmp.start_date)

0 commit comments

Comments
 (0)