VS 2008 Intellisense, зависающий при щелчке правой кнопкой

Вот решение для сравнения 2 файлов:

#read file1 to df1
#your header seems no good with blank, so i rename it
df1 = pd.read_csv('file1',  sep=',' header=1, names=['PID','STARTED','%CPU','%MEM','COMMAND']])
#df1 is your first file, df2 the second
df_compare = df1.merge(df2.drop_duplicates(), on=['PID','STARTED','%CPU','%MEM','COMMAND'],
                   how='right', indicator=True)

print(df_compare)

#in result, you'll have a column '_merge' with both or right_only
#right_only means only in df2 and not in df1
#after you just filtered:

filter = df_compare._merge == 'both'
df_compare = df_compare[filter].drop(['_merge'],axis=1)

#in df_compare, you have the repeateted rows from df2 and df1, you could reindex if you want
print(df_compare)  

или другое решение (лучше, я думаю):

df_compare = df1[df1.index.isin(df1.merge(df2, how='inner', on=['PID','STARTED','%CPU','%MEM','COMMAND']).index)]
print(df_compare)
5
задан Filip Frącz 22 April 2009 в 17:37
поделиться

3 ответа

Updating intellisense on larger projects just kills productivity - Visual Assist is a much better replacement. I think though that intellisense is also linked to the way VS parses the code for the designer, so a more temporary solution to test with is to replace your .ncb file with a folder called [solution].ncb

I highly recommend Visual Assist though

5
ответ дан 13 December 2019 в 19:35
поделиться

Delete you ncb files, and let them regenerate. This how we usually workaround intellisense when it is behaving badly. It akes a bit to regenerate but it is worth it.

4
ответ дан 13 December 2019 в 19:35
поделиться

Известно, что Intellisense уничтожает большие проекты C ++. Единственное надежное решение, которое я нашел (несмотря на их попытки исправления), - отключить Intellisense, удалив / переименовав Program Files (x86) \ Microsoft Visual Studio 9.0 \ VC \ vcpackages \ feacp.dll .

К счастью, такое дополнение, как Visual Assist, на мой взгляд, является превосходной заменой Intellisense.

2
ответ дан 13 December 2019 в 19:35
поделиться
Другие вопросы по тегам:

Похожие вопросы: