У меня есть 2 маленьких стола:
Код: Выделить всё
Data columns (total 6 columns):
# Column Dtype
--- ------ -----
0 ART_GRP_LVL_2_ID int32
1 cluster object
2 cluster new int32
3 traffic int32
4 WHS_ID int32
5 opsum int32
dtypes: int32(5), object(1)
memory usage: 224.7+ MB
Data columns (total 4 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 ART_GRP_LVL_2_ID 752375 non-null int32
1 ART_GRP_LVL_0_NAME 752375 non-null object
2 ART_GRP_LVL_1_NAME 752375 non-null object
3 ART_GRP_LVL_2_NAME 752375 non-null object
dtypes: int32(1), object(3)
memory usage: 20.1+ MB
Код: Выделить всё
pd.merge(for_bottom_up, v_art_ext, on = 'ART_GRP_LVL_2_ID', how = 'left')
Спасибо
изменил все типы данных с int64 на int32, но ошибка по-прежнему int64
Подробнее здесь: https://stackoverflow.com/questions/793 ... o-allocate
Мобильная версия