Question: I would like to round the index values of a pandas dataframe with the name results, such that they do not have any decimal values. I use the followin code that I took from here [Round columns in pandas dataframe](https://stackoverflow.com/questions/31247763/round-columns-in-pandas-dataframe). So basically I have a column with the name "set\_timeslot" and I would like to round its values and then use it as an index

```
cols = ['set_timeslots']
results[cols]= results [cols].round(0)
results.set_index('set_timeslots', inplace=True)

```

However, I still get a decimal value as you can see in the screenshot[![enter image description here](https://i.stack.imgur.com/XAdGl.png)](https://i.stack.imgur.com/XAdGl.png)
Do you know what I have to do in order to get rid of the decimal values? I'd appreciate every comment.

Answer: 
Setting the value for "curl.cainfo" didn't help me.
Instead i had to set the value in the "openssl"-section of my *current* php.ini (Find the current "php.ini"-file in shell with command 'which php'.):

Uncomment and set the **openssl.cafile** (path is for MacOS):

```
openssl.cafile="/Applications/MAMP/Library/OpenSSL/certs/cacert.pem"

```

(Downloaded the pem-file as suggested from <https://curl.se/docs/caextract.html> )
The solution [described by @tFranz](https://stackoverflow.com/a/69630750/586823) works great! Please note, you can also use your system's cert file instead of MAMP's. This is how I did it:

1. Find the folder that should contain your cert.pem using this line:

```bash
$ openssl version -d
OPENSSLDIR: "/private/etc/ssl"

```

2. Open this folder in Finder using:

```
$ open /private/etc/ssl

```

3. Look for a `cert.pem` file. If you have it, you can add it to your `php.ini` file:

```
openssl.cafile="/private/etc/ssl/cert.pem"

```