How to read a HDF file with Pandas?

0 votes

Hi Guys,

I have one HDF file in the local system. I want to import the file in Jupyter Notebook. Can I read the file with the Pandas module?

Oct 17 in Python by akhtar
• 33,120 points
68 views

1 answer to this question.

0 votes

Hi@akhtar,

You can read an HDF file using the Pandas module. Pandas have the function to read an HDF file as shown below.

import pandas as pd
reread = pd.read_hdf('./store.h5')
answered Oct 18 by MD
• 78,020 points

Related Questions In Python

0 votes
2 answers

How to read Pandas csv file with no header?

Use this logic, if header is present ...READ MORE

answered Mar 14 in Python by Shahabuddin
• 160 points
34,450 views
0 votes
1 answer

how to read a JSON from a file?

You can use with statement with open('strings.json') as ...READ MORE

answered Oct 24, 2018 in Python by Priyaj
• 57,700 points
1,888 views
0 votes
1 answer

How to use read a WSDL file from the file system using Python suds?

Hi, good question. It is a very simple ...READ MORE

answered Jan 21, 2019 in Python by Nymeria
• 3,520 points
3,015 views
0 votes
1 answer

How to create and read from a temporary file in Python?

Hi, there is a very simple solution ...READ MORE

answered Jan 29, 2019 in Python by Nymeria
• 3,520 points
397 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,560 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,800 points
1,176 views
0 votes
1 answer

How to save a Pandas Dataframe to a pickle file?

Hi@akhtar, Python pickle module is used for serializing ...READ MORE

answered Oct 17 in Python by MD
• 78,020 points
109 views
0 votes
1 answer

How to write a HDF file from a DataFrame?

Hi@akhtar, Hierarchical Data Format (HDF) is a set ...READ MORE

answered Oct 17 in Python by MD
• 78,020 points
21 views