Skip to main content
Active reading [<https://www.wikihow.com/Use-Than-and-Then> <https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s>].
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134

To select multiple columns, extract and view them thereafter: df is the previously named data frame, than. Then create a new data frame df1, and select the columns A to D which you want to extract and view.

df1 = pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])
df1

All required columns will show up!

To select multiple columns, extract and view them thereafter: df is previously named data frame, than create new data frame df1, and select the columns A to D which you want to extract and view.

df1 = pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])
df1

All required columns will show up!

To select multiple columns, extract and view them thereafter: df is the previously named data frame. Then create a new data frame df1, and select the columns A to D which you want to extract and view.

df1 = pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])
df1

All required columns will show up!

Added code fences
Source Link
fcdt
  • 2.5k
  • 5
  • 17
  • 27

To select multiple columns, extract and view them thereafter! df: df is previously named data frame, than create new data frame df1df1, and select the columns A to D which you want to extract and view!

df1=pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])

df1

df1 = pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])
df1

All required columns will show up!

To select multiple columns, extract and view them thereafter! df is previously named data frame, than create new data frame df1, and select the columns A to D which you want to extract and view!

df1=pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])

df1

All required columns will show up!

To select multiple columns, extract and view them thereafter: df is previously named data frame, than create new data frame df1, and select the columns A to D which you want to extract and view.

df1 = pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])
df1

All required columns will show up!

Source Link

To select multiple columns, extract and view them thereafter! df is previously named data frame, than create new data frame df1, and select the columns A to D which you want to extract and view!

df1=pd.DataFrame(data_frame, columns=['Column A', 'Column B', 'Column C', 'Column D'])

df1

All required columns will show up!